[libc-commits] [libc] [libc] Use function overloads to make string parsing code more generic. (PR #167417)
Alexey Samsonov via libc-commits
libc-commits at lists.llvm.org
Mon Nov 10 20:02:03 PST 2025
================
@@ -578,6 +578,13 @@ LIBC_INLINE static constexpr bool isgraph(char ch) {
return 0x20 < ch && ch < 0x7f;
}
+// An overload which provides a way to compare input with specific character
+// values, when input can be of a regular or a wide character type.
+LIBC_INLINE static constexpr bool is_one_of(char ch, char c_value,
----------------
vonosmas wrote:
Would `is_char_or_wchar` work?
https://github.com/llvm/llvm-project/pull/167417
More information about the libc-commits
mailing list