Home | History | Annotate | Download | only in python2.7

Lines Matching refs:CHARSET

179 def _compile_charset(charset, flags, code, fixup=None):
180 # compile charset subprogram
184 for op, av in _optimize_charset(charset, fixup):
193 elif op is CHARSET:
208 def _optimize_charset(charset, fixup):
214 for op, av in charset:
224 return charset # cannot compress
227 return _optimize_unicode(charset, fixup)
250 if len(out) < len(charset):
255 outappend((CHARSET, data))
257 return charset
276 # To represent a big charset, first a bitmap of all characters in the
279 # given a number. In the compiled expression, the charset is
285 # Compression is normally good: in a typical charset, large ranges of
294 # CHARSET matching).
302 def _optimize_unicode(charset, fixup):
306 return charset
310 for op, av in charset:
320 return charset # cannot compress
323 return charset
327 return charset
373 charset = [] # not used
374 charsetappend = charset.append
390 # if no prefix, look for charset prefix
409 charset = c
422 charset = c
424 charset = av
427 ## if charset:
428 ## print "*** CHARSET", charset
439 elif charset:
464 elif charset:
465 _compile_charset(charset, flags, code)