Home
last modified time | relevance | path

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

12

/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/cpython3/Lib/encodings/
Dutf_8_sig.py15 return (codecs.BOM_UTF8 + codecs.utf_8_encode(input, errors)[0],
20 if input[:3] == codecs.BOM_UTF8:
34 return codecs.BOM_UTF8 + \
57 if codecs.BOM_UTF8.startswith(input):
65 if input[:3] == codecs.BOM_UTF8:
107 if codecs.BOM_UTF8.startswith(input):
111 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/python/cpython3/Lib/test/test_importlib/source/
Dtest_source_encoding.py77 self.run_test(codecs.BOM_UTF8 + self.source_line.encode('utf-8'))
81 source = codecs.BOM_UTF8 + self.create_source('utf-8')
86 source = codecs.BOM_UTF8 + self.create_source('latin-1')
/external/deqp/scripts/src_util/
Dcheck_boms.py35 if line0.startswith(codecs.BOM_UTF8):
42 if chunk.startswith(codecs.BOM_UTF8):
/external/python/cpython3/Lib/idlelib/
Diomenu.py2 from codecs import BOM_UTF8
257 if bytes.startswith(BOM_UTF8):
400 return BOM_UTF8 + chars.encode("utf-8")
430 return BOM_UTF8 + chars.encode("utf-8")
/external/icu/icu4c/as_is/
Dbomlist.py24 bom=codecs.BOM_UTF8
/external/pdfium/core/fxcrt/
Dcfx_seekablestreamproxy.cpp131 #define BOM_UTF8 0x00BFBBEF macro
157 if (bom == BOM_UTF8) { in CFX_SeekableStreamProxy()
/external/cldr/tools/python/src/cldr/
Drefmirror.py110 file.write( codecs.BOM_UTF8 )
/external/python/cpython3/Lib/json/
D__init__.py250 if bstartswith(codecs.BOM_UTF8):
/external/python/cpython3/Lib/test/test_json/
Dtest_unicode.py57 ('utf-8', 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/cpython3/Lib/lib2to3/pgen2/
Dtokenize.py33 from codecs import BOM_UTF8, lookup
291 if first.startswith(BOM_UTF8):
/external/python/cpython3/Lib/
Dtokenize.py28 from codecs import lookup, BOM_UTF8
419 if first.startswith(BOM_UTF8):
Dcodecs.py44 BOM_UTF8 = b'\xef\xbb\xbf' variable
Dplistlib.py500 (codecs.BOM_UTF8, "utf-8"),
/external/python/cpython2/Lib/lib2to3/tests/
Dtest_refactor.py282 self.assertTrue(data.startswith(codecs.BOM_UTF8))
/external/python/cpython3/Lib/lib2to3/tests/
Dtest_refactor.py286 self.assertTrue(data.startswith(codecs.BOM_UTF8))
/external/fonttools/Tests/misc/
Dplistlib_test.py412 (b"utf-8", "utf-8", codecs.BOM_UTF8),
/external/python/cpython2/Lib/
Dcodecs.py42 BOM_UTF8 = '\xef\xbb\xbf' variable
/external/python/cpython3/Lib/test/
Dtest_plistlib.py431 (b'utf-8', 'utf-8', codecs.BOM_UTF8),
Dtest_codecs.py1092 BOM = codecs.BOM_UTF8
1133 bytestring = codecs.BOM_UTF8 + b"ABC\xC2\xA1\xE2\x88\x80XYZ"
/external/python/cpython2/Lib/test/
Dtest_codecs.py853 bytestring = codecs.BOM_UTF8 + "ABC\xC2\xA1\xE2\x88\x80XYZ"
/external/python/cpython2/Doc/library/
Dcodecs.rst309 BOM_UTF8
/external/python/cpython3/Doc/library/
Dcodecs.rst252 BOM_UTF8

12