| 1 |
// Scintilla source code edit control |
| 2 |
/** @file InList.h |
| 3 |
** Check if a string is in a list. |
| 4 |
**/ |
| 5 |
// Copyright 2024 by Neil Hodgson <[email protected]> |
| 6 |
// The License.txt file describes the conditions under which this software may be distributed. |
| 7 |
|
| 8 |
#ifndef INLIST_H |
| 9 |
#define INLIST_H |
| 10 |
|
| 11 |
namespace Lexilla { |
| 12 |
|
| 13 |
bool InList(std::string_view value, std::initializer_list<std::string_view> list) noexcept; |
| 14 |
bool InListCaseInsensitive(std::string_view value, std::initializer_list<std::string_view> list) noexcept; |
| 15 |
|
| 16 |
} |
| 17 |
|
| 18 |
#endif |