Home
last modified time | relevance | path

Searched refs:BOM_UTF8 (Results 1 – 11 of 11) sorted by relevance

/external/python/cpython2/Lib/encodings/
Dutf_8_sig.py15 return (codecs.BOM_UTF8 + codecs.utf_8_encode(input, errors)[0], len(input))
19 if input[:3] == codecs.BOM_UTF8:
33 return codecs.BOM_UTF8 + codecs.utf_8_encode(input, self.errors)[0]
55 if codecs.BOM_UTF8.startswith(input):
63 if input[:3] == codecs.BOM_UTF8:
94 if codecs.BOM_UTF8.startswith(input):
98 elif input[:3] == codecs.BOM_UTF8:
/external/python/cpython2/Lib/idlelib/
DIOBinding.py9 from codecs import BOM_UTF8
282 if chars.startswith(BOM_UTF8):
290 self.fileencoding = BOM_UTF8
421 if self.fileencoding == BOM_UTF8 or failed:
422 return BOM_UTF8 + chars.encode("utf-8")
433 return BOM_UTF8 + chars.encode("utf-8")
440 return BOM_UTF8 + chars.encode("utf-8")
448 chars = BOM_UTF8 + chars.encode("utf-8")
/external/icu/icu4c/as_is/
Dbomlist.py24 bom=codecs.BOM_UTF8
/external/mesa3d/src/gallium/drivers/swr/rasterizer/scripts/mako/
Dutil.py223 has_bom = line1.startswith(codecs.BOM_UTF8)
225 line1 = line1[len(codecs.BOM_UTF8):]
Dlexer.py182 if text.startswith(codecs.BOM_UTF8):
183 text = text[len(codecs.BOM_UTF8):]
/external/python/cpython2/Lib/lib2to3/pgen2/
Dtokenize.py33 from codecs import BOM_UTF8, lookup
303 if first.startswith(BOM_UTF8):
/external/python/cpython2/Lib/lib2to3/tests/
Dtest_refactor.py282 self.assertTrue(data.startswith(codecs.BOM_UTF8))
/external/python/cpython2/Lib/
Dcodecs.py42 BOM_UTF8 = '\xef\xbb\xbf' variable
/external/python/cpython2/Lib/test/
Dtest_codecs.py839 bytestring = codecs.BOM_UTF8 + "ABC\xC2\xA1\xE2\x88\x80XYZ"
/external/python/cpython2/Doc/library/
Dcodecs.rst309 BOM_UTF8
/external/python/cpython2/Misc/
DHISTORY5564 - Constants BOM_UTF8, BOM_UTF16, BOM_UTF16_LE, BOM_UTF16_BE,