Searched refs:_encoding (Results 1 - 25 of 33) sorted by relevance

12

/external/icu/icu4c/source/test/intltest/
H A Dtextfile.cpp23 TextFile::TextFile(const char* _name, const char* _encoding, UErrorCode& ec) : argument
30 if (U_FAILURE(ec) || _name == 0 || _encoding == 0) {
39 encoding = uprv_malloc(uprv_strlen(_encoding) + 1);
45 uprv_strcpy(encoding, _encoding);
48 encoding = (char*) _encoding;
/external/python/cpython2/Lib/
H A Dsunau.py178 self._encoding = int(_read_u32(file))
179 if self._encoding not in _simple_encodings:
181 if self._encoding in (AUDIO_FILE_ENCODING_MULAW_8,
185 elif self._encoding == AUDIO_FILE_ENCODING_LINEAR_8:
187 elif self._encoding == AUDIO_FILE_ENCODING_LINEAR_16:
189 elif self._encoding == AUDIO_FILE_ENCODING_LINEAR_24:
191 elif self._encoding == AUDIO_FILE_ENCODING_LINEAR_32:
226 if self._encoding in _simple_encodings:
231 if self._encoding == AUDIO_FILE_ENCODING_MULAW_8:
233 elif self._encoding
[all...]
H A Dxmlrpclib.py789 self._encoding = "utf-8"
810 self._encoding = encoding
879 if self._encoding:
880 data = _decode(data, self._encoding)
935 if self._encoding:
936 data = _decode(data, self._encoding)
H A Dpydoc.py197 _encoding = 'ascii' variable
202 _encoding = locale.getpreferredencoding() variable
206 return text.encode(encoding or _encoding, 'xmlcharrefreplace')
214 return obj.encode(_encoding, 'xmlcharrefreplace')
1438 lines = plain(_encode(plain(text), getattr(sys.stdout, 'encoding', _encoding))).split('\n')
1482 sys.stdout.write(_encode(plain(text), getattr(sys.stdout, 'encoding', _encoding)))
H A D_pyio.py1513 self._encoding = encoding
1556 return self._encoding
1628 make_encoder = codecs.getincrementalencoder(self._encoding)
1633 make_decoder = codecs.getincrementaldecoder(self._encoding)
/external/python/cpython3/Lib/
H A Dsunau.py191 self._encoding = int(_read_u32(file))
192 if self._encoding not in _simple_encodings:
194 if self._encoding in (AUDIO_FILE_ENCODING_MULAW_8,
198 elif self._encoding == AUDIO_FILE_ENCODING_LINEAR_8:
200 elif self._encoding == AUDIO_FILE_ENCODING_LINEAR_16:
202 elif self._encoding == AUDIO_FILE_ENCODING_LINEAR_24:
204 elif self._encoding == AUDIO_FILE_ENCODING_LINEAR_32:
236 if self._encoding in _simple_encodings:
241 if self._encoding == AUDIO_FILE_ENCODING_MULAW_8:
243 elif self._encoding
[all...]
H A Dimaplib.py210 self._encoding = 'ascii'
217 self._encoding = 'utf-8'
926 raise self.abort(bye[-1].decode(self._encoding, 'replace'))
947 name = bytes(name, self._encoding)
952 arg = bytes(arg, self._encoding)
962 data = data + bytes(' {%s}' % len(literal), self._encoding)
1027 dat = str(dat[-1], self._encoding)
1049 typ = str(typ, self._encoding)
1071 typ = str(typ, self._encoding)
1102 typ = str(typ, self._encoding)
[all...]
H A D_pyio.py1947 self._encoding = encoding
2000 return self._encoding
2073 make_encoder = codecs.getincrementalencoder(self._encoding)
2078 make_decoder = codecs.getincrementaldecoder(self._encoding)
/external/python/cpython2/Lib/json/
H A Dencoder.py196 _encoding = self.encoding
197 if (_encoding is not None
198 and not (_encoding == 'utf-8')):
199 o = o.decode(_encoding)
231 def _encoder(o, _orig_encoder=_encoder, _encoding=self.encoding):
233 o = o.decode(_encoding)
/external/sfntly/cpp/src/test/tinyxml/
H A Dtinyxmlparser.cpp1572 const char* TiXmlDeclaration::Parse( const char* p, TiXmlParsingData* data, TiXmlEncoding _encoding )
1574 p = SkipWhiteSpace( p, _encoding );
1578 if ( !p || !*p || !StringEqual( p, "<?xml", true, _encoding ) )
1580 if ( document ) document->SetError( TIXML_ERROR_PARSING_DECLARATION, 0, 0, _encoding );
1585 data->Stamp( p, _encoding );
1602 p = SkipWhiteSpace( p, _encoding );
1603 if ( StringEqual( p, "version", true, _encoding ) )
1606 p = attrib.Parse( p, data, _encoding );
1609 else if ( StringEqual( p, "encoding", true, _encoding ) )
1612 p = attrib.Parse( p, data, _encoding );
[all...]
H A Dtinyxml.cpp1380 const char * _encoding,
1385 encoding = _encoding;
1392 const std::string& _encoding,
1397 encoding = _encoding;
H A Dtinyxml.h1294 const std::string& _encoding,
1300 const char* _encoding,
/external/tinyxml/
H A Dtinyxmlparser.cpp1506 const char* TiXmlDeclaration::Parse( const char* p, TiXmlParsingData* data, TiXmlEncoding _encoding )
1508 p = SkipWhiteSpace( p, _encoding );
1512 if ( !p || !*p || !StringEqual( p, "<?xml", true, _encoding ) )
1514 if ( document ) document->SetError( TIXML_ERROR_PARSING_DECLARATION, 0, 0, _encoding );
1519 data->Stamp( p, _encoding );
1536 p = SkipWhiteSpace( p, _encoding );
1537 if ( StringEqual( p, "version", true, _encoding ) )
1540 p = attrib.Parse( p, data, _encoding );
1543 else if ( StringEqual( p, "encoding", true, _encoding ) )
1546 p = attrib.Parse( p, data, _encoding );
[all...]
H A Dtinyxml.cpp1388 const char * _encoding,
1393 encoding = _encoding;
1400 const std::string& _encoding,
1405 encoding = _encoding;
1387 TiXmlDeclaration( const char * _version, const char * _encoding, const char * _standalone ) argument
1399 TiXmlDeclaration( const std::string& _version, const std::string& _encoding, const std::string& _standalone ) argument
H A Dtinyxml.h1137 const std::string& _encoding,
1143 const char* _encoding,
/external/python/cpython2/Lib/xml/sax/
H A Dsaxutils.py122 self._encoding = encoding
145 self._encoding)
187 content = unicode(content, self._encoding)
192 content = unicode(content, self._encoding)
/external/python/cpython3/Lib/xml/sax/
H A Dsaxutils.py123 self._encoding = encoding
153 self._encoding)
213 content = str(content, self._encoding)
220 content = str(content, self._encoding)
/external/python/cpython2/Lib/test/
H A Dtest_ossaudiodev.py31 encoding = au._encoding
/external/python/cpython3/Lib/test/
H A Dtest_uu.py34 self._encoding = encoding
44 return self.buffer.getvalue().decode(self._encoding, self._errors)
H A Dtest_ossaudiodev.py31 encoding = au._encoding
H A Dtest_imaplib.py284 self.assertEqual(client._encoding, 'ascii')
290 self.assertEqual(client._encoding, 'utf-8')
697 self.assertEqual(client._encoding, 'ascii')
704 self.assertEqual(client._encoding, 'utf-8')
/external/python/cpython3/Lib/xmlrpc/
H A Dclient.py646 self._encoding = "utf-8"
666 self._encoding = encoding
754 if self._encoding:
755 data = data.decode(self._encoding)
812 if self._encoding:
813 data = data.decode(self._encoding)
/external/python/cpython3/Lib/idlelib/
H A Drun.py321 self._encoding = encoding
325 return self._encoding
/external/ImageMagick/Magick++/lib/
H A DDrawable.cpp1474 _encoding()
1482 _encoding(encoding_)
1490 _encoding(original_._encoding)
1499 DrawSetTextEncoding( context_, _encoding.c_str() );
/external/skia/infra/bots/recipe_modules/core/resources/
H A Drun_binary_size_analysis.py612 version, num_entries, _encoding = struct.unpack('<IIB', data[:HEADER_LENGTH])

Completed in 649 milliseconds

12