Home | History | Annotate | Download | only in strings

Lines Matching refs:ch

172   static bool IsLetter(char ch) {
173 return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z');
176 static bool IsLowerLetter(char ch) { return ch >= 'a' && ch <= 'z'; }
178 static bool IsDigit(char ch) { return ch >= '0' && ch <= '9'; }
180 static bool IsSpace(char ch) {
181 return (ch == ' ' || ch == '\t' || ch == '\n' || ch == '\v' || ch == '\f' ||
182 ch == '\r');
185 static bool Matches(CharClass clz, char ch) {
190 return IsDigit(ch);
192 return IsLetter(ch);
194 return IsLetter(ch) || IsDigit(ch);
196 return (IsLetter(ch) || IsDigit(ch) || ch == '-' || ch == '_');
198 return IsLetter(ch) || IsDigit(ch) || ch == '-' || ch == '.' ||
199 ch == '/';
201 return (IsLetter(ch) || IsDigit(ch) || ch == '-' || ch == '.' ||
202 ch == '/' || ch == '_');
204 return IsLetter(ch) || IsDigit(ch) || ch == '.';
206 return IsLetter(ch) || IsDigit(ch) || ch == '+' || ch == '-' ||
207 ch == '.';
209 return IsLetter(ch) || IsDigit(ch) || ch == '.' || ch == '_';
211 return IsLetter(ch) || IsDigit(ch) || ch == '_';
213 return ch >= 'a' && ch <= 'z';
215 return IsLowerLetter(ch) || IsDigit(ch);
217 return IsLowerLetter(ch) || IsDigit(ch) || ch == '_';
219 return IsDigit(ch) && ch != '0';
221 return IsSpace(ch);
223 return ch >= 'A' && ch <= 'Z';