mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-28 13:19:48 +01:00
Move is_name_start to core
This commit is contained in:
@@ -1927,6 +1927,10 @@ FMT_CONSTEXPR const Char* parse_align(const Char* begin, const Char* end,
|
||||
|
||||
struct auto_id {};
|
||||
|
||||
template <typename Char> FMT_CONSTEXPR bool is_name_start(Char c) {
|
||||
return ('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || '_' == c;
|
||||
}
|
||||
|
||||
template <typename Char, typename IDHandler>
|
||||
FMT_CONSTEXPR const Char* do_parse_arg_id(const Char* begin, const Char* end,
|
||||
IDHandler&& handler) {
|
||||
|
||||
Reference in New Issue
Block a user