/external/catch2/projects/SelfTest/IntrospectiveTests/ |
D | Xml.tests.cpp | 6 inline std::string encode( std::string const& str, Catch::XmlEncode::ForWhat forWhat = Catch::XmlEn… in encode() function 14 REQUIRE( encode( "normal string" ) == "normal string" ); 17 REQUIRE( encode( "" ) == "" ); 20 REQUIRE( encode( "smith & jones" ) == "smith & jones" ); 23 REQUIRE( encode( "smith < jones" ) == "smith < jones" ); 26 REQUIRE( encode( "smith > jones" ) == "smith > jones" ); 27 REQUIRE( encode( "smith ]]> jones" ) == "smith ]]> jones" ); 31 REQUIRE( encode( stringWithQuotes ) == stringWithQuotes ); 32 …REQUIRE( encode( stringWithQuotes, Catch::XmlEncode::ForAttributes ) == "don't "quote" m… 35 REQUIRE( encode( "[\x01]" ) == "[\\x01]" ); [all …]
|
/external/llvm-project/clang/test/CodeGenObjC/ |
D | aarch64-sve-types.m | 6 // CHECK: error: cannot yet @encode type __SVInt8_t 7 const char s8[] = @encode(__SVInt8_t); 8 // CHECK: error: cannot yet @encode type __SVInt16_t 9 const char s16[] = @encode(__SVInt16_t); 10 // CHECK: error: cannot yet @encode type __SVInt32_t 11 const char s32[] = @encode(__SVInt32_t); 12 // CHECK: error: cannot yet @encode type __SVInt64_t 13 const char s64[] = @encode(__SVInt64_t); 15 // CHECK: error: cannot yet @encode type __SVUint8_t 16 const char u8[] = @encode(__SVUint8_t); [all …]
|
D | encode-test-3.m | 6 const char * inc = @encode(int[]); 9 const char * vla = @encode(int[n]); 15 int a[sizeof(@encode(int)) == 2 ? 1 : -1]; // Type is char[2] 16 const char *B = @encode(int); 17 char (*c)[2] = &@encode(int); // @encode is an lvalue 19 char d[] = @encode(int); // infer size. 20 char e[1] = @encode(int); // truncate 21 char f[2] = @encode(int); // fits 22 char g[3] = @encode(int); // zero fill
|
D | encode-test.m | 88 const char *en = @encode(Derived); 89 const char *eb = @encode(B1); 90 const char *es = @encode(const struct S *); 91 const char *ec = @encode(const struct S); 92 const char *ee = @encode(MyObj *const); 96 const char g0[] = @encode(struct Innermost); 99 const char g1[] = @encode(Derived); 102 const char g2[] = @encode(B1); 105 const char g3[] = @encode(const struct S *); 108 const char g4[] = @encode(const struct S); [all …]
|
/external/python/pyasn1/tests/codec/ber/ |
D | test_encoder.py | 36 assert encoder.encode(self.o) == ints2octs((127, 141, 245, 182, 253, 47, 3, 2, 1, 1)) 41 assert encoder.encode(univ.Integer(12)) == ints2octs((2, 1, 12)) 44 assert encoder.encode(univ.Integer(-12)) == ints2octs((2, 1, 244)) 47 assert encoder.encode(univ.Integer(0)) == ints2octs((2, 1, 0)) 51 substrate = encoder.encode(univ.Integer(0)) 56 assert encoder.encode(univ.Integer(-1)) == ints2octs((2, 1, 255)) 59 assert encoder.encode( 64 assert encoder.encode( 71 assert encoder.encode(12, asn1Spec=univ.Integer()) == ints2octs((2, 1, 12)) 74 assert encoder.encode(-12, asn1Spec=univ.Integer()) == ints2octs((2, 1, 244)) [all …]
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | unicode_encode_op_test.py | 80 expected_value = u"Heo".encode(encoding) 90 expected_value = u"He\U0000fffd\U0000fffdo".encode(encoding) 98 expected_value = u"Heooo".encode(encoding) 106 expected_value = u"He\U0000fffd\U0000fffdo".encode(encoding) 112 expected_value = u"A".encode(encoding) 119 expected_value = u"A".encode(encoding) 139 expected_value = u"Hello".encode(encoding) 144 expected_value = u"He\xc3\xc3\U0001f604".encode(encoding) 150 expected_value = u"H".encode(encoding) 155 expected_value = u"\U0001f604".encode(encoding) [all …]
|
D | substr_op_test.py | 45 "UTF8_CHAR": u"He\xc3\xc3\U0001f604".encode("utf-8"), 49 "UTF8_CHAR": u"e\xc3\xc3".encode("utf-8"), 68 "UTF8_CHAR": u"".encode("utf-8"), 81 "UTF8_CHAR": u"H\xc3ll\U0001f604".encode("utf-8"), 93 "UTF8_CHAR": u"H\xc3ll\U0001f604".encode("utf-8"), 105 "UTF8_CHAR": u"H\xc3ll\U0001f604".encode("utf-8"), 109 "UTF8_CHAR": u"\xc3ll\U0001f604".encode("utf-8"), 131 "UTF8_CHAR": [x.encode("utf-8") for x in [u"H\xc3llo", 136 "UTF8_CHAR": [x.encode("utf-8") for x in [u"\xc3ll", u"\U0001f604rl"]], 156 "UTF8_CHAR": [[x.encode("utf-8") for x in [u"\U0001d229\U0001d227n", [all …]
|
/external/nanopb-c/tests/alltypes_callback/ |
D | encode_alltypes_callback.c | 210 alltypes.req_int32.funcs.encode = &write_varint; in main() 213 alltypes.req_int64.funcs.encode = &write_varint; in main() 216 alltypes.req_uint32.funcs.encode = &write_varint; in main() 219 alltypes.req_uint32.funcs.encode = &write_varint; in main() 222 alltypes.req_uint64.funcs.encode = &write_varint; in main() 225 alltypes.req_sint32.funcs.encode = &write_svarint; in main() 228 alltypes.req_sint64.funcs.encode = &write_svarint; in main() 231 alltypes.req_bool.funcs.encode = &write_varint; in main() 234 alltypes.req_fixed32.funcs.encode = &write_fixed32; in main() 237 alltypes.req_sfixed32.funcs.encode = &write_fixed32; in main() [all …]
|
/external/grpc-grpc/third_party/nanopb/tests/alltypes_callback/ |
D | encode_alltypes_callback.c | 210 alltypes.req_int32.funcs.encode = &write_varint; in main() 213 alltypes.req_int64.funcs.encode = &write_varint; in main() 216 alltypes.req_uint32.funcs.encode = &write_varint; in main() 219 alltypes.req_uint32.funcs.encode = &write_varint; in main() 222 alltypes.req_uint64.funcs.encode = &write_varint; in main() 225 alltypes.req_sint32.funcs.encode = &write_svarint; in main() 228 alltypes.req_sint64.funcs.encode = &write_svarint; in main() 231 alltypes.req_bool.funcs.encode = &write_varint; in main() 234 alltypes.req_fixed32.funcs.encode = &write_fixed32; in main() 237 alltypes.req_sfixed32.funcs.encode = &write_fixed32; in main() [all …]
|
/external/nanopb-c/tests/alltypes_proto3_callback/ |
D | encode_alltypes_callback.c | 202 alltypes.rep_int32.funcs.encode = &write_repeated_varint; in main() 205 alltypes.rep_int64.funcs.encode = &write_repeated_varint; in main() 208 alltypes.rep_uint32.funcs.encode = &write_repeated_varint; in main() 211 alltypes.rep_uint64.funcs.encode = &write_repeated_varint; in main() 214 alltypes.rep_sint32.funcs.encode = &write_repeated_svarint; in main() 217 alltypes.rep_sint64.funcs.encode = &write_repeated_svarint; in main() 220 alltypes.rep_bool.funcs.encode = &write_repeated_varint; in main() 223 alltypes.rep_fixed32.funcs.encode = &write_repeated_fixed32; in main() 226 alltypes.rep_sfixed32.funcs.encode = &write_repeated_fixed32; in main() 229 alltypes.rep_float.funcs.encode = &write_repeated_fixed32; in main() [all …]
|
/external/python/pyasn1/tests/codec/cer/ |
D | test_encoder.py | 28 assert encoder.encode(univ.Boolean(1)) == ints2octs((1, 1, 255)) 31 assert encoder.encode(univ.Boolean(0)) == ints2octs((1, 1, 0)) 36 assert encoder.encode( 41 …assert encoder.encode(univ.BitString((1, 0) * 501)) == ints2octs((3, 127, 6) + (170,) * 125 + (128… 46 assert encoder.encode( 51 assert encoder.encode( 69 assert encoder.encode( 79 assert encoder.encode( 90 assert encoder.encode( 99 assert encoder.encode( [all …]
|
/external/libchrome/mojo/public/java/bindings/src/org/chromium/mojo/bindings/ |
D | Encoder.java | 142 result.encode(dataHeader); in getEncoderAtDataOffset() 150 public void encode(DataHeader s) { in encode() method in Encoder 152 encode(s.size, DataHeader.SIZE_OFFSET); in encode() 153 encode(s.elementsOrVersion, DataHeader.ELEMENTS_OR_VERSION_OFFSET); in encode() 159 public void encode(byte v, int offset) { in encode() method in Encoder 166 public void encode(boolean v, int offset, int bit) { in encode() method in Encoder 177 public void encode(short v, int offset) { in encode() method in Encoder 184 public void encode(int v, int offset) { in encode() method in Encoder 191 public void encode(float v, int offset) { in encode() method in Encoder 198 public void encode(long v, int offset) { in encode() method in Encoder [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_multibytecodec.py | 34 self.assertEqual(''.encode(enc), b'') 38 self.assertEqual('abcd'.encode(enc), b'abcd') 52 self.assertEqual(data.encode(enc, "test.ignore"), b'') 79 self.assertEqual(encoder.encode('\ud30c\uc774\uc36c \ub9c8\uc744'), 82 self.assertEqual(encoder.encode('\u2606\u223c\u2606', True), 85 self.assertEqual(encoder.encode('', True), b'') 86 self.assertEqual(encoder.encode('', False), b'') 96 self.assertEqual(encoder.encode('\u00e6\u0300'), b'\xab\xc4') 97 self.assertEqual(encoder.encode('\u00e6'), b'') 98 self.assertEqual(encoder.encode('\u0300'), b'\xab\xc4') [all …]
|
/external/tensorflow/tensorflow/python/ |
D | pywrap_mlir.py | 29 str(graphdef).encode('utf-8'), pass_pipeline.encode('utf-8'), 37 str(concrete_function.function_def).encode('utf-8'), 38 pass_pipeline.encode('utf-8'), show_debug_info) 44 str(saved_model_path).encode('utf-8'), 45 str(exported_names).encode('utf-8'), show_debug_info) 52 str(saved_model_path).encode('utf-8'), 53 str(tags).encode('utf-8'), upgrade_legacy, show_debug_info) 60 str(saved_model_path).encode('utf-8'), 61 str(tags).encode('utf-8'), lift_variables, upgrade_legacy, 67 mlir_txt.encode('utf-8'), pass_pipeline.encode('utf-8'), show_debug_info)
|
/external/python/pyasn1/tests/codec/native/ |
D | test_encoder.py | 27 encoder.encode('not an Asn1Item') 38 assert encoder.encode(univ.Integer(12)) == 12 41 assert encoder.encode(univ.Integer(-12)) == -12 46 assert encoder.encode(univ.Boolean(1)) is True 49 assert encoder.encode(univ.Boolean(0)) is False 58 assert encoder.encode(self.b) == '101010011000101' 67 assert encoder.encode(self.o) == str2octs('Quick brown fox') 72 assert encoder.encode(univ.Null('')) is None 77 assert encoder.encode(univ.ObjectIdentifier((1, 3, 6, 0, 12345))) == '1.3.6.0.12345' 82 assert encoder.encode(univ.Real((123, 10, 11))) == 1.23e+13 [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_multibytecodec.py | 33 self.assertEqual(u''.encode(enc), '') 37 self.assertEqual('abcd'.encode(enc), 'abcd') 51 self.assertEqual(data.encode(enc, "test.ignore"), b'') 71 self.assertEqual(encoder.encode(u'\ud30c\uc774\uc36c \ub9c8\uc744'), 74 self.assertEqual(encoder.encode(u'\u2606\u223c\u2606', True), 77 self.assertEqual(encoder.encode(u'', True), '') 78 self.assertEqual(encoder.encode(u'', False), '') 88 self.assertEqual(encoder.encode(u'\u00e6\u0300'), '\xab\xc4') 89 self.assertEqual(encoder.encode(u'\u00e6'), '') 90 self.assertEqual(encoder.encode(u'\u0300'), '\xab\xc4') [all …]
|
/external/starlark-go/starlark/testdata/ |
D | json.star | 6 assert.eq(dir(json), ["decode", "encode", "indent"]) 10 ## json.encode 12 assert.eq(json.encode(None), "null") 13 assert.eq(json.encode(True), "true") 14 assert.eq(json.encode(False), "false") 15 assert.eq(json.encode(-123), "-123") 16 assert.eq(json.encode(12345*12345*12345*12345*12345*12345), "3539537889086624823140625") 17 assert.eq(json.encode(float(12345*12345*12345*12345*12345*12345)), "3.539537889086625e+24") 18 assert.eq(json.encode(12.345e67), "1.2345e+68") 19 assert.eq(json.encode("hello"), '"hello"') [all …]
|
/external/clang/test/CodeGenObjC/ |
D | encode-test-3.m | 6 const char * inc = @encode(int[]); 9 const char * vla = @encode(int[n]); 15 int a[sizeof(@encode(int)) == 2 ? 1 : -1]; // Type is char[2] 16 const char *B = @encode(int); 17 char (*c)[2] = &@encode(int); // @encode is an lvalue 19 char d[] = @encode(int); // infer size. 20 char e[1] = @encode(int); // truncate 21 char f[2] = @encode(int); // fits 22 char g[3] = @encode(int); // zero fill
|
D | encode-test.m | 88 const char *en = @encode(Derived); 89 const char *eb = @encode(B1); 90 const char *es = @encode(const struct S *); 91 const char *ec = @encode(const struct S); 92 const char *ee = @encode(MyObj *const); 96 const char g0[] = @encode(struct Innermost); 99 const char g1[] = @encode(Derived); 102 const char g2[] = @encode(B1); 105 const char g3[] = @encode(const struct S *); 108 const char g4[] = @encode(const struct S); [all …]
|
/external/python/pyasn1/tests/codec/der/ |
D | test_encoder.py | 27 assert encoder.encode( 32 assert encoder.encode( 39 assert encoder.encode( 44 assert encoder.encode( 60 assert encoder.encode(self.s) == ints2octs((49, 7, 4, 1, 97, 4, 2, 97, 98)) 67 assert encoder.encode(self.s) == ints2octs((49, 7, 4, 1, 97, 4, 2, 97, 98)) 74 assert encoder.encode(self.s) == ints2octs((49, 6, 4, 1, 97, 4, 1, 98)) 81 assert encoder.encode(self.s) == ints2octs((49, 6, 4, 1, 97, 4, 1, 98)) 101 assert encoder.encode(self.s) == ints2octs((49, 6, 2, 1, 5, 4, 1, 65)) 106 assert encoder.encode(self.s) == ints2octs((49, 6, 1, 1, 255, 2, 1, 5)) [all …]
|
/external/python/httplib2/python2/httplib2/ |
D | socks.py | 246 username.encode() if username else None, 247 password.encode() if password else None, 268 if chosenauth[0:1] != chr(0x05).encode(): 272 if chosenauth[1:2] == chr(0x00).encode(): 275 elif chosenauth[1:2] == chr(0x02).encode(): 279 chr(0x01).encode() 286 if authstat[0:1] != chr(0x01).encode(): 290 if authstat[1:2] != chr(0x00).encode(): 298 if chosenauth[1] == chr(0xFF).encode(): 308 req = req + chr(0x01).encode() + ipaddr [all …]
|
/external/python/httplib2/python3/httplib2/ |
D | socks.py | 246 username.encode() if username else None, 247 password.encode() if password else None, 268 if chosenauth[0:1] != chr(0x05).encode(): 272 if chosenauth[1:2] == chr(0x00).encode(): 275 elif chosenauth[1:2] == chr(0x02).encode(): 286 if authstat[0:1] != chr(0x01).encode(): 290 if authstat[1:2] != chr(0x00).encode(): 298 if chosenauth[1] == chr(0xFF).encode(): 308 req = req + chr(0x01).encode() + ipaddr 316 + chr(0x03).encode() [all …]
|
/external/skia/src/utils/ |
D | SkBase64.cpp | 113 const char* encode; in Encode() local 115 encode = default_encode; in Encode() 117 encode = encodeMap; in Encode() 130 *dst++ = encode[a]; in Encode() 131 *dst++ = encode[b]; in Encode() 132 *dst++ = encode[c]; in Encode() 133 *dst++ = encode[d]; in Encode() 145 *dst++ = encode[a >> 2]; in Encode() 146 *dst++ = encode[(k1 | a << 4) & 0x3F]; in Encode() 147 *dst++ = encode[k2]; in Encode() [all …]
|
/external/cbor-java/src/main/java/co/nstant/in/cbor/ |
D | CborEncoder.java | 65 public void encode(List<DataItem> dataItems) throws CborException { in encode() method in CborEncoder 67 encode(dataItem); in encode() 81 public void encode(DataItem dataItem) throws CborException { in encode() method in CborEncoder 88 tagEncoder.encode(tagDi); in encode() 93 unsignedIntegerEncoder.encode((UnsignedInteger) dataItem); in encode() 96 negativeIntegerEncoder.encode((NegativeInteger) dataItem); in encode() 99 byteStringEncoder.encode((ByteString) dataItem); in encode() 102 unicodeStringEncoder.encode((UnicodeString) dataItem); in encode() 105 arrayEncoder.encode((Array) dataItem); in encode() 108 mapEncoder.encode((Map) dataItem); in encode() [all …]
|
/external/python/pyasn1-modules/tests/ |
D | test_rfc4055.py | 38 assert der_encoder.encode(asn1Object) == substrate 39 assert substrate == der_encoder.encode(asn1Object) 48 assert der_encoder.encode(asn1Object) == substrate 64 assert der_encoder.encode(asn1Object) == substrate 65 assert substrate == der_encoder.encode(asn1Object) 74 assert der_encoder.encode(asn1Object) == substrate 91 assert der_encoder.encode(asn1Object) == substrate 92 assert substrate == der_encoder.encode(asn1Object) 101 assert der_encoder.encode(asn1Object) == substrate 117 assert der_encoder.encode(asn1Object) == substrate [all …]
|