You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
516 B
19 lines
516 B
9 months ago
|
// 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
|