Home
last modified time | relevance | path

Searched refs:encoding (Results 1 - 25 of 1176) sorted by relevance

12345678910>>...48

/third_party/node/src/api/
H A Dencoding.cc13 enum encoding ParseEncoding(const char* encoding, in ParseEncoding() argument
14 enum encoding default_encoding) { in ParseEncoding()
15 switch (encoding[0]) { in ParseEncoding()
23 if (encoding[1] == 't' && encoding[2] == 'f') { in ParseEncoding()
25 const size_t skip = encoding[3] == '-' ? 4 : 3; in ParseEncoding()
26 if (encoding[skip] == '8' && encoding[skip + 1] == '\0') in ParseEncoding()
28 if (strncmp(encoding in ParseEncoding()
126 Encode(Isolate* isolate, const char* buf, size_t len, enum encoding encoding) Encode() argument
143 DecodeBytes(Isolate* isolate, Local<Value> val, enum encoding encoding) DecodeBytes() argument
152 DecodeWrite(Isolate* isolate, char* buf, size_t buflen, Local<Value> val, enum encoding encoding) DecodeWrite() argument
[all...]
/third_party/mesa3d/src/amd/compiler/
H A Daco_assembler.cpp114 uint32_t encoding = (0b10 << 30); in emit_instruction() local
115 encoding |= opcode << 23; in emit_instruction()
116 encoding |= !instr->definitions.empty() ? instr->definitions[0].physReg() << 16 : 0; in emit_instruction()
117 encoding |= instr->operands.size() >= 2 ? instr->operands[1].physReg() << 8 : 0; in emit_instruction()
118 encoding |= !instr->operands.empty() ? instr->operands[0].physReg() : 0; in emit_instruction()
119 out.push_back(encoding); in emit_instruction()
139 uint32_t encoding = (0b1011 << 28); in emit_instruction() local
140 encoding |= opcode << 23; in emit_instruction()
141 encoding |= !instr->definitions.empty() && !(instr->definitions[0].physReg() == scc) in emit_instruction()
146 encoding | in emit_instruction()
151 uint32_t encoding = (0b101111101 << 23); emit_instruction() local
159 uint32_t encoding = (0b101111110 << 23); emit_instruction() local
168 uint32_t encoding = (0b101111111 << 23); emit_instruction() local
182 uint32_t encoding = 0; emit_instruction() local
274 uint32_t encoding = 0; emit_instruction() local
283 uint32_t encoding = (0b0111111 << 25); emit_instruction() local
293 uint32_t encoding = (0b0111110 << 25); emit_instruction() local
302 uint32_t encoding = 0; emit_instruction() local
352 uint32_t encoding = (0b110110 << 26); emit_instruction() local
380 uint32_t encoding = (0b111000 << 26); emit_instruction() local
415 uint32_t encoding = (0b111010 << 26); emit_instruction() local
455 uint32_t encoding = (0b111100 << 26); emit_instruction() local
508 uint32_t encoding = (0b110111 << 26); emit_instruction() local
565 uint32_t encoding; emit_instruction() local
607 uint32_t encoding; emit_instruction() local
649 uint32_t encoding; emit_instruction() local
683 uint32_t encoding = (0xF & dpp.row_mask) << 28; emit_instruction() local
705 uint32_t encoding = (0xFF) & dpp_op.physReg(); emit_instruction() local
720 uint32_t encoding = 0; emit_instruction() local
[all...]
/third_party/node/lib/internal/crypto/
H A Ddiffiehellman.js100 const encoding = getDefaultEncoding();
101 keyEncoding = keyEncoding || encoding;
102 genEncoding = genEncoding || encoding;
149 function dhGenerateKeys(encoding) {
151 encoding = encoding || getDefaultEncoding();
152 return encode(keys, encoding);
161 const encoding = getDefaultEncoding();
162 inEnc = inEnc || encoding;
163 outEnc = outEnc || encoding;
[all...]
/third_party/skia/third_party/externals/sfntly/cpp/src/test/tinyxml/
H A Dtinyxmlparser.cpp129 /*static*/ int TiXmlBase::IsAlpha( unsigned char anyByte, TiXmlEncoding /*encoding*/ ) in IsAlpha()
133 // to figure out alhabetical vs. not across encoding. So take a very in IsAlpha()
136 // if ( encoding == TIXML_ENCODING_UTF8 ) in IsAlpha()
150 /*static*/ int TiXmlBase::IsAlphaNum( unsigned char anyByte, TiXmlEncoding /*encoding*/ ) in IsAlphaNum()
154 // to figure out alhabetical vs. not across encoding. So take a very in IsAlphaNum()
157 // if ( encoding == TIXML_ENCODING_UTF8 ) in IsAlphaNum()
175 void Stamp( const char* now, TiXmlEncoding encoding );
196 void TiXmlParsingData::Stamp( const char* now, TiXmlEncoding encoding ) in Stamp()
262 if ( encoding == TIXML_ENCODING_UTF8 ) in Stamp()
286 if ( encoding in Stamp()
[all...]
/third_party/PyYAML/tests/lib/
H A Dtest_input_output.py57 for encoding in [None, 'utf-8', 'utf-16-be', 'utf-16-le']:
59 yaml.dump(value, stream, encoding=encoding, allow_unicode=allow_unicode)
61 data3 = yaml.dump(value, encoding=encoding, allow_unicode=allow_unicode)
62 if encoding is not None:
64 data3 = data3.decode(encoding)
66 if encoding is None:
68 yaml.dump(value, stream, encoding=encoding, allow_unicod
[all...]
/third_party/python/Python/
H A Dcodecs.c88 char *encoding; in normalizestring() local
96 encoding = PyMem_Malloc(len + 1); in normalizestring()
97 if (encoding == NULL) in normalizestring()
100 if (!_Py_normalize_encoding(string, encoding, len + 1)) in normalizestring()
103 PyMem_Free(encoding); in normalizestring()
107 v = PyUnicode_FromString(encoding); in normalizestring()
108 PyMem_Free(encoding); in normalizestring()
112 /* Lookup the given encoding and return a tuple providing the codec
115 The encoding string is looked up converted to all lower-case
127 PyObject *_PyCodec_Lookup(const char *encoding) in _PyCodec_Lookup() argument
214 PyCodec_KnownEncoding(const char *encoding) PyCodec_KnownEncoding() argument
256 codec_getitem(const char *encoding, int index) codec_getitem() argument
290 codec_getincrementalcodec(const char *encoding, const char *errors, const char *attrname) codec_getincrementalcodec() argument
307 codec_getstreamcodec(const char *encoding, PyObject *stream, const char *errors, const int index) codec_getstreamcodec() argument
351 PyCodec_Encoder(const char *encoding) PyCodec_Encoder() argument
356 PyCodec_Decoder(const char *encoding) PyCodec_Decoder() argument
361 PyCodec_IncrementalEncoder(const char *encoding, const char *errors) PyCodec_IncrementalEncoder() argument
367 PyCodec_IncrementalDecoder(const char *encoding, const char *errors) PyCodec_IncrementalDecoder() argument
373 PyCodec_StreamReader(const char *encoding, PyObject *stream, const char *errors) PyCodec_StreamReader() argument
380 PyCodec_StreamWriter(const char *encoding, PyObject *stream, const char *errors) PyCodec_StreamWriter() argument
392 wrap_codec_error(const char *operation, const char *encoding) wrap_codec_error() argument
409 _PyCodec_EncodeInternal(PyObject *object, PyObject *encoder, const char *encoding, const char *errors) _PyCodec_EncodeInternal() argument
455 _PyCodec_DecodeInternal(PyObject *object, PyObject *decoder, const char *encoding, const char *errors) _PyCodec_DecodeInternal() argument
495 PyCodec_Encode(PyObject *object, const char *encoding, const char *errors) PyCodec_Encode() argument
508 PyCodec_Decode(PyObject *object, const char *encoding, const char *errors) PyCodec_Decode() argument
522 _PyCodec_LookupTextEncoding(const char *encoding, const char *alternate_command) _PyCodec_LookupTextEncoding() argument
563 codec_getitem_checked(const char *encoding, const char *alternate_command, int index) codec_getitem_checked() argument
580 _PyCodec_TextEncoder(const char *encoding) _PyCodec_TextEncoder() argument
585 _PyCodec_TextDecoder(const char *encoding) _PyCodec_TextDecoder() argument
590 _PyCodec_EncodeText(PyObject *object, const char *encoding, const char *errors) _PyCodec_EncodeText() argument
603 _PyCodec_DecodeText(PyObject *object, const char *encoding, const char *errors) _PyCodec_DecodeText() argument
1061 get_standard_encoding(const char *encoding, int *bytelength) get_standard_encoding() argument
1127 const char *encoding; PyCodec_SurrogatePassErrors() local
[all...]
/third_party/icu/tools/unicodetools/com/ibm/rbm/
H A DResources.java72 * Returns an array of strings containing the locale encoding (e.g. 'en_US', 'de', etc.)
74 * which unique translation of resource bundle items are possible. If a locale encoding is
146 * Given a locale encoding, returns the language portion of that encoding.
151 public static String getLanguage(String encoding) { in getLanguage() argument
152 if (encoding == null) return null; in getLanguage()
153 if (encoding.indexOf("_") < 0) return encoding.trim(); in getLanguage()
154 return encoding.substring(0, encoding in getLanguage()
165 getCountry(String encoding) getCountry() argument
181 getVariant(String encoding) getVariant() argument
[all...]
H A DBundle.java31 * The encoding of the bundle (e.g. 'en', 'en_US', 'de', etc.)
33 public String encoding; field in Bundle
35 * A descriptor of the language in the encoding (e.g. English, German, etc.)
39 * A descriptor of the country in the encoding (e.g. US, Canada, Great Britain)
43 * The descriptor of the variant in the encoding (e.g. Euro, Irish, etc.)
74 * Constructor for creating an empty bundle with a given encoding
77 public Bundle(String encoding) { in Bundle() argument
78 this.encoding = encoding; in Bundle()
113 * This method returns the language encoding strin
[all...]
/third_party/node/lib/
H A Dbuffer.js291 * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
293 * Buffer.from(str[, encoding])
402 * alloc(size[, fill[, encoding]])
404 Buffer.alloc = function alloc(size, fill, encoding) {
408 return _fill(buf, fill, 0, buf.length, encoding);
476 function fromString(string, encoding) {
478 if (typeof encoding !== 'string' || encoding.length === 0) {
482 encoding = undefined;
484 ops = getEncodingOps(encoding);
[all...]
/third_party/python/Include/
H A Dcodecs.h40 Looks up the given encoding and returns a CodecInfo object with
42 processing the encoding.
44 The encoding string is looked up converted to all lower-case
58 const char *encoding
62 const char *encoding
66 /* Codec registry encoding check API.
69 the given encoding.
74 const char *encoding
77 /* Generic codec based encoding API.
80 encoding usin
[all...]
/third_party/node/test/fixtures/wpt/encoding/
H A Dtextdecoder-labels.any.js7 section.encodings.filter(function(encoding) {
8 return encoding.name !== 'replacement';
9 }).forEach(function(encoding) {
10 encoding.labels.forEach(function(label) {
11 const textDecoderName = encoding.name.toLowerCase(); // ASCII names only, so safe
14 new TextDecoder(label).encoding, textDecoderName,
15 'label for encoding should match');
17 new TextDecoder(label.toUpperCase()).encoding, textDecoderName,
21 new TextDecoder(ws + label).encoding, textDecoderName,
22 'label for encoding wit
[all...]
/third_party/python/Lib/test/
H A Dtest_codecs.py79 def check_state_handling_decode(self, encoding, u, s):
81 d = codecs.getincrementaldecoder(encoding)()
96 d = codecs.getincrementaldecoder(encoding)()
101 def check_state_handling_encode(self, encoding, u, s):
103 d = codecs.getincrementalencoder(encoding)()
106 d = codecs.getincrementalencoder(encoding)()
114 # get a StreamReader for the encoding and feed the bytestring version
119 r = codecs.getreader(self.encoding)(q)
121 for (c, partialresult) in zip(input.encode(self.encoding), partialresults, strict=True):
130 d = codecs.getincrementaldecoder(self.encoding)()
453 encoding = "utf-32" global() variable in UTF32Test
549 encoding = "utf-32-le" global() variable in UTF32LETest
595 encoding = "utf-32-be" global() variable in UTF32BETest
641 encoding = "utf-16" global() variable in UTF16Test
740 encoding = "utf-16-le" global() variable in UTF16LETest
784 encoding = "utf-16-be" global() variable in UTF16BETest
828 encoding = "utf-8" global() variable in UTF8Test
922 encoding = "utf-7" global() variable in UTF7Test
1080 encoding = "utf-8-sig" global() variable in UTF8SigTest
2374 encoding = "unicode-escape" global() variable in UnicodeEscapeTest
2507 encoding = "raw-unicode-escape" global() variable in RawUnicodeEscapeTest
[all...]
/third_party/node/test/parallel/
H A Dtest-stream-readable-unshift.js39 // Check that buffer is saved with correct encoding
42 const encoding = 'base64';
43 const string = Buffer.from('abc').toString(encoding);
46 assert.strictEqual(chunk.toString(encoding), string);
49 readable.unshift(string, encoding);
64 const { encoding, string } = expected.pop();
65 assert.strictEqual(chunk.toString(encoding), string);
68 for (const encoding of encodings) {
71 // If encoding is the same as the state.encoding th
[all...]
/third_party/node/deps/npm/node_modules/negotiator/lib/
H A Dencoding.js37 var encoding = parseEncoding(accepts[i].trim(), i);
39 if (encoding) {
40 accepts[j++] = encoding;
41 hasIdentity = hasIdentity || specify('identity', encoding);
42 minQuality = Math.min(minQuality, encoding.q || 1);
48 * If identity doesn't explicitly appear in the accept-encoding header,
49 * it's added to the list of acceptable encoding with the lowest q
52 encoding: 'identity',
65 * Parse an encoding from the Accept-Encoding header.
73 var encoding
[all...]
/third_party/python/Lib/
H A Dfileinput.py6 for line in fileinput.input(encoding="utf-8"):
79 encoding=None, errors=None):
90 encoding=encoding, errors=errors)
185 mode="r", openhook=None, encoding=None, errors=None):
208 self._encoding = encoding
212 # take encoding parameter.
214 "b" not in mode and encoding is None and openhook is None):
216 warnings.warn("'encoding' argument not specified.",
317 encoding
[all...]
/third_party/node/deps/npm/node_modules/iconv-lite/lib/
H A Dindex.js8 // All codecs and aliases are kept here, keyed by encoding name/alias.
17 iconv.encode = function encode(str, encoding, options) {
20 var encoder = iconv.getEncoder(encoding, options);
28 iconv.decode = function decode(buf, encoding, options) {
38 var decoder = iconv.getDecoder(encoding, options);
61 iconv.getCodec = function getCodec(encoding) {
63 iconv.encodings = require("../encodings"); // Lazy load all encoding definitions.
65 // Canonicalize encoding name: strip all non-alphanumeric chars and appended year.
66 var enc = iconv._canonicalizeEncoding(encoding);
78 case "string": // Direct alias to other encoding
[all...]
/third_party/node/benchmark/buffers/
H A Dbuffer-indexof.js22 encoding: ['undefined', 'utf8', 'ucs2'],
27 return (p.type === 'buffer' && p.encoding === 'undefined') ||
28 (p.type !== 'buffer' && p.encoding !== 'undefined');
32 function main({ n, search, encoding, type }) {
37 if (encoding === 'undefined') {
38 encoding = undefined;
41 if (encoding === 'ucs2') {
42 aliceBuffer = Buffer.from(aliceBuffer.toString(), encoding);
46 search = Buffer.from(Buffer.from(search).toString(), encoding);
51 aliceBuffer.indexOf(search, 0, encoding);
[all...]
H A Dbuffer-tostring.js6 encoding: ['', 'utf8', 'ascii', 'latin1', 'hex', 'UCS-2'],
12 return (p.args === 0 && p.encoding === '') ||
13 (p.args !== 0 && p.encoding !== '');
17 function main({ encoding, args, len, n }) {
20 if (encoding.length === 0)
21 encoding = undefined;
27 buf.toString(encoding);
33 buf.toString(encoding, 0);
39 buf.toString(encoding, 0, len);
/third_party/node/benchmark/string_decoder/
H A Dstring-decoder.js6 encoding: ['ascii', 'utf8', 'base64-utf8', 'base64-ascii', 'utf16le'],
16 function main({ encoding, inLen, chunkLen, n }) {
21 const isBase64 = (encoding === 'base64-ascii' || encoding === 'base64-utf8');
23 if (encoding === 'ascii' || encoding === 'base64-ascii')
25 else if (encoding === 'utf8' || encoding === 'base64-utf8')
27 else if (encoding === 'utf16le') {
31 throw new Error('Bad encoding');
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/data/
H A DResourceReader.java30 * object the encoding is specified.
39 private String encoding; // null for default encoding field in ResourceReader
51 * in this package, using the given encoding.
54 * @param encoding the encoding of the text file; if unsupported
57 * <code>encoding</code> is not supported by the JDK.
59 public ResourceReader(String resourceName, String encoding) in ResourceReader() argument
61 this(ICUData.class, "data/" + resourceName, encoding); in ResourceReader()
66 * in this package, using the default encoding
84 ResourceReader(Class<?> rootClass, String resourceName, String encoding) ResourceReader() argument
99 ResourceReader(InputStream is, String resourceName, String encoding) ResourceReader() argument
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/data/
H A DResourceReader.java31 * object the encoding is specified.
41 private String encoding; // null for default encoding field in ResourceReader
53 * in this package, using the given encoding.
56 * @param encoding the encoding of the text file; if unsupported
59 * <code>encoding</code> is not supported by the JDK.
61 public ResourceReader(String resourceName, String encoding) in ResourceReader() argument
63 this(ICUData.class, "data/" + resourceName, encoding); in ResourceReader()
68 * in this package, using the default encoding
86 ResourceReader(Class<?> rootClass, String resourceName, String encoding) ResourceReader() argument
101 ResourceReader(InputStream is, String resourceName, String encoding) ResourceReader() argument
[all...]
/third_party/node/lib/internal/streams/
H A Dwritable.js23 // Implement an async ._write(chunk, encoding, cb), and it'll handle all
123 // encoding is 'binary' so we have to make this configurable.
152 // The callback that the user supplies to write(chunk, encoding, cb).
286 function _write(stream, chunk, encoding, cb) {
289 if (typeof encoding === 'function') {
290 cb = encoding;
291 encoding = state.defaultEncoding;
293 if (!encoding)
294 encoding = state.defaultEncoding;
295 else if (encoding !
[all...]
/third_party/icu/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/
H A DPerfTest.java86 protected String encoding; field in PerfTest
468 encoding = ""; in parseOptions()
549 if (options[ENCODING].doesOccur) encoding = options[ENCODING].value; in parseOptions()
845 String encoding; field in PerfTest.BOMFreeReader
850 * encoding. Equivalent to BOMFreeReader(in, null).
863 * encoding. If encoding is null, attempts to detect the encoding by the
868 * @param encoding
869 * The encoding t
873 BOMFreeReader(InputStream in, String encoding) BOMFreeReader() argument
[all...]
/third_party/python/Tools/i18n/
H A Dmakelocalealias.py20 with open(filename, encoding='latin1') as f:
47 # Normalize encoding, if given
49 lang, encoding = locale.split('.')[:2]
50 encoding = encoding.replace('-', '')
51 encoding = encoding.replace('_', '')
52 locale = lang + '.' + encoding
58 with open(filename, encoding='latin1') as f:
75 # Normalize encoding, i
[all...]
/third_party/node/lib/internal/webstreams/
H A Dencoding.js14 } = require('internal/encoding');
61 // https://encoding.spec.whatwg.org/#encode-and-enqueue-a-chunk
92 // https://encoding.spec.whatwg.org/#encode-and-flush
104 get encoding() {
107 return this[kHandle].encoding;
134 encoding: this[kHandle].encoding,
143 * @param {string} [encoding]
149 constructor(encoding = 'utf-8', options = kEmptyObject) {
151 this[kHandle] = new TextDecoder(encoding, option
[all...]

Completed in 13 milliseconds

12345678910>>...48