tufte layout files:
[lyx.git] / src / support / textutils.h
blobe1a3063d8227d3fcfccaa8582a9720a8e8aa36f8
1 // -*- C++ -*-
2 /**
3 * \file textutils.h
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 ...
15 #ifndef TEXTUTILS_H
16 #define TEXTUTILS_H
18 #include "support/strfwd.h"
21 namespace lyx {
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 digit.
45 bool isDigit(char_type c);
47 /// return whether \p c is a digit in the ASCII range
48 bool isDigitASCII(char_type c);
50 } // namespace lyx
52 #endif // TEXTUTILS_H