util/CharUtil: add IsLowerAlphaNumericASCII()
This commit is contained in:
parent
b45afd1cab
commit
5b07c8fc6c
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2011-2020 Max Kellermann <max.kellermann@gmail.com>
|
||||
* Copyright 2011-2022 Max Kellermann <max.kellermann@gmail.com>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
|
@ -116,6 +116,12 @@ IsAlphaNumericASCII(wchar_t ch) noexcept
|
|||
return IsAlphaASCII(ch) || IsDigitASCII(ch);
|
||||
}
|
||||
|
||||
constexpr bool
|
||||
IsLowerAlphaNumericASCII(wchar_t ch) noexcept
|
||||
{
|
||||
return IsLowerAlphaASCII(ch) || IsDigitASCII(ch);
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the specified ASCII character (0x00..0x7f) to upper case.
|
||||
* Unlike toupper(), it ignores the system locale.
|
||||
|
|
Loading…
Reference in New Issue