/external/icu/icu4c/source/common/ |
D | ucnv_u32.c | 54 unsigned char *toUBytes = args->converter->toUBytes; in T_UConverter_toUnicode_UTF32_BE() 58 if (args->converter->toUnicodeStatus && myTarget < targetLimit) { in T_UConverter_toUnicode_UTF32_BE() 59 i = args->converter->toULength; /* restore # of bytes consumed */ in T_UConverter_toUnicode_UTF32_BE() 60 args->converter->toULength = 0; in T_UConverter_toUnicode_UTF32_BE() 62 …ch = args->converter->toUnicodeStatus - 1;/*Stores the previously calculated ch from a previous ca… in T_UConverter_toUnicode_UTF32_BE() 63 args->converter->toUnicodeStatus = 0; in T_UConverter_toUnicode_UTF32_BE() 79 args->converter->toUnicodeStatus = ch + 1; in T_UConverter_toUnicode_UTF32_BE() 80 args->converter->toULength = (int8_t) i; in T_UConverter_toUnicode_UTF32_BE() 101 args->converter->UCharErrorBuffer[0] = (UChar) ch; in T_UConverter_toUnicode_UTF32_BE() 102 args->converter->UCharErrorBufferLength = 1; in T_UConverter_toUnicode_UTF32_BE() [all …]
|
D | ucnv_cb.c | 48 args->converter, in ucnv_cbFromUWriteBytes() 83 ucnv_fromUnicode(args->converter, in ucnv_cbFromUWriteUChars() 117 errBuffLen = args->converter->charErrorBufferLength; in ucnv_cbFromUWriteUChars() 120 newTarget = (char *)(args->converter->charErrorBuffer + errBuffLen); in ucnv_cbFromUWriteUChars() 122 newTargetLimit = (char *)(args->converter->charErrorBuffer + in ucnv_cbFromUWriteUChars() 123 sizeof(args->converter->charErrorBuffer)); in ucnv_cbFromUWriteUChars() 136 args->converter->charErrorBufferLength = 0; in ucnv_cbFromUWriteUChars() 138 ucnv_fromUnicode(args->converter, in ucnv_cbFromUWriteUChars() 150 args->converter->charErrorBufferLength = (int8_t)( in ucnv_cbFromUWriteUChars() 151 newTarget - (char*)args->converter->charErrorBuffer); in ucnv_cbFromUWriteUChars() [all …]
|
D | ucnvhz.c | 51 …args->converter->charErrorBuffer[(int)args->converter->charErrorBufferLength++] = (unsigned char) … 164 UConverterDataHZ* myData=(UConverterDataHZ*)(args->converter->extraInfo); in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 180 if(args->converter->mode == UCNV_TILDE) { in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 182 args->converter->mode=0; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 200 args->converter->toUCallbackReason = UCNV_IRREGULAR; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 201 args->converter->toUBytes[0] = UCNV_TILDE; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 202 args->converter->toUBytes[1] = mySourceChar; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 203 args->converter->toULength = 2; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 222 args->converter->toUBytes[0] = UCNV_TILDE; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 228 args->converter->toULength = 1; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() [all …]
|
D | ucnv.c | 310 toUArgs.converter = fromUArgs.converter = localConverter; in ucnv_safeClone() 326 ucnv_close (UConverter * converter) in ucnv_close() argument 332 if (converter == NULL) in ucnv_close() 339 ucnv_getName(converter, &errorCode), converter, converter->isCopyLocal); in ucnv_close() 345 if (converter->fromCharErrorBehaviour != UCNV_TO_U_DEFAULT_CALLBACK) { in ucnv_close() 357 toUArgs.converter = converter; in ucnv_close() 359 …converter->fromCharErrorBehaviour(converter->toUContext, &toUArgs, NULL, 0, UCNV_CLOSE, &errorCode… in ucnv_close() 361 if (converter->fromUCharErrorBehaviour != UCNV_FROM_U_DEFAULT_CALLBACK) { in ucnv_close() 372 fromUArgs.converter = converter; in ucnv_close() 374 …converter->fromUCharErrorBehaviour(converter->fromUContext, &fromUArgs, NULL, 0, 0, UCNV_CLOSE, &e… in ucnv_close() [all …]
|
D | ustr_cnv.cpp | 39 UConverter *converter = NULL; in u_getDefaultConverter() local 46 converter = gDefaultConverter; in u_getDefaultConverter() 53 if(converter == NULL) { in u_getDefaultConverter() 54 converter = ucnv_open(NULL, status); in u_getDefaultConverter() 56 ucnv_close(converter); in u_getDefaultConverter() 57 converter = NULL; in u_getDefaultConverter() 61 return converter; in u_getDefaultConverter() 65 u_releaseDefaultConverter(UConverter *converter) in u_releaseDefaultConverter() argument 68 if (converter != NULL) { in u_releaseDefaultConverter() 69 ucnv_reset(converter); in u_releaseDefaultConverter() [all …]
|
D | ucnv2022.cpp | 392 _ISO2022Close(UConverter *converter); 395 _ISO2022Reset(UConverter *converter, UConverterResetChoice choice); 458 setInitialStateFromUnicodeKR(UConverter* converter,UConverterDataISO2022 *myConverterData){ in setInitialStateFromUnicodeKR() argument 462 if( converter->charErrorBufferLength==0){ in setInitialStateFromUnicodeKR() 464 converter->charErrorBufferLength = 4; in setInitialStateFromUnicodeKR() 465 converter->charErrorBuffer[0] = 0x1b; in setInitialStateFromUnicodeKR() 466 converter->charErrorBuffer[1] = 0x24; in setInitialStateFromUnicodeKR() 467 converter->charErrorBuffer[2] = 0x29; in setInitialStateFromUnicodeKR() 468 converter->charErrorBuffer[3] = 0x43; in setInitialStateFromUnicodeKR() 663 _ISO2022Close(UConverter *converter) { in _ISO2022Close() argument [all …]
|
D | ucnv_ct.c | 172 _CompoundTextClose(UConverter *converter); 175 _CompoundTextReset(UConverter *converter, UConverterResetChoice choice); 304 _CompoundTextClose(UConverter *converter) { in _CompoundTextClose() argument 305 … UConverterDataCompoundText* myConverterData = (UConverterDataCompoundText*)(converter->extraInfo); in _CompoundTextClose() 308 if (converter->extraInfo != NULL) { in _CompoundTextClose() 316 uprv_free(converter->extraInfo); in _CompoundTextClose() 321 _CompoundTextReset(UConverter *converter, UConverterResetChoice choice) { in _CompoundTextReset() argument 331 UConverter *cnv = args->converter; in UConverter_fromUnicode_CompoundText_OFFSETS() 445 … args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = tmpTargetBuffer[i]; in UConverter_fromUnicode_CompoundText_OFFSETS() 471 …UConverterDataCompoundText *myConverterData = (UConverterDataCompoundText *) args->converter->extr… in UConverter_toUnicode_CompoundText_OFFSETS() [all …]
|
D | unistr_cnv.cpp | 164 UConverter *converter; in extract() local 179 converter = u_getDefaultConverter(&status); in extract() 191 converter = ucnv_open(codepage, &status); in extract() 194 length = doExtract(start, length, target, capacity, converter, status); in extract() 198 u_releaseDefaultConverter(converter); in extract() 200 ucnv_close(converter); in extract() 315 UConverter *converter; in doCodepageCreate() local 322 converter = u_getDefaultConverter(&status); in doCodepageCreate() 333 converter = ucnv_open(codepage, &status); in doCodepageCreate() 343 doCodepageCreate(codepageData, dataLength, converter, status); in doCodepageCreate() [all …]
|
/external/libmojo/base/android/ |
D | trace_event_binding.cc | 87 TraceEventDataConverter converter(env, jname, jarg); in Instant() local 88 if (converter.arg()) { in Instant() 89 TRACE_EVENT_COPY_INSTANT1(kJavaCategory, converter.name(), in Instant() 91 converter.arg_name(), converter.arg()); in Instant() 93 TRACE_EVENT_COPY_INSTANT0(kJavaCategory, converter.name(), in Instant() 102 TraceEventDataConverter converter(env, jname, jarg); in Begin() local 103 if (converter.arg()) { in Begin() 104 TRACE_EVENT_COPY_BEGIN1(kJavaCategory, converter.name(), in Begin() 105 converter.arg_name(), converter.arg()); in Begin() 107 TRACE_EVENT_COPY_BEGIN0(kJavaCategory, converter.name()); in Begin() [all …]
|
/external/libchrome/base/json/ |
D | json_value_converter_unittest.cc | 62 base::JSONValueConverter<SimpleMessage>* converter) { in RegisterJSONConverter() 63 converter->RegisterIntField("foo", &SimpleMessage::foo); in RegisterJSONConverter() 64 converter->RegisterStringField("bar", &SimpleMessage::bar); in RegisterJSONConverter() 65 converter->RegisterBoolField("baz", &SimpleMessage::baz); in RegisterJSONConverter() 66 converter->RegisterCustomField<SimpleEnum>( in RegisterJSONConverter() 68 converter->RegisterRepeatedInt("ints", &SimpleMessage::ints); in RegisterJSONConverter() 69 converter->RegisterCustomValueField<bool>("bstruct", in RegisterJSONConverter() 72 converter->RegisterRepeatedCustomValue<std::string>( in RegisterJSONConverter() 88 base::JSONValueConverter<NestedMessage>* converter) { in RegisterJSONConverter() 89 converter->RegisterDoubleField("foo", &NestedMessage::foo); in RegisterJSONConverter() [all …]
|
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/ |
D | EnumsTest.java | 74 Converter<String, TestEnum> converter = Enums.stringConverter(TestEnum.class); in testStringConverter_convert() local 75 assertEquals(TestEnum.CHEETO, converter.convert("CHEETO")); in testStringConverter_convert() 76 assertEquals(TestEnum.HONDA, converter.convert("HONDA")); in testStringConverter_convert() 77 assertEquals(TestEnum.POODLE, converter.convert("POODLE")); in testStringConverter_convert() 78 assertNull(converter.convert(null)); in testStringConverter_convert() 79 assertNull(converter.reverse().convert(null)); in testStringConverter_convert() 83 Converter<String, TestEnum> converter = Enums.stringConverter(TestEnum.class); in testStringConverter_convertError() local 85 converter.convert("xxx"); in testStringConverter_convertError() 92 Converter<String, TestEnum> converter = Enums.stringConverter(TestEnum.class); in testStringConverter_reverse() local 93 assertEquals("CHEETO", converter.reverse().convert(TestEnum.CHEETO)); in testStringConverter_reverse() [all …]
|
/external/guava/guava-tests/test/com/google/common/base/ |
D | EnumsTest.java | 108 Converter<String, TestEnum> converter = Enums.stringConverter(TestEnum.class); in testStringConverter_convert() local 109 assertEquals(TestEnum.CHEETO, converter.convert("CHEETO")); in testStringConverter_convert() 110 assertEquals(TestEnum.HONDA, converter.convert("HONDA")); in testStringConverter_convert() 111 assertEquals(TestEnum.POODLE, converter.convert("POODLE")); in testStringConverter_convert() 112 assertNull(converter.convert(null)); in testStringConverter_convert() 113 assertNull(converter.reverse().convert(null)); in testStringConverter_convert() 117 Converter<String, TestEnum> converter = Enums.stringConverter(TestEnum.class); in testStringConverter_convertError() local 119 converter.convert("xxx"); in testStringConverter_convertError() 126 Converter<String, TestEnum> converter = Enums.stringConverter(TestEnum.class); in testStringConverter_reverse() local 127 assertEquals("CHEETO", converter.reverse().convert(TestEnum.CHEETO)); in testStringConverter_reverse() [all …]
|
D | ConverterTest.java | 99 Converter<String, Long> converter = STR_TO_LONG; in testReverseReverse() local 100 assertEquals(converter, converter.reverse().reverse()); in testReverseReverse() 130 Converter<StringWrapper, Long> converter = first.andThen(STR_TO_LONG); in testAndThen() local 132 assertEquals(LONG_VAL, converter.convert(new StringWrapper(STR_VAL))); in testAndThen() 133 assertEquals(STR_VAL, converter.reverse().convert(LONG_VAL).value); in testAndThen() 135 assertEquals("StringWrapper.andThen(string2long)", converter.toString()); in testAndThen() 162 Converter<String, Number> converter = Converter.<String, Number>from(forward, backward); in testFrom() local 164 assertNull(converter.convert(null)); in testFrom() 165 assertNull(converter.reverse().convert(null)); in testFrom() 167 assertEquals((Integer) 5, converter.convert("5")); in testFrom() [all …]
|
/external/icu/icu4c/source/common/unicode/ |
D | ucnv.h | 571 ucnv_close(UConverter * converter); 610 ucnv_getSubstChars(const UConverter *converter, 635 ucnv_setSubstChars(UConverter *converter, 687 ucnv_getInvalidChars(const UConverter *converter, 706 ucnv_getInvalidUChars(const UConverter *converter, 719 ucnv_reset(UConverter *converter); 730 ucnv_resetToUnicode(UConverter *converter); 741 ucnv_resetFromUnicode(UConverter *converter); 794 ucnv_getMaxCharSize(const UConverter *converter); 827 ucnv_getMinCharSize(const UConverter *converter); [all …]
|
/external/libchrome/base/metrics/ |
D | bucket_ranges.cc | 85 } converter; in Crc32() local 86 converter.range = value; in Crc32() 87 for (size_t i = 0; i < sizeof(converter); ++i) in Crc32() 88 sum = kCrcTable[(sum & 0xff) ^ converter.bytes[i]] ^ (sum >> 8); in Crc32() 96 } converter; in Crc32() local 97 DCHECK_EQ(sizeof(HistogramBase::Sample), sizeof(converter)); in Crc32() 98 converter.range = value; in Crc32() 99 sum += converter.ints[0]; in Crc32() 100 sum = (sum << 16) ^ sum ^ (static_cast<uint32_t>(converter.ints[1]) << 11); in Crc32()
|
/external/junit-params/src/main/java/junitparams/converters/ |
D | ParamAnnotation.java | 12 return converter(annotation).convert(param); in convert() 22 private static Converter converter(Annotation annotation) { in converter() method in ParamAnnotation 23 Converter converter = null; in converter() local 25 converter = getParam(annotation).converter().newInstance(); in converter() 29 converter.initialize(annotation); in converter() 30 return converter; in converter()
|
/external/icu/icu4c/source/tools/gencnval/ |
D | gencnval.c | 108 uint16_t converter; /* Index into stringStore */ member 169 addAlias(const char *alias, uint16_t standard, uint16_t converter, UBool defaultName); 172 addConverter(const char *converter); 424 char *converter, *alias; in parseLine() local 447 converter=allocString(&stringBlock, line+start, length); in parseLine() 450 cnv=addConverter(converter); in parseLine() 479 alias = converter; in parseLine() 665 addAlias(const char *alias, uint16_t standard, uint16_t converter, UBool defaultName) { in addAlias() argument 674 if(converter>=MAX_CONV_COUNT) { in addAlias() 678 aliasList = &tags[standard].aliasList[converter]; in addAlias() [all …]
|
/external/icu/icu4c/source/io/ |
D | ustream.cpp | 46 UConverter *converter; in operator <<() local 50 converter = u_getDefaultConverter(&errorCode); in operator <<() 58 ucnv_fromUnicode(converter, &s, sLimit, &us, uLimit, 0, FALSE, &errorCode); in operator <<() 66 u_releaseDefaultConverter(converter); in operator <<() 86 UConverter *converter; in operator >>() local 90 converter = u_getDefaultConverter(&errorCode); in operator >>() 119 ucnv_toUnicode(converter, &us, uLimit, &s, sLimit, 0, !continueReading, &errorCode); in operator >>() 163 u_releaseDefaultConverter(converter); in operator >>()
|
/external/protobuf/src/google/protobuf/util/ |
D | json_util.cc | 81 converter::ProtoStreamObjectSource proto_source(&in_stream, resolver, type); in BinaryToJsonStream() 83 converter::JsonObjectWriter json_writer(options.add_whitespace ? " " : "", in BinaryToJsonStream() 86 converter::DefaultValueObjectWriter default_value_writer( in BinaryToJsonStream() 106 class StatusErrorListener : public converter::ErrorListener { 113 virtual void InvalidName(const converter::LocationTrackerInterface& loc, in InvalidName() 119 virtual void InvalidValue(const converter::LocationTrackerInterface& loc, in InvalidValue() 127 virtual void MissingField(const converter::LocationTrackerInterface& loc, in MissingField() 149 converter::ProtoStreamObjectWriter proto_writer(resolver, type, &sink, in JsonToBinaryStream() 152 converter::JsonStreamParser parser(&proto_writer); in JsonToBinaryStream()
|
/external/desugar/java/com/google/devtools/common/options/ |
D | IsolatedOptionsData.java | 250 if (annotation.converter() == Converter.class) { in findConverter() 253 Converter<?> converter = Converters.DEFAULT_CONVERTERS.get(type); in findConverter() local 254 if (converter == null) { in findConverter() 262 return converter; in findConverter() 266 Class<?> converter = annotation.converter(); in findConverter() local 267 Constructor<?> constructor = converter.getConstructor(); in findConverter() 302 Converter<?> converter = findConverter(optionField); in retrieveDefaultFromAnnotation() local 318 convertedValue = converter.convert(defaultValueAsString); in retrieveDefaultFromAnnotation() 416 Class<? extends Converter> converter = annotation.converter(); in from() local 417 if (converter == Converter.class) { in from() [all …]
|
/external/guava/guava-gwt/test-super/com/google/common/primitives/super/com/google/common/primitives/ |
D | ShortsTest.java | 367 Converter<String, Short> converter = Shorts.stringConverter(); in testStringConverter_convert() local 368 assertEquals((Short) (short) 1, converter.convert("1")); in testStringConverter_convert() 369 assertEquals((Short) (short) 0, converter.convert("0")); in testStringConverter_convert() 370 assertEquals((Short) (short) (-1), converter.convert("-1")); in testStringConverter_convert() 371 assertEquals((Short) (short) 255, converter.convert("0xff")); in testStringConverter_convert() 372 assertEquals((Short) (short) 255, converter.convert("0xFF")); in testStringConverter_convert() 373 assertEquals((Short) (short) (-255), converter.convert("-0xFF")); in testStringConverter_convert() 374 assertEquals((Short) (short) 255, converter.convert("#0000FF")); in testStringConverter_convert() 375 assertEquals((Short) (short) 438, converter.convert("0666")); in testStringConverter_convert() 392 Converter<String, Short> converter = Shorts.stringConverter(); in testStringConverter_reverse() local [all …]
|
D | IntsTest.java | 359 Converter<String, Integer> converter = Ints.stringConverter(); in testStringConverter_convert() local 360 assertEquals((Integer) 1, converter.convert("1")); in testStringConverter_convert() 361 assertEquals((Integer) 0, converter.convert("0")); in testStringConverter_convert() 362 assertEquals((Integer) (-1), converter.convert("-1")); in testStringConverter_convert() 363 assertEquals((Integer) 255, converter.convert("0xff")); in testStringConverter_convert() 364 assertEquals((Integer) 255, converter.convert("0xFF")); in testStringConverter_convert() 365 assertEquals((Integer) (-255), converter.convert("-0xFF")); in testStringConverter_convert() 366 assertEquals((Integer) 255, converter.convert("#0000FF")); in testStringConverter_convert() 367 assertEquals((Integer) 438, converter.convert("0666")); in testStringConverter_convert() 384 Converter<String, Integer> converter = Ints.stringConverter(); in testStringConverter_reverse() local [all …]
|
D | LongsTest.java | 381 Converter<String, Long> converter = Longs.stringConverter(); in testStringConverter_convert() local 382 assertEquals((Long) 1L, converter.convert("1")); in testStringConverter_convert() 383 assertEquals((Long) 0L, converter.convert("0")); in testStringConverter_convert() 384 assertEquals((Long) (-1L), converter.convert("-1")); in testStringConverter_convert() 385 assertEquals((Long) 255L, converter.convert("0xff")); in testStringConverter_convert() 386 assertEquals((Long) 255L, converter.convert("0xFF")); in testStringConverter_convert() 387 assertEquals((Long) (-255L), converter.convert("-0xFF")); in testStringConverter_convert() 388 assertEquals((Long) 255L, converter.convert("#0000FF")); in testStringConverter_convert() 389 assertEquals((Long) 438L, converter.convert("0666")); in testStringConverter_convert() 406 Converter<String, Long> converter = Longs.stringConverter(); in testStringConverter_reverse() local [all …]
|
/external/guava/guava-tests/test/com/google/common/primitives/ |
D | ShortsTest.java | 432 Converter<String, Short> converter = Shorts.stringConverter(); in testStringConverter_convert() local 433 assertEquals((Short) (short) 1, converter.convert("1")); in testStringConverter_convert() 434 assertEquals((Short) (short) 0, converter.convert("0")); in testStringConverter_convert() 435 assertEquals((Short) (short) (-1), converter.convert("-1")); in testStringConverter_convert() 436 assertEquals((Short) (short) 255, converter.convert("0xff")); in testStringConverter_convert() 437 assertEquals((Short) (short) 255, converter.convert("0xFF")); in testStringConverter_convert() 438 assertEquals((Short) (short) (-255), converter.convert("-0xFF")); in testStringConverter_convert() 439 assertEquals((Short) (short) 255, converter.convert("#0000FF")); in testStringConverter_convert() 440 assertEquals((Short) (short) 438, converter.convert("0666")); in testStringConverter_convert() 457 Converter<String, Short> converter = Shorts.stringConverter(); in testStringConverter_reverse() local [all …]
|
D | LongsTest.java | 408 Converter<String, Long> converter = Longs.stringConverter(); in testStringConverter_convert() local 409 assertEquals((Long) 1L, converter.convert("1")); in testStringConverter_convert() 410 assertEquals((Long) 0L, converter.convert("0")); in testStringConverter_convert() 411 assertEquals((Long) (-1L), converter.convert("-1")); in testStringConverter_convert() 412 assertEquals((Long) 255L, converter.convert("0xff")); in testStringConverter_convert() 413 assertEquals((Long) 255L, converter.convert("0xFF")); in testStringConverter_convert() 414 assertEquals((Long) (-255L), converter.convert("-0xFF")); in testStringConverter_convert() 415 assertEquals((Long) 255L, converter.convert("#0000FF")); in testStringConverter_convert() 416 assertEquals((Long) 438L, converter.convert("0666")); in testStringConverter_convert() 433 Converter<String, Long> converter = Longs.stringConverter(); in testStringConverter_reverse() local [all …]
|