Lines Matching refs:charset
86 charset, hascased = _optimize_charset(av, iscased, tolower, fixes)
96 _compile_charset(charset, flags, code)
214 def _compile_charset(charset, flags, code):
215 # compile charset subprogram
217 for op, av in charset:
241 def _optimize_charset(charset, iscased=None, fixup=None, fixes=None):
247 for op, av in charset:
330 if hascased or len(out) < len(charset):
333 return charset, hascased
342 # To represent a big charset, first a bitmap of all characters in the
345 # given a number. In the compiled expression, the charset is
351 # Compression is normally good: in a typical charset, large ranges of
483 charset = []
484 charsetappend = charset.append
493 return charset
495 charset = av
497 for op, av in charset:
506 return charset
522 charset = [] # not used
526 # if no prefix, look for charset prefix
528 charset = _get_charset_prefix(pattern, flags)
531 ## if charset:
532 ## print("*** CHARSET", charset)
543 elif charset:
562 elif charset:
563 charset, hascased = _optimize_charset(charset)
565 _compile_charset(charset, flags, code)