4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Matthias Ettrich
8 * \author Lars Gullik Bjønnes
10 * Full author contact details are available in file CREDITS.
13 // FIXME: I can think of a better name for this file ...
18 #include "support/strfwd.h"
23 /// return true if the char is a line separator
24 inline bool isLineSeparatorChar(char_type c) { return c == ' '; }
26 /// return true if a char is alphabetical (including accented chars)
27 bool isLetterChar(char_type c);
29 /// return true if a char is lowercase
30 bool isLower(char_type c);
32 /// return whether \p c is an alphabetic character in the ASCII range
33 bool isAlphaASCII(char_type c);
35 /// return true if the char is printable
36 bool isPrintable(char_type c);
38 /// return true if the char is printable and not a space
39 bool isPrintableNonspace(char_type c);
41 /// return true if a unicode char is a space.
42 bool isSpace(char_type c);
44 /// return true if a unicode char is a numeral.
45 bool isNumber(char_type c);
47 /// return true if a unicode char has the direction attribute
48 /// Common Number Separator [CS]
49 bool isCommonNumberSeparator(char_type c);
51 /// return true if a unicode char has the direction attribute
52 /// European Number Terminator [ET]
53 bool isEuropeanNumberTerminator(char_type c);
55 /// return whether \p c is a digit in the ASCII range
56 bool isDigitASCII(char_type c);
58 /// return whether \p c is alpha or a digit in the ASCII range
59 bool isAlnumASCII(char_type c);
61 /// return whether \p c is in the ASCII range
62 bool isASCII(char_type c);
64 /// return whether \p c is in the 'Punctuation, Open' unicode category
65 bool isOpenPunctuation(char_type c);