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