ΒΆbool isPrintable(int UCS)
bool isPrintable(int UCS)
Description
Determines if a character is likely to be displayed correctly on the terminal. Exact implementation would have to depend on the specific terminal, so we define the semantic that should be suitable for generic case of a terminal capable to output Unicode characters. All characters from the Unicode code point range are considered printable except for: * C0 and C1 control character ranges; * default ignorable code points as per 5.21 of http://www.unicode.org/versions/Unicode6.2.0/UnicodeStandard-6.2.pdf except for U+00AD SOFT HYPHEN, as it's actually displayed on most terminals; * format characters (category = Cf); * surrogates (category = Cs); * unassigned characters (category = Cn).
Declared at: llvm/include/llvm/Support/Unicode.h:44
Parameters
- int UCS
Returns
true if the character is considered printable.