Lines Matching defs:characterClass
54 void append(const CharacterClass* other)
142 CharacterClass* charClass()
144 CharacterClass* characterClass = new CharacterClass();
146 characterClass->m_matches.append(m_matches);
147 characterClass->m_ranges.append(m_ranges);
148 characterClass->m_matchesUnicode.append(m_matchesUnicode);
149 characterClass->m_rangesUnicode.append(m_rangesUnicode);
153 return characterClass;
237 CharacterClass* newlineCreate()
239 CharacterClass* characterClass = new CharacterClass();
241 characterClass->m_matches.append('\n');
242 characterClass->m_matches.append('\r');
243 characterClass->m_matchesUnicode.append(0x2028);
244 characterClass->m_matchesUnicode.append(0x2029);
246 return characterClass;
249 CharacterClass* digitsCreate()
251 CharacterClass* characterClass = new CharacterClass();
253 characterClass->m_ranges.append(CharacterRange('0', '9'));
255 return characterClass;
258 CharacterClass* spacesCreate()
260 CharacterClass* characterClass = new CharacterClass();
262 characterClass->m_matches.append(' ');
263 characterClass->m_ranges.append(CharacterRange('\t', '\r'));
264 characterClass->m_matchesUnicode.append(0x00a0);
265 characterClass->m_matchesUnicode.append(0x1680);
266 characterClass->m_matchesUnicode.append(0x180e);
267 characterClass->m_matchesUnicode.append(0x2028);
268 characterClass->m_matchesUnicode.append(0x2029);
269 characterClass->m_matchesUnicode.append(0x202f);
270 characterClass->m_matchesUnicode.append(0x205f);
271 characterClass->m_matchesUnicode.append(0x3000);
272 characterClass->m_rangesUnicode.append(CharacterRange(0x2000, 0x200a));
274 return characterClass;
277 CharacterClass* wordcharCreate()
279 CharacterClass* characterClass = new CharacterClass();
281 characterClass->m_matches.append('_');
282 characterClass->m_ranges.append(CharacterRange('0', '9'));
283 characterClass->m_ranges.append(CharacterRange('A', 'Z'));
284 characterClass->m_ranges.append(CharacterRange('a', 'z'));
286 return characterClass;
289 CharacterClass* nondigitsCreate()
291 CharacterClass* characterClass = new CharacterClass();
293 characterClass->m_ranges.append(CharacterRange(0, '0' - 1));
294 characterClass->m_ranges.append(CharacterRange('9' + 1, 0x7f));
295 characterClass->m_rangesUnicode.append(CharacterRange(0x80, 0xffff));
297 return characterClass;
300 CharacterClass* nonspacesCreate()
302 CharacterClass* characterClass = new CharacterClass();
304 characterClass->m_ranges.append(CharacterRange(0, '\t' - 1));
305 characterClass->m_ranges.append(CharacterRange('\r' + 1, ' ' - 1));
306 characterClass->m_ranges.append(CharacterRange(' ' + 1, 0x7f));
307 characterClass->m_rangesUnicode.append(CharacterRange(0x0080, 0x009f));
308 characterClass->m_rangesUnicode.append(CharacterRange(0x00a1, 0x167f));
309 characterClass->m_rangesUnicode.append(CharacterRange(0x1681, 0x180d));
310 characterClass->m_rangesUnicode.append(CharacterRange(0x180f, 0x1fff));
311 characterClass->m_rangesUnicode.append(CharacterRange(0x200b, 0x2027));
312 characterClass->m_rangesUnicode.append(CharacterRange(0x202a, 0x202e));
313 characterClass->m_rangesUnicode.append(CharacterRange(0x2030, 0x205e));
314 characterClass->m_rangesUnicode.append(CharacterRange(0x2060, 0x2fff));
315 characterClass->m_rangesUnicode.append(CharacterRange(0x3001, 0xffff));
317 return characterClass;
320 CharacterClass* nonwordcharCreate()
322 CharacterClass* characterClass = new CharacterClass();
324 characterClass->m_matches.append('`');
325 characterClass->m_ranges.append(CharacterRange(0, '0' - 1));
326 characterClass->m_ranges.append(CharacterRange('9' + 1, 'A' - 1));
327 characterClass->m_ranges.append(CharacterRange('Z' + 1, '_' - 1));
328 characterClass->m_ranges.append(CharacterRange('z' + 1, 0x7f));
329 characterClass->m_rangesUnicode.append(CharacterRange(0x80, 0xffff));
331 return characterClass;
369 // cases by handling them as if they were defined using a CharacterClass.
435 CharacterClass* newCharacterClass = m_characterClassConstructor.charClass();