Lines Matching defs:ch
54 bool unichar_is_valid(char32_t ch) {
56 if (ch >= 0x110000) /* End of unicode space */
58 if ((ch & 0xFFFFF800) == 0xD800) /* Reserved area for UTF-16 */
60 if ((ch >= 0xFDD0) && (ch <= 0xFDEF)) /* Reserved */
62 if ((ch & 0xFFFE) == 0xFFFE) /* BOM (Byte Order Mark) */
68 static bool unichar_is_control(char32_t ch) {
76 return (ch < ' ' && ch != '\t' && ch != '\n') ||
77 (0x7F <= ch && ch <= 0x9F);