Lines Matching refs:ch
304 char16_t ch = chars[i]; in getEvents() local
305 if (!findKey(ch, &keyCode, &metaState)) { in getEvents()
308 deviceId, toString(chars, numChars).string(), ch); in getEvents()
461 bool KeyCharacterMap::findKey(char16_t ch, int32_t* outKeyCode, int32_t* outMetaState) const { in findKey() argument
462 if (!ch) { in findKey()
473 if (behavior->character == ch) { in findKey()
958 char ch = mTokenizer->nextChar(); in parseKeyProperty() local
959 if (ch == ':') { in parseKeyProperty()
961 } else if (ch == ',') { in parseKeyProperty()
982 char ch = mTokenizer->peekChar(); in parseKeyProperty() local
983 if (ch == '\'') { in parseKeyProperty()
1124 char16_t ch = b->character; in finishKey() local
1125 if (ch) { in finishKey()
1126 if (ch >= '0' && ch <= '9') { in finishKey()
1127 digit = ch; in finishKey()
1128 } else if (ch == '(' || ch == ')' || ch == '#' || ch == '*' in finishKey()
1129 || ch == '-' || ch == '+' || ch == ',' || ch == '.' in finishKey()
1130 || ch == '\'' || ch == ':' || ch == ';' || ch == '/') { in finishKey()
1131 symbol = ch; in finishKey()
1151 char ch = *cur; in parseModifier() local
1152 if (ch == '+' || ch == '\0') { in parseModifier()
1174 if (ch == '\0') { in parseModifier()
1184 char ch = mTokenizer->nextChar(); in parseCharacterLiteral() local
1185 if (ch != '\'') { in parseCharacterLiteral()
1189 ch = mTokenizer->nextChar(); in parseCharacterLiteral()
1190 if (ch == '\\') { in parseCharacterLiteral()
1192 ch = mTokenizer->nextChar(); in parseCharacterLiteral()
1193 if (ch == 'n') { in parseCharacterLiteral()
1195 } else if (ch == 't') { in parseCharacterLiteral()
1197 } else if (ch == '\\') { in parseCharacterLiteral()
1199 } else if (ch == '\'') { in parseCharacterLiteral()
1201 } else if (ch == '"') { in parseCharacterLiteral()
1203 } else if (ch == 'u') { in parseCharacterLiteral()
1206 ch = mTokenizer->nextChar(); in parseCharacterLiteral()
1208 if (ch >= '0' && ch <= '9') { in parseCharacterLiteral()
1209 digit = ch - '0'; in parseCharacterLiteral()
1210 } else if (ch >= 'A' && ch <= 'F') { in parseCharacterLiteral()
1211 digit = ch - 'A' + 10; in parseCharacterLiteral()
1212 } else if (ch >= 'a' && ch <= 'f') { in parseCharacterLiteral()
1213 digit = ch - 'a' + 10; in parseCharacterLiteral()
1222 } else if (ch >= 32 && ch <= 126 && ch != '\'') { in parseCharacterLiteral()
1224 *outCharacter = ch; in parseCharacterLiteral()
1229 ch = mTokenizer->nextChar(); in parseCharacterLiteral()
1230 if (ch != '\'') { in parseCharacterLiteral()