X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Ftextutils.h;h=78e34cb4891cf4dc4e948d7fed6b411718e05ca2;hb=8d640dc77608bedddb5b00982c23665584f52d21;hp=e1a3063d8227d3fcfccaa8582a9720a8e8aa36f8;hpb=9d48ad4f7464019a0a4dc907fdf6c59304a4e9e1;p=lyx.git diff --git a/src/support/textutils.h b/src/support/textutils.h index e1a3063d82..78e34cb489 100644 --- a/src/support/textutils.h +++ b/src/support/textutils.h @@ -41,12 +41,18 @@ bool isPrintableNonspace(char_type c); /// return true if a unicode char is a space. bool isSpace(char_type c); -/// return true if a unicode char is a digit. -bool isDigit(char_type c); +/// return true if a unicode char is a numeral. +bool isNumber(char_type c); /// return whether \p c is a digit in the ASCII range bool isDigitASCII(char_type c); +/// return whether \p c is alpha or a digit in the ASCII range +bool isAlnumASCII(char_type c); + +/// return whether \p c is in the ASCII range +bool isASCII(char_type c); + } // namespace lyx #endif // TEXTUTILS_H