Home
last modified time | relevance | path

Searched refs:converter (Results 1 – 25 of 133) sorted by relevance

123456

/external/icu4c/tools/genrb/
Dderb.c62 static void printOutBundle(FILE *out, UConverter *converter, UResourceBundle *resource, int32_t ind…
63 static void printString(FILE *out, UConverter *converter, const UChar *str, int32_t len);
64 static void printCString(FILE *out, UConverter *converter, const char *str, int32_t len);
65 static void printIndent(FILE *out, UConverter *converter, int32_t indent);
66 static void printHex(FILE *out, UConverter *converter, uint8_t what);
100 UConverter *converter; in main() local
189 converter = ucnv_open(encoding, &status); in main()
194 ucnv_setFromUCallBack(converter, UCNV_FROM_U_CALLBACK_ESCAPE, UCNV_ESCAPE_C, 0, 0, &status); in main()
331 printString(out, converter, bom, (int32_t)(sizeof(bom)/sizeof(*bom))); in main()
334 printCString(out, converter, "// -*- Coding: ", -1); in main()
[all …]
/external/icu4c/common/
Ducnv_u32.c51 unsigned char *toUBytes = args->converter->toUBytes; in T_UConverter_toUnicode_UTF32_BE()
55 if (args->converter->toUnicodeStatus && myTarget < targetLimit) { in T_UConverter_toUnicode_UTF32_BE()
56 i = args->converter->toULength; /* restore # of bytes consumed */ in T_UConverter_toUnicode_UTF32_BE()
57 args->converter->toULength = 0; in T_UConverter_toUnicode_UTF32_BE()
59 …ch = args->converter->toUnicodeStatus - 1;/*Stores the previously calculated ch from a previous ca… in T_UConverter_toUnicode_UTF32_BE()
60 args->converter->toUnicodeStatus = 0; in T_UConverter_toUnicode_UTF32_BE()
76 args->converter->toUnicodeStatus = ch + 1; in T_UConverter_toUnicode_UTF32_BE()
77 args->converter->toULength = (int8_t) i; in T_UConverter_toUnicode_UTF32_BE()
98 args->converter->UCharErrorBuffer[0] = (UChar) ch; in T_UConverter_toUnicode_UTF32_BE()
99 args->converter->UCharErrorBufferLength = 1; in T_UConverter_toUnicode_UTF32_BE()
[all …]
Ducnv_cb.c46 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 …]
Ducnvhz.c48 …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 …]
Dustr_cnv.c37 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 …]
Ducnv.c303 toUArgs.converter = fromUArgs.converter = localConverter; in ucnv_safeClone()
319 ucnv_close (UConverter * converter) in ucnv_close() argument
325 if (converter == NULL) in ucnv_close()
332 ucnv_getName(converter, &errorCode), converter, converter->isCopyLocal); in ucnv_close()
338 if (converter->fromCharErrorBehaviour != UCNV_TO_U_DEFAULT_CALLBACK) { in ucnv_close()
350 toUArgs.converter = converter; in ucnv_close()
352converter->fromCharErrorBehaviour(converter->toUContext, &toUArgs, NULL, 0, UCNV_CLOSE, &errorCode… in ucnv_close()
354 if (converter->fromUCharErrorBehaviour != UCNV_FROM_U_DEFAULT_CALLBACK) { in ucnv_close()
365 fromUArgs.converter = converter; in ucnv_close()
367converter->fromUCharErrorBehaviour(converter->fromUContext, &fromUArgs, NULL, 0, 0, UCNV_CLOSE, &e… in ucnv_close()
[all …]
Ducnv2022.c377 _ISO2022Close(UConverter *converter);
380 _ISO2022Reset(UConverter *converter, UConverterResetChoice choice);
420 setInitialStateToUnicodeKR(UConverter* converter, UConverterDataISO2022 *myConverterData){ in setInitialStateToUnicodeKR() argument
431 setInitialStateFromUnicodeKR(UConverter* converter,UConverterDataISO2022 *myConverterData){ in setInitialStateFromUnicodeKR() argument
435 if( converter->charErrorBufferLength==0){ in setInitialStateFromUnicodeKR()
437 converter->charErrorBufferLength = 4; in setInitialStateFromUnicodeKR()
438 converter->charErrorBuffer[0] = 0x1b; in setInitialStateFromUnicodeKR()
439 converter->charErrorBuffer[1] = 0x24; in setInitialStateFromUnicodeKR()
440 converter->charErrorBuffer[2] = 0x29; in setInitialStateFromUnicodeKR()
441 converter->charErrorBuffer[3] = 0x43; in setInitialStateFromUnicodeKR()
[all …]
Ducnv_ct.c171 _CompoundTextClose(UConverter *converter);
174 _CompoundTextReset(UConverter *converter, UConverterResetChoice choice);
303 _CompoundTextClose(UConverter *converter) { in _CompoundTextClose() argument
304 … UConverterDataCompoundText* myConverterData = (UConverterDataCompoundText*)(converter->extraInfo); in _CompoundTextClose()
307 if (converter->extraInfo != NULL) { in _CompoundTextClose()
315 uprv_free(converter->extraInfo); in _CompoundTextClose()
320 _CompoundTextReset(UConverter *converter, UConverterResetChoice choice) { in _CompoundTextReset() argument
330 UConverter *cnv = args->converter; in UConverter_fromUnicode_CompoundText_OFFSETS()
444 … args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = tmpTargetBuffer[i]; in UConverter_fromUnicode_CompoundText_OFFSETS()
470 …UConverterDataCompoundText *myConverterData = (UConverterDataCompoundText *) args->converter->extr… in UConverter_toUnicode_CompoundText_OFFSETS()
[all …]
Dunistr_cnv.cpp172 UConverter *converter; in extract() local
187 converter = u_getDefaultConverter(&status); in extract()
199 converter = ucnv_open(codepage, &status); in extract()
202 length = doExtract(start, length, target, capacity, converter, status); in extract()
206 u_releaseDefaultConverter(converter); in extract()
208 ucnv_close(converter); in extract()
323 UConverter *converter; in doCodepageCreate() local
330 converter = u_getDefaultConverter(&status); in doCodepageCreate()
341 converter = ucnv_open(codepage, &status); in doCodepageCreate()
351 doCodepageCreate(codepageData, dataLength, converter, status); in doCodepageCreate()
[all …]
/external/chromium/base/i18n/
Dicu_string_conversions.cc80 bool ConvertFromUTF16(UConverter* converter, const UChar* uchar_src, in ConvertFromUTF16() argument
84 ucnv_getMaxCharSize(converter)); in ConvertFromUTF16()
92 ucnv_setFromUCallBack(converter, UCNV_FROM_U_CALLBACK_STOP, 0, in ConvertFromUTF16()
97 ucnv_setFromUCallBack(converter, UCNV_FROM_U_CALLBACK_SKIP, 0, in ConvertFromUTF16()
105 int actual_size = ucnv_fromUChars(converter, &(*encoded)[0], in ConvertFromUTF16()
108 ucnv_close(converter); in ConvertFromUTF16()
117 UConverter* converter, UErrorCode* status) { in SetUpErrorHandlerForToUChars() argument
120 ucnv_setToUCallBack(converter, UCNV_TO_U_CALLBACK_STOP, 0, in SetUpErrorHandlerForToUChars()
124 ucnv_setToUCallBack(converter, UCNV_TO_U_CALLBACK_SKIP, 0, in SetUpErrorHandlerForToUChars()
128 ucnv_setToUCallBack(converter, ToUnicodeCallbackSubstitute, 0, in SetUpErrorHandlerForToUChars()
[all …]
/external/chromium/googleurl/src/
Durl_canon_query.cc98 CharsetConverter* converter, in RunConverter() argument
104 converter->ConvertFromUTF16(utf16.data(), utf16.length(), output); in RunConverter()
112 CharsetConverter* converter, in RunConverter() argument
114 converter->ConvertFromUTF16(&spec[query.begin], query.len, output); in RunConverter()
120 CharsetConverter* converter, in DoConvertToQueryEncoding() argument
128 if (converter) { in DoConvertToQueryEncoding()
132 RunConverter(spec, query, converter, &eight_bit); in DoConvertToQueryEncoding()
145 CharsetConverter* converter, in DoCanonicalizeQuery() argument
156 DoConvertToQueryEncoding<CHAR, UCHAR>(spec, query, converter, output); in DoCanonicalizeQuery()
165 CharsetConverter* converter, in CanonicalizeQuery() argument
[all …]
/external/webkit/Source/WebCore/icu/unicode/
Ducnv.h476 ucnv_close(UConverter * converter);
493 ucnv_getSubstChars(const UConverter *converter,
511 ucnv_setSubstChars(UConverter *converter,
530 ucnv_getInvalidChars(const UConverter *converter,
549 ucnv_getInvalidUChars(const UConverter *converter,
562 ucnv_reset(UConverter *converter);
573 ucnv_resetToUnicode(UConverter *converter);
584 ucnv_resetFromUnicode(UConverter *converter);
635 ucnv_getMaxCharSize(const UConverter *converter);
672 ucnv_getMinCharSize(const UConverter *converter);
[all …]
/external/webkit/Source/JavaScriptCore/icu/unicode/
Ducnv.h476 ucnv_close(UConverter * converter);
493 ucnv_getSubstChars(const UConverter *converter,
511 ucnv_setSubstChars(UConverter *converter,
530 ucnv_getInvalidChars(const UConverter *converter,
549 ucnv_getInvalidUChars(const UConverter *converter,
562 ucnv_reset(UConverter *converter);
573 ucnv_resetToUnicode(UConverter *converter);
584 ucnv_resetFromUnicode(UConverter *converter);
635 ucnv_getMaxCharSize(const UConverter *converter);
672 ucnv_getMinCharSize(const UConverter *converter);
[all …]
/external/webkit/Source/JavaScriptGlue/icu/unicode/
Ducnv.h476 ucnv_close(UConverter * converter);
493 ucnv_getSubstChars(const UConverter *converter,
511 ucnv_setSubstChars(UConverter *converter,
530 ucnv_getInvalidChars(const UConverter *converter,
549 ucnv_getInvalidUChars(const UConverter *converter,
562 ucnv_reset(UConverter *converter);
573 ucnv_resetToUnicode(UConverter *converter);
584 ucnv_resetFromUnicode(UConverter *converter);
635 ucnv_getMaxCharSize(const UConverter *converter);
672 ucnv_getMinCharSize(const UConverter *converter);
[all …]
/external/icu4c/common/unicode/
Ducnv.h561 ucnv_close(UConverter * converter);
600 ucnv_getSubstChars(const UConverter *converter,
625 ucnv_setSubstChars(UConverter *converter,
677 ucnv_getInvalidChars(const UConverter *converter,
696 ucnv_getInvalidUChars(const UConverter *converter,
709 ucnv_reset(UConverter *converter);
720 ucnv_resetToUnicode(UConverter *converter);
731 ucnv_resetFromUnicode(UConverter *converter);
782 ucnv_getMaxCharSize(const UConverter *converter);
815 ucnv_getMinCharSize(const UConverter *converter);
[all …]
/external/icu4c/tools/gencnval/
Dgencnval.c106 uint16_t converter; /* Index into stringStore */ member
166 addAlias(const char *alias, uint16_t standard, uint16_t converter, UBool defaultName);
169 addConverter(const char *converter);
404 char *converter, *alias; in parseLine() local
427 converter=allocString(&stringBlock, line+start, length); in parseLine()
430 cnv=addConverter(converter); in parseLine()
459 alias = converter; in parseLine()
645 addAlias(const char *alias, uint16_t standard, uint16_t converter, UBool defaultName) { in addAlias() argument
655 if(converter>=MAX_CONV_COUNT) { in addAlias()
659 aliasList = &tags[standard].aliasList[converter]; in addAlias()
[all …]
/external/icu4c/io/
Dustream.cpp45 UConverter *converter; in operator <<() local
49 converter = u_getDefaultConverter(&errorCode); in operator <<()
57 ucnv_fromUnicode(converter, &s, sLimit, &us, uLimit, 0, FALSE, &errorCode); in operator <<()
65 u_releaseDefaultConverter(converter); in operator <<()
85 UConverter *converter; in operator >>() local
89 converter = u_getDefaultConverter(&errorCode); in operator >>()
118 ucnv_toUnicode(converter, &us, uLimit, &s, sLimit, 0, !continueReading, &errorCode); in operator >>()
162 u_releaseDefaultConverter(converter); in operator >>()
/external/chromium-trace/trace-viewer/third_party/pywebsocket/src/test/
Dtest_dispatch.py66 converter = dispatch._create_path_to_resource_converter('/a/b')
71 self.assertEqual('/h', converter(os_root + 'a/b/h_wsh.py'))
72 self.assertEqual('/c/h', converter(os_root + 'a/b/c/h_wsh.py'))
73 self.assertEqual(None, converter(os_root + 'a/b/h.py'))
74 self.assertEqual(None, converter('a/b/h_wsh.py'))
76 converter = dispatch._create_path_to_resource_converter('a/b')
77 self.assertEqual('/h', converter(dispatch._normalize_path(
80 converter = dispatch._create_path_to_resource_converter('/a/b///')
81 self.assertEqual('/h', converter(os_root + 'a/b/h_wsh.py'))
82 self.assertEqual('/h', converter(dispatch._normalize_path(
[all …]
/external/openfst/src/include/fst/
Dregister.h49 Converter converter; member
50 FstRegisterEntry() : reader(0), converter(0) {} in FstRegisterEntry()
51 FstRegisterEntry(Reader r, Converter c) : reader(r), converter(c) { } in FstRegisterEntry()
68 return this->GetEntry(type).converter; in GetConverter()
120 converter = registr->GetConverter(ftype); in Convert() local
121 if (!converter) { in Convert()
127 return converter(fst); in Convert()
/external/icu4c/samples/date/
Duprint.c30 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()
/external/icu4c/samples/cal/
Duprint.c29 UConverter *converter; in uprint() local
47 converter = ucnv_open(0, status); in uprint()
58 ucnv_fromUnicode(converter, &myTarget, myTarget + arraySize, in uprint()
74 ucnv_close(converter); in uprint()
/external/srec/tools/thirdparty/OpenFst/fst/lib/
Dregister.h49 Converter converter; member
50 Entry() : reader(0), converter(0) {} in Entry()
63 return GetEntry(type).converter; in GetConverter()
141 entry.converter = &FstRegisterer<F>::Convert; in FstRegisterer()
161 converter = registr->GetConverter(ftype); in Convert() local
162 if (!converter) { in Convert()
168 return converter(fst); in Convert()
/external/webkit/Source/WebCore/platform/text/mac/
DTextCodecMac.h64 TECConverterWrapper() : converter(0), encoding(invalidEncoding) { } in TECConverterWrapper()
65 ~TECConverterWrapper() { if (converter) TECDisposeConverter(converter); } in ~TECConverterWrapper()
67 TECObjectRef converter; member
/external/qemu/android/utils/
Dmapfile.c168 LARGE_INTEGER converter; in mapfile_map() local
209 converter.QuadPart = map_offset + map_size; in mapfile_map()
211 converter.HighPart, converter.LowPart, NULL); in mapfile_map()
213 converter.QuadPart = map_offset; in mapfile_map()
214 mapped_at = MapViewOfFile(map_handle, win32_map, converter.HighPart, in mapfile_map()
215 converter.LowPart, map_size); in mapfile_map()
/external/javassist/sample/evolve/
DEvolution.java55 CodeConverter converter = new CodeConverter(); in onLoad() local
56 converter.replaceNew(absClass, absClass, handlerMethod); in onLoad()
57 clazz.instrument(converter); in onLoad()
173 CodeConverter converter = new CodeConverter(); in makeConcreteClass() local
178 converter.redirectFieldAccess(f, abstractClass, f.getName()); in makeConcreteClass()
183 cs[i].instrument(converter); in makeConcreteClass()
187 ms[i].instrument(converter); in makeConcreteClass()

123456