/external/icu/icu4c/source/common/ |
D | ucnv_u32.c | 52 unsigned char *toUBytes = args->converter->toUBytes; in T_UConverter_toUnicode_UTF32_BE() 56 if (args->converter->toUnicodeStatus && myTarget < targetLimit) { in T_UConverter_toUnicode_UTF32_BE() 57 i = args->converter->toULength; /* restore # of bytes consumed */ in T_UConverter_toUnicode_UTF32_BE() 58 args->converter->toULength = 0; in T_UConverter_toUnicode_UTF32_BE() 60 …ch = args->converter->toUnicodeStatus - 1;/*Stores the previously calculated ch from a previous ca… in T_UConverter_toUnicode_UTF32_BE() 61 args->converter->toUnicodeStatus = 0; in T_UConverter_toUnicode_UTF32_BE() 77 args->converter->toUnicodeStatus = ch + 1; in T_UConverter_toUnicode_UTF32_BE() 78 args->converter->toULength = (int8_t) i; in T_UConverter_toUnicode_UTF32_BE() 99 args->converter->UCharErrorBuffer[0] = (UChar) ch; in T_UConverter_toUnicode_UTF32_BE() 100 args->converter->UCharErrorBufferLength = 1; in T_UConverter_toUnicode_UTF32_BE() [all …]
|
D | ucnv_cb.c | 46 args->converter, in ucnv_cbFromUWriteBytes() 81 ucnv_fromUnicode(args->converter, in ucnv_cbFromUWriteUChars() 115 errBuffLen = args->converter->charErrorBufferLength; in ucnv_cbFromUWriteUChars() 118 newTarget = (char *)(args->converter->charErrorBuffer + errBuffLen); in ucnv_cbFromUWriteUChars() 120 newTargetLimit = (char *)(args->converter->charErrorBuffer + in ucnv_cbFromUWriteUChars() 121 sizeof(args->converter->charErrorBuffer)); in ucnv_cbFromUWriteUChars() 134 args->converter->charErrorBufferLength = 0; in ucnv_cbFromUWriteUChars() 136 ucnv_fromUnicode(args->converter, in ucnv_cbFromUWriteUChars() 148 args->converter->charErrorBufferLength = (int8_t)( in ucnv_cbFromUWriteUChars() 149 newTarget - (char*)args->converter->charErrorBuffer); in ucnv_cbFromUWriteUChars() [all …]
|
D | ucnvhz.c | 49 …args->converter->charErrorBuffer[(int)args->converter->charErrorBufferLength++] = (unsigned char) … 162 UConverterDataHZ* myData=(UConverterDataHZ*)(args->converter->extraInfo); in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 178 if(args->converter->mode == UCNV_TILDE) { in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 180 args->converter->mode=0; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 198 args->converter->toUCallbackReason = UCNV_IRREGULAR; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 199 args->converter->toUBytes[0] = UCNV_TILDE; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 200 args->converter->toUBytes[1] = mySourceChar; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 201 args->converter->toULength = 2; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 220 args->converter->toUBytes[0] = UCNV_TILDE; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() 226 args->converter->toULength = 1; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() [all …]
|
D | ucnv.c | 308 toUArgs.converter = fromUArgs.converter = localConverter; in ucnv_safeClone() 324 ucnv_close (UConverter * converter) in ucnv_close() argument 330 if (converter == NULL) in ucnv_close() 337 ucnv_getName(converter, &errorCode), converter, converter->isCopyLocal); in ucnv_close() 343 if (converter->fromCharErrorBehaviour != UCNV_TO_U_DEFAULT_CALLBACK) { in ucnv_close() 355 toUArgs.converter = converter; in ucnv_close() 357 …converter->fromCharErrorBehaviour(converter->toUContext, &toUArgs, NULL, 0, UCNV_CLOSE, &errorCode… in ucnv_close() 359 if (converter->fromUCharErrorBehaviour != UCNV_FROM_U_DEFAULT_CALLBACK) { in ucnv_close() 370 fromUArgs.converter = converter; in ucnv_close() 372 …converter->fromUCharErrorBehaviour(converter->fromUContext, &fromUArgs, NULL, 0, 0, UCNV_CLOSE, &e… in ucnv_close() [all …]
|
D | ustr_cnv.cpp | 37 UConverter *converter = NULL; in u_getDefaultConverter() local 44 converter = gDefaultConverter; in u_getDefaultConverter() 51 if(converter == NULL) { in u_getDefaultConverter() 52 converter = ucnv_open(NULL, status); in u_getDefaultConverter() 54 ucnv_close(converter); in u_getDefaultConverter() 55 converter = NULL; in u_getDefaultConverter() 59 return converter; in u_getDefaultConverter() 63 u_releaseDefaultConverter(UConverter *converter) in u_releaseDefaultConverter() argument 66 if (converter != NULL) { in u_releaseDefaultConverter() 67 ucnv_reset(converter); in u_releaseDefaultConverter() [all …]
|
D | ucnv2022.cpp | 390 _ISO2022Close(UConverter *converter); 393 _ISO2022Reset(UConverter *converter, UConverterResetChoice choice); 451 setInitialStateFromUnicodeKR(UConverter* converter,UConverterDataISO2022 *myConverterData){ in setInitialStateFromUnicodeKR() argument 455 if( converter->charErrorBufferLength==0){ in setInitialStateFromUnicodeKR() 457 converter->charErrorBufferLength = 4; in setInitialStateFromUnicodeKR() 458 converter->charErrorBuffer[0] = 0x1b; in setInitialStateFromUnicodeKR() 459 converter->charErrorBuffer[1] = 0x24; in setInitialStateFromUnicodeKR() 460 converter->charErrorBuffer[2] = 0x29; in setInitialStateFromUnicodeKR() 461 converter->charErrorBuffer[3] = 0x43; in setInitialStateFromUnicodeKR() 678 _ISO2022Close(UConverter *converter) { in _ISO2022Close() argument [all …]
|
D | ucnv_ct.c | 170 _CompoundTextClose(UConverter *converter); 173 _CompoundTextReset(UConverter *converter, UConverterResetChoice choice); 302 _CompoundTextClose(UConverter *converter) { in _CompoundTextClose() argument 303 … UConverterDataCompoundText* myConverterData = (UConverterDataCompoundText*)(converter->extraInfo); in _CompoundTextClose() 306 if (converter->extraInfo != NULL) { in _CompoundTextClose() 314 uprv_free(converter->extraInfo); in _CompoundTextClose() 319 _CompoundTextReset(UConverter *converter, UConverterResetChoice choice) { in _CompoundTextReset() argument 329 UConverter *cnv = args->converter; in UConverter_fromUnicode_CompoundText_OFFSETS() 443 … args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = tmpTargetBuffer[i]; in UConverter_fromUnicode_CompoundText_OFFSETS() 469 …UConverterDataCompoundText *myConverterData = (UConverterDataCompoundText *) args->converter->extr… in UConverter_toUnicode_CompoundText_OFFSETS() [all …]
|
D | unistr_cnv.cpp | 162 UConverter *converter; in extract() local 177 converter = u_getDefaultConverter(&status); in extract() 189 converter = ucnv_open(codepage, &status); in extract() 192 length = doExtract(start, length, target, capacity, converter, status); in extract() 196 u_releaseDefaultConverter(converter); in extract() 198 ucnv_close(converter); in extract() 313 UConverter *converter; in doCodepageCreate() local 320 converter = u_getDefaultConverter(&status); in doCodepageCreate() 331 converter = ucnv_open(codepage, &status); in doCodepageCreate() 341 doCodepageCreate(codepageData, dataLength, converter, status); in doCodepageCreate() [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 | 569 ucnv_close(UConverter * converter); 608 ucnv_getSubstChars(const UConverter *converter, 633 ucnv_setSubstChars(UConverter *converter, 685 ucnv_getInvalidChars(const UConverter *converter, 704 ucnv_getInvalidUChars(const UConverter *converter, 717 ucnv_reset(UConverter *converter); 728 ucnv_resetToUnicode(UConverter *converter); 739 ucnv_resetFromUnicode(UConverter *converter); 792 ucnv_getMaxCharSize(const UConverter *converter); 825 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/icu/icu4c/source/tools/gencnval/ |
D | gencnval.c | 106 uint16_t converter; /* Index into stringStore */ member 167 addAlias(const char *alias, uint16_t standard, uint16_t converter, UBool defaultName); 170 addConverter(const char *converter); 422 char *converter, *alias; in parseLine() local 445 converter=allocString(&stringBlock, line+start, length); in parseLine() 448 cnv=addConverter(converter); in parseLine() 477 alias = converter; in parseLine() 663 addAlias(const char *alias, uint16_t standard, uint16_t converter, UBool defaultName) { in addAlias() argument 672 if(converter>=MAX_CONV_COUNT) { in addAlias() 676 aliasList = &tags[standard].aliasList[converter]; in addAlias() [all …]
|
/external/icu/icu4c/source/io/ |
D | ustream.cpp | 44 UConverter *converter; in operator <<() local 48 converter = u_getDefaultConverter(&errorCode); in operator <<() 56 ucnv_fromUnicode(converter, &s, sLimit, &us, uLimit, 0, FALSE, &errorCode); in operator <<() 64 u_releaseDefaultConverter(converter); in operator <<() 84 UConverter *converter; in operator >>() local 88 converter = u_getDefaultConverter(&errorCode); in operator >>() 117 ucnv_toUnicode(converter, &us, uLimit, &s, sLimit, 0, !continueReading, &errorCode); in operator >>() 161 u_releaseDefaultConverter(converter); in operator >>()
|
/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 | 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 …]
|
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 …]
|
/external/openfst/src/include/fst/ |
D | register.h | 50 Converter converter; member 51 FstRegisterEntry() : reader(0), converter(0) {} in FstRegisterEntry() 52 FstRegisterEntry(Reader r, Converter c) : reader(r), converter(c) { } in FstRegisterEntry() 69 return this->GetEntry(type).converter; in GetConverter() 121 converter = registr->GetConverter(ftype); in Convert() local 122 if (!converter) { in Convert() 128 return converter(fst); in Convert()
|
/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 …]
|
D | IntsTest.java | 425 Converter<String, Integer> converter = Ints.stringConverter(); in testStringConverter_convert() local 426 assertEquals((Integer) 1, converter.convert("1")); in testStringConverter_convert() 427 assertEquals((Integer) 0, converter.convert("0")); in testStringConverter_convert() 428 assertEquals((Integer) (-1), converter.convert("-1")); in testStringConverter_convert() 429 assertEquals((Integer) 255, converter.convert("0xff")); in testStringConverter_convert() 430 assertEquals((Integer) 255, converter.convert("0xFF")); in testStringConverter_convert() 431 assertEquals((Integer) (-255), converter.convert("-0xFF")); in testStringConverter_convert() 432 assertEquals((Integer) 255, converter.convert("#0000FF")); in testStringConverter_convert() 433 assertEquals((Integer) 438, converter.convert("0666")); in testStringConverter_convert() 450 Converter<String, Integer> converter = Ints.stringConverter(); in testStringConverter_reverse() local [all …]
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/sdb/ |
D | item.py | 54 self.converter = self.domain.connection.converter 82 if self.converter: 83 value = self.converter.decode(value) 87 if self.converter: 88 value = self.converter.decode(value)
|
/external/icu/icu4c/source/samples/date/ |
D | uprint.c | 30 UConverter *converter; in uprint() local 48 converter = ucnv_open(0, status); in uprint() 59 ucnv_fromUnicode(converter, &myTarget, myTarget + arraySize, in uprint() 75 ucnv_close(converter); in uprint()
|