Home
last modified time | relevance | path

Searched refs:encoding (Results 1 – 25 of 220) sorted by relevance

123456789

/device/linaro/bootloader/edk2/BaseTools/Tests/
DCheckUnicodeSourceFiles.py38 def EncodeToFile(self, encoding, string=None): argument
41 if encoding is not None:
42 data = codecs.encode(string, encoding)
49 def ErrorFailure(self, error, encoding, shouldPass): argument
54 msg += '%s data in a .uni file' % encoding
57 def UnicodeErrorFailure(self, encoding, shouldPass): argument
58 self.ErrorFailure('UnicodeError', encoding, shouldPass)
60 def EdkErrorFailure(self, encoding, shouldPass): argument
61 self.ErrorFailure('EdkLogger.FatalError', encoding, shouldPass)
63 def CheckFile(self, encoding, shouldPass, string=None): argument
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/json/
D__init__.py118 encoding='utf-8',
124 encoding='utf-8', default=None, **kw): argument
170 encoding == 'utf-8' and default is None and not kw):
177 separators=separators, encoding=encoding,
187 encoding='utf-8', default=None, **kw): argument
230 encoding == 'utf-8' and default is None and not kw):
237 separators=separators, encoding=encoding, default=default,
241 _default_decoder = JSONDecoder(encoding=None, object_hook=None,
245 def load(fp, encoding=None, cls=None, object_hook=None, parse_float=None, argument
275 encoding=encoding, cls=cls, object_hook=object_hook,
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/json/
D__init__.py118 encoding='utf-8',
124 encoding='utf-8', default=None, sort_keys=False, **kw): argument
178 encoding == 'utf-8' and default is None and not sort_keys and not kw):
185 separators=separators, encoding=encoding,
195 encoding='utf-8', default=None, sort_keys=False, **kw): argument
242 encoding == 'utf-8' and default is None and not sort_keys and not kw):
249 separators=separators, encoding=encoding, default=default,
253 _default_decoder = JSONDecoder(encoding=None, object_hook=None,
257 def load(fp, encoding=None, cls=None, object_hook=None, parse_float=None, argument
287 encoding=encoding, cls=cls, object_hook=object_hook,
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/
Dcodecs.h49 const char *encoding
64 const char *encoding,
80 const char *encoding,
95 const char *encoding
101 const char *encoding
107 const char *encoding,
114 const char *encoding,
121 const char *encoding,
129 const char *encoding,
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/
Dcodecs.h49 const char *encoding
64 const char *encoding,
80 const char *encoding,
95 const char *encoding
101 const char *encoding
107 const char *encoding,
114 const char *encoding,
121 const char *encoding,
129 const char *encoding,
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_codecs.py33 r = codecs.getreader(self.encoding)(q)
35 for (c, partialresult) in zip(input.encode(self.encoding), partialresults):
45 d = codecs.getincrementaldecoder(self.encoding)()
47 for (c, partialresult) in zip(input.encode(self.encoding), partialresults):
57 for (c, partialresult) in zip(input.encode(self.encoding), partialresults):
65 encoded = input.encode(self.encoding)
68 u"".join(codecs.iterdecode(encoded, self.encoding))
73 stream = StringIO.StringIO(input.encode(self.encoding))
74 return codecs.getreader(self.encoding)(stream)
185 stream = StringIO.StringIO("".join(s).encode(self.encoding))
[all …]
Dtest_codecmaps_jp.py13 encoding = 'cp932' variable in TestCP932Map
29 encoding = 'euc_jp' variable in TestEUCJPCOMPATMap
36 encoding = 'shift_jis' variable in TestSJISCOMPATMap
51 encoding = 'euc_jisx0213' variable in TestEUCJISX0213Map
58 encoding = 'shift_jisx0213' variable in TestSJISX0213Map
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/
DREADME8 The characteristics of this library is that different character encoding
140 enc/ascii.c ASCII encoding.
141 enc/euc_jp.c EUC-JP encoding.
142 enc/euc_tw.c EUC-TW encoding.
143 enc/euc_kr.c EUC-KR, EUC-CN encoding.
144 enc/sjis.c Shift_JIS encoding.
145 enc/big5.c Big5 encoding.
146 enc/gb18030.c GB18030 encoding.
147 enc/koi8.c KOI8 encoding.
148 enc/koi8_r.c KOI8-R encoding.
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/encodings/
D__init__.py49 def normalize_encoding(encoding): argument
64 if hasattr(__builtin__, "unicode") and isinstance(encoding, unicode):
68 encoding = encoding.encode('latin-1')
69 return '_'.join(encoding.translate(_norm_encoding_map).split())
71 def search_function(encoding): argument
74 entry = _cache.get(encoding, _unknown)
85 norm_encoding = normalize_encoding(encoding)
116 _cache[encoding] = None
140 _cache[encoding] = entry
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/
D__init__.py49 def normalize_encoding(encoding): argument
64 if hasattr(__builtin__, "unicode") and isinstance(encoding, unicode):
68 encoding = encoding.encode('latin-1')
69 return '_'.join(encoding.translate(_norm_encoding_map).split())
71 def search_function(encoding): argument
74 entry = _cache.get(encoding, _unknown)
85 norm_encoding = normalize_encoding(encoding)
116 _cache[encoding] = None
140 _cache[encoding] = entry
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dmimetools.py157 def decode(input, output, encoding): argument
159 if encoding == 'base64':
162 if encoding == 'quoted-printable':
165 if encoding in ('uuencode', 'x-uuencode', 'uue', 'x-uue'):
168 if encoding in ('7bit', '8bit'):
170 if encoding in decodetab:
171 pipethrough(input, decodetab[encoding], output)
174 'unknown Content-Transfer-Encoding: %s' % encoding
176 def encode(input, output, encoding): argument
178 if encoding == 'base64':
[all …]
DSimpleXMLRPCServer.py169 def __init__(self, allow_none=False, encoding=None): argument
173 self.encoding = encoding
264 allow_none=self.allow_none, encoding=self.encoding)
267 encoding=self.encoding)
273 encoding=self.encoding, allow_none=self.allow_none,
536 encoding = self.headers.get("content-encoding", "identity").lower()
537 if encoding == "identity":
539 if encoding == "gzip":
543 self.send_response(501, "encoding %r not supported" % encoding)
547 self.send_response(501, "encoding %r not supported" % encoding)
[all …]
Dcalendar.py460 def formatyearpage(self, theyear, width=3, css='calendar.css', encoding=None): argument
464 if encoding is None:
465 encoding = sys.getdefaultencoding()
468 a('<?xml version="1.0" encoding="%s"?>\n' % encoding)
472 a('<meta http-equiv="Content-Type" content="text/html; charset=%s" />\n' % encoding)
481 return ''.join(v).encode(encoding, "xmlcharrefreplace")
511 with TimeEncoding(self.locale) as encoding:
517 if encoding is not None:
518 name = name.decode(encoding)
522 with TimeEncoding(self.locale) as encoding:
[all …]
Dcodecs.py649 encoding = 'unknown' variable in StreamReaderWriter
841 def open(filename, mode='rb', encoding=None, errors='strict', buffering=1): argument
872 if encoding is not None:
882 if encoding is None:
884 info = lookup(encoding)
887 srw.encoding = encoding
928 def getencoder(encoding): argument
936 return lookup(encoding).encode
938 def getdecoder(encoding): argument
946 return lookup(encoding).decode
[all …]
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/Sdk/C/
DBra.h53 SizeT x86_Convert(Byte *data, SizeT size, UInt32 ip, UInt32 *state, int encoding);
54 SizeT ARM_Convert(Byte *data, SizeT size, UInt32 ip, int encoding);
55 SizeT ARMT_Convert(Byte *data, SizeT size, UInt32 ip, int encoding);
56 SizeT PPC_Convert(Byte *data, SizeT size, UInt32 ip, int encoding);
57 SizeT SPARC_Convert(Byte *data, SizeT size, UInt32 ip, int encoding);
58 SizeT IA64_Convert(Byte *data, SizeT size, UInt32 ip, int encoding);
/device/linaro/bootloader/edk2/BaseTools/Source/C/LzmaCompress/Sdk/C/
DBra.h53 SizeT x86_Convert(Byte *data, SizeT size, UInt32 ip, UInt32 *state, int encoding);
54 SizeT ARM_Convert(Byte *data, SizeT size, UInt32 ip, int encoding);
55 SizeT ARMT_Convert(Byte *data, SizeT size, UInt32 ip, int encoding);
56 SizeT PPC_Convert(Byte *data, SizeT size, UInt32 ip, int encoding);
57 SizeT SPARC_Convert(Byte *data, SizeT size, UInt32 ip, int encoding);
58 SizeT IA64_Convert(Byte *data, SizeT size, UInt32 ip, int encoding);
/device/linaro/bootloader/edk2/MdeModulePkg/Library/LzmaCustomDecompressLib/Sdk/C/
DBra.h53 SizeT x86_Convert(Byte *data, SizeT size, UInt32 ip, UInt32 *state, int encoding);
54 SizeT ARM_Convert(Byte *data, SizeT size, UInt32 ip, int encoding);
55 SizeT ARMT_Convert(Byte *data, SizeT size, UInt32 ip, int encoding);
56 SizeT PPC_Convert(Byte *data, SizeT size, UInt32 ip, int encoding);
57 SizeT SPARC_Convert(Byte *data, SizeT size, UInt32 ip, int encoding);
58 SizeT IA64_Convert(Byte *data, SizeT size, UInt32 ip, int encoding);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/i18n/
Dmakelocalealias.py36 lang, encoding = locale.split('.')[:2]
37 encoding = encoding.replace('-', '')
38 encoding = encoding.replace('_', '')
39 locale = lang + '.' + encoding
40 if encoding.lower() == 'utf8':
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/cjkcodecs/
Dcjkcodecs.h66 #define CODEC_INIT(encoding) \ argument
67 static int encoding##_codec_init(const void *config)
69 #define ENCODER_INIT(encoding) \ argument
70 static int encoding##_encode_init( \
72 #define ENCODER(encoding) \ argument
73 static Py_ssize_t encoding##_encode( \
77 #define ENCODER_RESET(encoding) \ argument
78 static Py_ssize_t encoding##_encode_reset( \
82 #define DECODER_INIT(encoding) \ argument
83 static int encoding##_decode_init( \
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/cjkcodecs/
Dcjkcodecs.h66 #define CODEC_INIT(encoding) \ argument
67 static int encoding##_codec_init(const void *config)
69 #define ENCODER_INIT(encoding) \ argument
70 static int encoding##_encode_init( \
72 #define ENCODER(encoding) \ argument
73 static Py_ssize_t encoding##_encode( \
77 #define ENCODER_RESET(encoding) \ argument
78 static Py_ssize_t encoding##_encode_reset( \
82 #define DECODER_INIT(encoding) \ argument
83 static int encoding##_decode_init( \
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/xml/etree/
DElementTree.py789 encoding=None, argument
804 if not encoding:
806 encoding = "utf-8"
808 encoding = "us-ascii"
810 encoding not in ("utf-8", "us-ascii")):
812 write("<?xml version='1.0' encoding='%s'?>\n" % encoding)
814 _serialize_text(write, self._root, encoding)
817 self._root, encoding, default_namespace
820 serialize(write, self._root, encoding, qnames, namespaces)
831 def _namespaces(elem, encoding, default_namespace=None): argument
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/xml/etree/
DElementTree.py784 encoding=None, argument
799 if not encoding:
801 encoding = "utf-8"
803 encoding = "us-ascii"
805 encoding not in ("utf-8", "us-ascii")):
807 write("<?xml version='1.0' encoding='%s'?>\n" % encoding)
809 _serialize_text(write, self._root, encoding)
812 self._root, encoding, default_namespace
815 serialize(write, self._root, encoding, qnames, namespaces)
826 def _namespaces(elem, encoding, default_namespace=None): argument
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dcodecs.c94 PyObject *_PyCodec_Lookup(const char *encoding) in _PyCodec_Lookup() argument
100 if (encoding == NULL) { in _PyCodec_Lookup()
112 v = normalizestring(encoding); in _PyCodec_Lookup()
165 "unknown encoding: %s", encoding); in _PyCodec_Lookup()
206 PyObject *codec_getitem(const char *encoding, int index) in codec_getitem() argument
211 codecs = _PyCodec_Lookup(encoding); in codec_getitem()
223 PyObject *codec_getincrementalcodec(const char *encoding, in codec_getincrementalcodec() argument
229 codecs = _PyCodec_Lookup(encoding); in codec_getincrementalcodec()
247 PyObject *codec_getstreamcodec(const char *encoding, in codec_getstreamcodec() argument
254 codecs = _PyCodec_Lookup(encoding); in codec_getstreamcodec()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
Dcodecs.c94 PyObject *_PyCodec_Lookup(const char *encoding) in _PyCodec_Lookup() argument
100 if (encoding == NULL) { in _PyCodec_Lookup()
112 v = normalizestring(encoding); in _PyCodec_Lookup()
165 "unknown encoding: %s", encoding); in _PyCodec_Lookup()
206 PyObject *codec_getitem(const char *encoding, int index) in codec_getitem() argument
211 codecs = _PyCodec_Lookup(encoding); in codec_getitem()
223 PyObject *codec_getincrementalcodec(const char *encoding, in codec_getincrementalcodec() argument
229 codecs = _PyCodec_Lookup(encoding); in codec_getincrementalcodec()
247 PyObject *codec_getstreamcodec(const char *encoding, in codec_getstreamcodec() argument
254 codecs = _PyCodec_Lookup(encoding); in codec_getstreamcodec()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dcalendar.py464 def formatyearpage(self, theyear, width=3, css='calendar.css', encoding=None): argument
468 if encoding is None:
469 encoding = sys.getdefaultencoding()
472 a('<?xml version="1.0" encoding="%s"?>\n' % encoding)
476 a('<meta http-equiv="Content-Type" content="text/html; charset=%s" />\n' % encoding)
485 return ''.join(v).encode(encoding, "xmlcharrefreplace")
516 with TimeEncoding(self.locale) as encoding:
522 if encoding is not None:
523 name = name.decode(encoding)
527 with TimeEncoding(self.locale) as encoding:
[all …]

123456789