Searched refs:converter (Results 1 - 25 of 120) sorted by relevance

12345

/external/clang/test/CodeGen/
H A D2003-11-20-UnionBitfield.c5 char converter; member in struct:printf_spec
/external/icu4c/common/
H A Ducnv_cb.c46 args->converter,
62 just retry shoving data through the same converter. Note, if you got
81 ucnv_fromUnicode(args->converter,
115 errBuffLen = args->converter->charErrorBufferLength;
118 newTarget = (char *)(args->converter->charErrorBuffer + errBuffLen);
120 newTargetLimit = (char *)(args->converter->charErrorBuffer +
121 sizeof(args->converter->charErrorBuffer));
129 /* We're going to tell the converter that the errbuff len is empty.
131 itself. If the errbuff is needed by the converter this time,
134 args->converter
179 UConverter *converter; local
[all...]
H A Dustr_cnv.c30 /* mutexed access to a shared default converter ----------------------------- */
37 UConverter *converter = NULL; local
44 converter = gDefaultConverter;
50 /* if the cache was empty, create a converter */
51 if(converter == NULL) {
52 converter = ucnv_open(NULL, status);
54 ucnv_close(converter);
55 converter = NULL;
59 return converter;
63 u_releaseDefaultConverter(UConverter *converter) argument
86 UConverter *converter = NULL; local
[all...]
H A Dustr_cnv.h24 * Get the default converter. This is a commonly used converter
34 * Release the default converter to the converter cache.
38 u_releaseDefaultConverter(UConverter *converter);
41 * Flush the default converter, if cached.
H A Ducnv_u32.c14 * UTF-32 converter implementation. Used to be in ucnv_utf.c.
51 unsigned char *toUBytes = args->converter->toUBytes;
55 if (args->converter->toUnicodeStatus && myTarget < targetLimit) {
56 i = args->converter->toULength; /* restore # of bytes consumed */
57 args->converter->toULength = 0;
59 ch = args->converter->toUnicodeStatus - 1;/*Stores the previously calculated ch from a previous call*/
60 args->converter->toUnicodeStatus = 0;
76 args->converter->toUnicodeStatus = ch + 1;
77 args->converter->toULength = (int8_t) i;
98 args->converter
[all...]
H A Ducnvhz.c48 args->converter->charErrorBuffer[(int)args->converter->charErrorBufferLength++] = (unsigned char) *strToAppend; \
162 UConverterDataHZ* myData=(UConverterDataHZ*)(args->converter->extraInfo);
167 /*if ((args->converter == NULL) || (args->targetLimit < args->target) || (mySourceLimit < args->source)){
178 if(args->converter->mode == UCNV_TILDE) {
180 args->converter->mode=0;
198 args->converter->toUCallbackReason = UCNV_IRREGULAR;
199 args->converter->toUBytes[0] = UCNV_TILDE;
200 args->converter->toUBytes[1] = mySourceChar;
201 args->converter
[all...]
H A Ducnv.c148 and created from a converter that is shared across threads.
192 UTRACE_DATA3(UTRACE_OPEN_CLOSE, "clone converter %s at %p into stackBuffer %p",
289 Checking whether it's an algorithic converter is okay
303 toUArgs.converter = fromUArgs.converter = localConverter;
319 ucnv_close (UConverter * converter) argument
325 if (converter == NULL)
331 UTRACE_DATA3(UTRACE_OPEN_CLOSE, "close converter %s at %p, isCopyLocal=%b",
332 ucnv_getName(converter, &errorCode), converter, converte
417 ucnv_getSubstChars(const UConverter * converter, char *mySubChar, int8_t * len, UErrorCode * err) argument
442 ucnv_setSubstChars(UConverter * converter, const char *mySubChar, int8_t len, UErrorCode * err) argument
561 _reset(UConverter *converter, UConverterResetChoice choice, UBool callCallback) argument
626 ucnv_reset(UConverter *converter) argument
632 ucnv_resetToUnicode(UConverter *converter) argument
638 ucnv_resetFromUnicode(UConverter *converter) argument
644 ucnv_getMaxCharSize(const UConverter * converter) argument
651 ucnv_getMinCharSize(const UConverter * converter) argument
657 ucnv_getName(const UConverter * converter, UErrorCode * err) argument
671 ucnv_getCCSID(const UConverter * converter, UErrorCode * err) argument
695 ucnv_getPlatform(const UConverter * converter, UErrorCode * err) argument
705 ucnv_getToUCallBack(const UConverter * converter, UConverterToUCallback *action, const void **context) argument
714 ucnv_getFromUCallBack(const UConverter * converter, UConverterFromUCallback *action, const void **context) argument
723 ucnv_setToUCallBack(UConverter * converter, UConverterToUCallback newAction, const void* newContext, UConverterToUCallback *oldAction, const void** oldContext, UErrorCode * err) argument
739 ucnv_setFromUCallBack(UConverter * converter, UConverterFromUCallback newAction, const void* newContext, UConverterFromUCallback *oldAction, const void** oldContext, UErrorCode * err) argument
2606 ucnv_getType(const UConverter* converter) argument
2618 ucnv_getStarters(const UConverter* converter, UBool starters[256], UErrorCode* err) argument
2699 ucnv_getInvalidChars(const UConverter * converter, char *errBytes, int8_t * len, UErrorCode * err) argument
2725 ucnv_getInvalidUChars(const UConverter * converter, UChar *errChars, int8_t * len, UErrorCode * err) argument
[all...]
H A Dunistr_cnv.cpp104 // use the provided converter
108 // use the default converter
171 // create the converter
172 UConverter *converter; local
187 converter = u_getDefaultConverter(&status);
199 converter = ucnv_open(codepage, &status);
202 length = doExtract(start, length, target, capacity, converter, status);
204 // close the converter
206 u_releaseDefaultConverter(converter);
208 ucnv_close(converter);
323 UConverter *converter; local
365 doCodepageCreate(const char *codepageData, int32_t dataLength, UConverter *converter, UErrorCode &status) argument
[all...]
H A Ducnv2022.c48 * I am disabling the generic ISO-2022 converter after proposing to do so on
58 * 2. I believe that no one is really using the generic ISO-2022 converter
60 * Note that ICU's generic ISO-2022 converter has always output one escape
63 * the previous converter is closed and a new one opened,
70 * The ICU ISO-2022 converter does not handle this - and has no information
163 * Note: The converter uses some leniency:
263 * v) Get the converter name form escSeqStateTable_Result_2022[21] which is JISX208
301 * When the generic ISO-2022 converter is completely removed, not just disabled
377 _ISO2022Close(UConverter *converter);
380 _ISO2022Reset(UConverter *converter, UConverterResetChoic
420 setInitialStateToUnicodeKR(UConverter* converter, UConverterDataISO2022 *myConverterData) argument
431 setInitialStateFromUnicodeKR(UConverter* converter,UConverterDataISO2022 *myConverterData) argument
632 _ISO2022Close(UConverter *converter) argument
655 _ISO2022Reset(UConverter *converter, UConverterResetChoice choice) argument
[all...]
/external/icu4c/samples/cal/
H A Duprint.c28 /* converter */
29 UConverter *converter; local
46 /* open a default converter */
47 converter = ucnv_open(0, status);
58 ucnv_fromUnicode(converter, &myTarget, myTarget + arraySize,
73 /* close the converter */
74 ucnv_close(converter);
/external/icu4c/samples/date/
H A Duprint.c29 /* converter */
30 UConverter *converter; local
47 /* open a default converter */
48 converter = ucnv_open(0, status);
59 ucnv_fromUnicode(converter, &myTarget, myTarget + arraySize,
74 /* close the converter */
75 ucnv_close(converter);
/external/webkit/Source/WebCore/platform/text/mac/
H A DTextCodecMac.h64 TECConverterWrapper() : converter(0), encoding(invalidEncoding) { }
65 ~TECConverterWrapper() { if (converter) TECDisposeConverter(converter); }
67 TECObjectRef converter; member in struct:WebCore::TECConverterWrapper
/external/chromium/googleurl/src/
H A Durl_canon_query.cc94 // Runs the converter on the given UTF-8 input. Since the converter expects
95 // UTF-16, we have to convert first. The converter must be non-NULL.
98 CharsetConverter* converter,
104 converter->ConvertFromUTF16(utf16.data(), utf16.length(), output);
107 // Runs the converter with the given UTF-16 input. We don't have to do
112 CharsetConverter* converter,
114 converter->ConvertFromUTF16(&spec[query.begin], query.len, output);
120 CharsetConverter* converter,
128 if (converter) {
96 RunConverter(const char* spec, const url_parse::Component& query, CharsetConverter* converter, CanonOutput* output) argument
110 RunConverter(const char16* spec, const url_parse::Component& query, CharsetConverter* converter, CanonOutput* output) argument
118 DoConvertToQueryEncoding(const CHAR* spec, const url_parse::Component& query, CharsetConverter* converter, CanonOutput* output) argument
143 DoCanonicalizeQuery(const CHAR* spec, const url_parse::Component& query, CharsetConverter* converter, CanonOutput* output, url_parse::Component* out_query) argument
163 CanonicalizeQuery(const char* spec, const url_parse::Component& query, CharsetConverter* converter, CanonOutput* output, url_parse::Component* out_query) argument
172 CanonicalizeQuery(const char16* spec, const url_parse::Component& query, CharsetConverter* converter, CanonOutput* output, url_parse::Component* out_query) argument
181 ConvertUTF16ToQueryEncoding(const char16* input, const url_parse::Component& query, CharsetConverter* converter, CanonOutput* output) argument
[all...]
H A Durl_canon_icu.h45 // Constructs a converter using an already-existing ICU character set
46 // converter. This converter is NOT owned by this object; the lifetime must
48 GURL_API ICUCharsetConverter(UConverter* converter);
57 // The ICU converter, not owned by this class.
/external/icu4c/tools/genrb/
H A Dderb.c62 static void printOutBundle(FILE *out, UConverter *converter, UResourceBundle *resource, int32_t indent, const char *pname, UErrorCode *status);
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; local
189 converter = ucnv_open(encoding, &status);
191 fprintf(stderr, "%s: couldn't create %s converter for encoding\n", pname, encoding ? encoding : ucnv_getDefaultName());
194 ucnv_setFromUCallBack(converter, UCNV_FROM_U_CALLBACK_ESCAPE, UCNV_ESCAPE_C, 0, 0, &status);
196 fprintf(stderr, "%s: couldn't configure converter fo
410 printString(FILE *out, UConverter *converter, const UChar *str, int32_t len) argument
430 printCString(FILE *out, UConverter *converter, const char *str, int32_t len) argument
450 printIndent(FILE *out, UConverter *converter, int32_t indent) argument
461 printHex(FILE *out, UConverter *converter, uint8_t what) argument
471 printOutAlias(FILE *out, UConverter *converter, UResourceBundle *parent, Resource r, const char *key, int32_t indent, const char *pname, UErrorCode *status) argument
504 printOutBundle(FILE *out, UConverter *converter, UResourceBundle *resource, int32_t indent, const char *pname, UErrorCode *status) argument
[all...]
/external/chromium/base/i18n/
H A Dicu_string_conversions.cc80 bool ConvertFromUTF16(UConverter* converter, const UChar* uchar_src, argument
84 ucnv_getMaxCharSize(converter));
92 ucnv_setFromUCallBack(converter, UCNV_FROM_U_CALLBACK_STOP, 0,
97 ucnv_setFromUCallBack(converter, UCNV_FROM_U_CALLBACK_SKIP, 0,
105 int actual_size = ucnv_fromUChars(converter, &(*encoded)[0],
108 ucnv_close(converter);
117 UConverter* converter, UErrorCode* status) {
120 ucnv_setToUCallBack(converter, UCNV_TO_U_CALLBACK_STOP, 0,
124 ucnv_setToUCallBack(converter, UCNV_TO_U_CALLBACK_SKIP, 0,
128 ucnv_setToUCallBack(converter, ToUnicodeCallbackSubstitut
116 SetUpErrorHandlerForToUChars(OnStringConversionError::Type on_error, UConverter* converter, UErrorCode* status) argument
160 UConverter* converter = ucnv_open(codepage_name, &status); local
175 UConverter* converter = ucnv_open(codepage_name, &status); local
[all...]
/external/icu4c/io/
H A Dustream.cpp45 UConverter *converter; local
48 // use the default converter to convert chunks of text
49 converter = u_getDefaultConverter(&errorCode);
57 ucnv_fromUnicode(converter, &s, sLimit, &us, uLimit, 0, FALSE, &errorCode);
65 u_releaseDefaultConverter(converter);
85 UConverter *converter; local
88 // use the default converter to convert chunks of text
89 converter = u_getDefaultConverter(&errorCode);
118 ucnv_toUnicode(converter, &us, uLimit, &s, sLimit, 0, !continueReading, &errorCode);
162 u_releaseDefaultConverter(converter);
[all...]
/external/webkit/Tools/Scripts/webkitpy/tool/commands/
H A Drebaseline_unittest.py48 converter = BuilderToPort()
49 port = converter.port_for_builder("Leopard Intel Debug (Tests)")
/external/icu4c/common/unicode/
H A Ducnv.h26 * from UTF-16. You can open a converter with {@link ucnv_open() }. With that
27 * converter, you can get its properties, set options, convert your data and
28 * close the converter.</p>
30 * <p>Since many software programs recogize different converter names for
32 * iterate over the converter aliases. The functions {@link ucnv_getAvailableName() },
36 * <p>When a converter encounters an illegal, irregular, invalid or unmappable character
39 * or {@link ucnv_setToUCallBack() } on the converter. The header ucnv_err.h defines
75 /** Maximum length of a converter name including the terminating NULL @stable ICU 2.0 */
77 /** Maximum length of a converter name including path and terminating NULL @stable ICU 2.0 */
165 /* Number of converter type
[all...]
/external/webkit/Source/JavaScriptCore/icu/unicode/
H A Ducnv.h26 * from UTF-16. You can open a converter with {@link ucnv_open() }. With that
27 * converter, you can get its properties, set options, convert your data and
28 * close the converter.</p>
30 * <p>Since many software programs recogize different converter names for
32 * iterate over the converter aliases. The functions {@link ucnv_getAvailableName() },
36 * <p>When a converter encounters an illegal, irregular, invalid or unmappable character
39 * or {@link ucnv_getToUCallBack() } on the converter. The header ucnv_err.h defines
74 /** Maximum length of a converter name including the terminating NULL @stable ICU 2.0 */
76 /** Maximum length of a converter name including path and terminating NULL @stable ICU 2.0 */
127 /* Number of converter type
[all...]
/external/webkit/Source/JavaScriptGlue/icu/unicode/
H A Ducnv.h26 * from UTF-16. You can open a converter with {@link ucnv_open() }. With that
27 * converter, you can get its properties, set options, convert your data and
28 * close the converter.</p>
30 * <p>Since many software programs recogize different converter names for
32 * iterate over the converter aliases. The functions {@link ucnv_getAvailableName() },
36 * <p>When a converter encounters an illegal, irregular, invalid or unmappable character
39 * or {@link ucnv_getToUCallBack() } on the converter. The header ucnv_err.h defines
74 /** Maximum length of a converter name including the terminating NULL @stable ICU 2.0 */
76 /** Maximum length of a converter name including path and terminating NULL @stable ICU 2.0 */
127 /* Number of converter type
[all...]
/external/webkit/Source/WebCore/icu/unicode/
H A Ducnv.h26 * from UTF-16. You can open a converter with {@link ucnv_open() }. With that
27 * converter, you can get its properties, set options, convert your data and
28 * close the converter.</p>
30 * <p>Since many software programs recogize different converter names for
32 * iterate over the converter aliases. The functions {@link ucnv_getAvailableName() },
36 * <p>When a converter encounters an illegal, irregular, invalid or unmappable character
39 * or {@link ucnv_getToUCallBack() } on the converter. The header ucnv_err.h defines
74 /** Maximum length of a converter name including the terminating NULL @stable ICU 2.0 */
76 /** Maximum length of a converter name including path and terminating NULL @stable ICU 2.0 */
127 /* Number of converter type
[all...]
/external/openfst/src/include/fst/
H A Dregister.h49 Converter converter; member in struct:fst::FstRegisterEntry
50 FstRegisterEntry() : reader(0), converter(0) {}
51 FstRegisterEntry(Reader r, Converter c) : reader(r), converter(c) { }
55 // an FST type, and its reader and converter.
68 return this->GetEntry(type).converter;
120 converter = registr->GetConverter(ftype); local
121 if (!converter) {
127 return converter(fst);
/external/webkit/Source/WebCore/platform/text/
H A DTextCodecICU.h68 ICUConverterWrapper() : converter(0) { }
71 UConverter* converter; member in struct:WebCore::ICUConverterWrapper
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x9/
H A DX9FieldElement.java19 private static X9IntegerConverter converter = new X9IntegerConverter(); field in class:X9FieldElement
59 int byteCount = converter.getByteLength(f);
60 byte[] paddedBigInteger = converter.integerToBytes(f.toBigInteger(), byteCount);

Completed in 547 milliseconds

12345