[llvm] [NFC][TableGen] Refactor SequenceToOffsetTable class. (PR #104986)
Rahul Joshi via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 20 09:06:11 PDT 2024
================
@@ -140,6 +140,15 @@ inline bool isPrint(char C) {
return (0x20 <= UC) && (UC <= 0x7E);
}
+/// Checks whether character \p C is a punctuation character.
+///
+/// Locale-independent version of the C standard library ispunct.
+inline bool isPunct(char C) {
+ static constexpr StringRef Punctuations =
+ R"((!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~))";
----------------
jurahul wrote:
Done, thanks!
https://github.com/llvm/llvm-project/pull/104986
More information about the llvm-commits
mailing list