/external/icu/icu4c/source/common/ |
D | ustr_titlecase_brkiter.cpp | 37 setTempCaseMap(UCaseMap *csm, const char *locale) { in setTempCaseMap() argument 38 if(csm->csp==NULL) { in setTempCaseMap() 39 csm->csp=ucase_getSingleton(); in setTempCaseMap() 42 csm->locale[0]=0; in setTempCaseMap() 44 ustrcase_setTempCaseMapLocale(csm, locale); in setTempCaseMap() 56 UCaseMap csm=UCASEMAP_INITIALIZER; in u_strToTitle() local 57 setTempCaseMap(&csm, locale); in u_strToTitle() 59 ubrk_setText(csm.iter=titleIter, src, srcLength, pErrorCode); in u_strToTitle() 61 csm.iter=ubrk_open(UBRK_WORD, csm.locale, src, srcLength, pErrorCode); in u_strToTitle() 64 &csm, in u_strToTitle() [all …]
|
D | ucasemap.cpp | 42 UCaseMap *csm; in ucasemap_open() local 48 csm=(UCaseMap *)uprv_malloc(sizeof(UCaseMap)); in ucasemap_open() 49 if(csm==NULL) { in ucasemap_open() 52 uprv_memset(csm, 0, sizeof(UCaseMap)); in ucasemap_open() 54 csm->csp=ucase_getSingleton(); in ucasemap_open() 55 ucasemap_setLocale(csm, locale, pErrorCode); in ucasemap_open() 57 uprv_free(csm); in ucasemap_open() 61 csm->options=options; in ucasemap_open() 62 return csm; in ucasemap_open() 66 ucasemap_close(UCaseMap *csm) { in ucasemap_close() argument [all …]
|
D | ustrcase_locale.cpp | 26 ustrcase_setTempCaseMapLocale(UCaseMap *csm, const char *locale) { in ustrcase_setTempCaseMapLocale() argument 57 csm->locale[i]=c; in ustrcase_setTempCaseMapLocale() 60 csm->locale[i]=0; /* Up to 3 non-separator characters. */ in ustrcase_setTempCaseMapLocale() 62 csm->locale[0]=0; /* Longer-than-3 initial subtag: Ignore. */ in ustrcase_setTempCaseMapLocale() 71 setTempCaseMap(UCaseMap *csm, const char *locale) { in setTempCaseMap() argument 72 if(csm->csp==NULL) { in setTempCaseMap() 73 csm->csp=ucase_getSingleton(); in setTempCaseMap() 76 csm->locale[0]=0; in setTempCaseMap() 78 ustrcase_setTempCaseMapLocale(csm, locale); in setTempCaseMap() 89 UCaseMap csm=UCASEMAP_INITIALIZER; in u_strToLower() local [all …]
|
D | unistr_case_locale.cpp | 35 setTempCaseMap(UCaseMap *csm, const char *locale) { in setTempCaseMap() argument 36 if(csm->csp==NULL) { in setTempCaseMap() 37 csm->csp=ucase_getSingleton(); in setTempCaseMap() 40 csm->locale[0]=0; in setTempCaseMap() 42 ustrcase_setTempCaseMapLocale(csm, locale); in setTempCaseMap() 53 UCaseMap csm=UCASEMAP_INITIALIZER; in toLower() local 54 setTempCaseMap(&csm, locale.getName()); in toLower() 55 return caseMap(&csm, ustrcase_internalToLower); in toLower() 65 UCaseMap csm=UCASEMAP_INITIALIZER; in toUpper() local 66 setTempCaseMap(&csm, locale.getName()); in toUpper() [all …]
|
D | unistr_titlecase_brkiter.cpp | 30 unistr_case_internalToTitle(const UCaseMap *csm, in unistr_case_internalToTitle() argument 34 ubrk_setText(csm->iter, src, srcLength, pErrorCode); in unistr_case_internalToTitle() 35 return ustrcase_internalToTitle(csm, dest, destCapacity, src, srcLength, pErrorCode); in unistr_case_internalToTitle() 43 setTempCaseMap(UCaseMap *csm, const char *locale) { in setTempCaseMap() argument 44 if(csm->csp==NULL) { in setTempCaseMap() 45 csm->csp=ucase_getSingleton(); in setTempCaseMap() 48 csm->locale[0]=0; in setTempCaseMap() 50 ustrcase_setTempCaseMapLocale(csm, locale); in setTempCaseMap() 68 UCaseMap csm=UCASEMAP_INITIALIZER; in toTitle() local 69 csm.options=options; in toTitle() [all …]
|
D | ucasemap_titlecase_brkiter.cpp | 32 ucasemap_getBreakIterator(const UCaseMap *csm) { in ucasemap_getBreakIterator() argument 33 return csm->iter; in ucasemap_getBreakIterator() 37 ucasemap_setBreakIterator(UCaseMap *csm, UBreakIterator *iterToAdopt, UErrorCode * /*pErrorCode*/) { in ucasemap_setBreakIterator() argument 39 delete reinterpret_cast<BreakIterator *>(csm->iter); in ucasemap_setBreakIterator() 40 csm->iter=iterToAdopt; in ucasemap_setBreakIterator() 44 ucasemap_utf8ToTitle(UCaseMap *csm, in ucasemap_utf8ToTitle() argument 53 if(csm->iter==NULL) { in ucasemap_utf8ToTitle() 54 csm->iter=ubrk_open(UBRK_WORD, csm->locale, in ucasemap_utf8ToTitle() 58 ubrk_setUText(csm->iter, &utext, pErrorCode); in ucasemap_utf8ToTitle() 59 int32_t length=ucasemap_mapUTF8(csm, in ucasemap_utf8ToTitle()
|
D | ustrcase.cpp | 128 _caseMap(const UCaseMap *csm, UCaseMapFull *map, in _caseMap() argument 138 locCache=csm->locCache; in _caseMap() 147 c=map(csm->csp, c, utf16_caseContextIterator, csc, &s, csm->locale, &locCache); in _caseMap() 165 ustrcase_internalToTitle(const UCaseMap *csm, in ustrcase_internalToTitle() argument 180 BreakIterator *bi=reinterpret_cast<BreakIterator *>(csm->iter); in ustrcase_internalToTitle() 183 int32_t locCache=csm->locCache; in ustrcase_internalToTitle() 221 … if((csm->options&U_TITLECASE_NO_BREAK_ADJUSTMENT)==0 && UCASE_NONE==ucase_getType(csm->csp, c)) { in ustrcase_internalToTitle() 233 if(UCASE_NONE!=ucase_getType(csm->csp, c)) { in ustrcase_internalToTitle() 250 … c=ucase_toFullTitle(csm->csp, c, utf16_caseContextIterator, &csc, &s, csm->locale, &locCache); in ustrcase_internalToTitle() 255 ucase_getCaseLocale(csm->locale,&locCache) == UCASE_LOC_DUTCH && in ustrcase_internalToTitle() [all …]
|
D | ustr_imp.h | 109 ustrcase_setTempCaseMapLocale(UCaseMap *csm, const char *locale); 121 UStringCaseMapper(const UCaseMap *csm, 130 ustrcase_internalToLower(const UCaseMap *csm, 137 ustrcase_internalToUpper(const UCaseMap *csm, 146 ustrcase_internalToTitle(const UCaseMap *csm, 155 ustrcase_internalFold(const UCaseMap *csm, 165 ustrcase_map(const UCaseMap *csm, 179 UTF8CaseMapper(const UCaseMap *csm, 186 ucasemap_internalUTF8ToTitle(const UCaseMap *csm, 196 ucasemap_mapUTF8(const UCaseMap *csm,
|
D | unistr_case.cpp | 88 UnicodeString::caseMap(const UCaseMap *csm, in caseMap() argument 129 newLength = stringCaseMapper(csm, getArrayStart(), getCapacity(), in caseMap() 145 UCaseMap csm=UCASEMAP_INITIALIZER; in foldCase() local 146 csm.csp=ucase_getSingleton(); in foldCase() 147 csm.options=options; in foldCase() 148 return caseMap(&csm, ustrcase_internalFold); in foldCase()
|
/external/chromium_org/third_party/icu/source/common/ |
D | ustr_titlecase_brkiter.cpp | 37 setTempCaseMap(UCaseMap *csm, const char *locale) { in setTempCaseMap() argument 38 if(csm->csp==NULL) { in setTempCaseMap() 39 csm->csp=ucase_getSingleton(); in setTempCaseMap() 42 csm->locale[0]=0; in setTempCaseMap() 44 ustrcase_setTempCaseMapLocale(csm, locale); in setTempCaseMap() 56 UCaseMap csm=UCASEMAP_INITIALIZER; in u_strToTitle() local 57 setTempCaseMap(&csm, locale); in u_strToTitle() 59 ubrk_setText(csm.iter=titleIter, src, srcLength, pErrorCode); in u_strToTitle() 61 csm.iter=ubrk_open(UBRK_WORD, csm.locale, src, srcLength, pErrorCode); in u_strToTitle() 64 &csm, in u_strToTitle() [all …]
|
D | ucasemap.cpp | 42 UCaseMap *csm; in ucasemap_open() local 48 csm=(UCaseMap *)uprv_malloc(sizeof(UCaseMap)); in ucasemap_open() 49 if(csm==NULL) { in ucasemap_open() 52 uprv_memset(csm, 0, sizeof(UCaseMap)); in ucasemap_open() 54 csm->csp=ucase_getSingleton(); in ucasemap_open() 55 ucasemap_setLocale(csm, locale, pErrorCode); in ucasemap_open() 57 uprv_free(csm); in ucasemap_open() 61 csm->options=options; in ucasemap_open() 62 return csm; in ucasemap_open() 66 ucasemap_close(UCaseMap *csm) { in ucasemap_close() argument [all …]
|
D | ustrcase_locale.cpp | 26 ustrcase_setTempCaseMapLocale(UCaseMap *csm, const char *locale) { in ustrcase_setTempCaseMapLocale() argument 57 csm->locale[i]=c; in ustrcase_setTempCaseMapLocale() 60 csm->locale[i]=0; /* Up to 3 non-separator characters. */ in ustrcase_setTempCaseMapLocale() 62 csm->locale[0]=0; /* Longer-than-3 initial subtag: Ignore. */ in ustrcase_setTempCaseMapLocale() 71 setTempCaseMap(UCaseMap *csm, const char *locale) { in setTempCaseMap() argument 72 if(csm->csp==NULL) { in setTempCaseMap() 73 csm->csp=ucase_getSingleton(); in setTempCaseMap() 76 csm->locale[0]=0; in setTempCaseMap() 78 ustrcase_setTempCaseMapLocale(csm, locale); in setTempCaseMap() 89 UCaseMap csm=UCASEMAP_INITIALIZER; in u_strToLower() local [all …]
|
D | unistr_case_locale.cpp | 35 setTempCaseMap(UCaseMap *csm, const char *locale) { in setTempCaseMap() argument 36 if(csm->csp==NULL) { in setTempCaseMap() 37 csm->csp=ucase_getSingleton(); in setTempCaseMap() 40 csm->locale[0]=0; in setTempCaseMap() 42 ustrcase_setTempCaseMapLocale(csm, locale); in setTempCaseMap() 53 UCaseMap csm=UCASEMAP_INITIALIZER; in toLower() local 54 setTempCaseMap(&csm, locale.getName()); in toLower() 55 return caseMap(&csm, ustrcase_internalToLower); in toLower() 65 UCaseMap csm=UCASEMAP_INITIALIZER; in toUpper() local 66 setTempCaseMap(&csm, locale.getName()); in toUpper() [all …]
|
D | unistr_titlecase_brkiter.cpp | 30 unistr_case_internalToTitle(const UCaseMap *csm, in unistr_case_internalToTitle() argument 34 ubrk_setText(csm->iter, src, srcLength, pErrorCode); in unistr_case_internalToTitle() 35 return ustrcase_internalToTitle(csm, dest, destCapacity, src, srcLength, pErrorCode); in unistr_case_internalToTitle() 43 setTempCaseMap(UCaseMap *csm, const char *locale) { in setTempCaseMap() argument 44 if(csm->csp==NULL) { in setTempCaseMap() 45 csm->csp=ucase_getSingleton(); in setTempCaseMap() 48 csm->locale[0]=0; in setTempCaseMap() 50 ustrcase_setTempCaseMapLocale(csm, locale); in setTempCaseMap() 68 UCaseMap csm=UCASEMAP_INITIALIZER; in toTitle() local 69 csm.options=options; in toTitle() [all …]
|
D | ucasemap_titlecase_brkiter.cpp | 32 ucasemap_getBreakIterator(const UCaseMap *csm) { in ucasemap_getBreakIterator() argument 33 return csm->iter; in ucasemap_getBreakIterator() 37 ucasemap_setBreakIterator(UCaseMap *csm, UBreakIterator *iterToAdopt, UErrorCode * /*pErrorCode*/) { in ucasemap_setBreakIterator() argument 39 delete reinterpret_cast<BreakIterator *>(csm->iter); in ucasemap_setBreakIterator() 40 csm->iter=iterToAdopt; in ucasemap_setBreakIterator() 44 ucasemap_utf8ToTitle(UCaseMap *csm, in ucasemap_utf8ToTitle() argument 53 if(csm->iter==NULL) { in ucasemap_utf8ToTitle() 54 csm->iter=ubrk_open(UBRK_WORD, csm->locale, in ucasemap_utf8ToTitle() 58 ubrk_setUText(csm->iter, &utext, pErrorCode); in ucasemap_utf8ToTitle() 59 int32_t length=ucasemap_mapUTF8(csm, in ucasemap_utf8ToTitle()
|
D | ustrcase.cpp | 128 _caseMap(const UCaseMap *csm, UCaseMapFull *map, in _caseMap() argument 138 locCache=csm->locCache; in _caseMap() 147 c=map(csm->csp, c, utf16_caseContextIterator, csc, &s, csm->locale, &locCache); in _caseMap() 165 ustrcase_internalToTitle(const UCaseMap *csm, in ustrcase_internalToTitle() argument 180 BreakIterator *bi=reinterpret_cast<BreakIterator *>(csm->iter); in ustrcase_internalToTitle() 183 int32_t locCache=csm->locCache; in ustrcase_internalToTitle() 221 … if((csm->options&U_TITLECASE_NO_BREAK_ADJUSTMENT)==0 && UCASE_NONE==ucase_getType(csm->csp, c)) { in ustrcase_internalToTitle() 233 if(UCASE_NONE!=ucase_getType(csm->csp, c)) { in ustrcase_internalToTitle() 250 … c=ucase_toFullTitle(csm->csp, c, utf16_caseContextIterator, &csc, &s, csm->locale, &locCache); in ustrcase_internalToTitle() 255 ucase_getCaseLocale(csm->locale,&locCache) == UCASE_LOC_DUTCH && in ustrcase_internalToTitle() [all …]
|
D | ustr_imp.h | 109 ustrcase_setTempCaseMapLocale(UCaseMap *csm, const char *locale); 121 UStringCaseMapper(const UCaseMap *csm, 130 ustrcase_internalToLower(const UCaseMap *csm, 137 ustrcase_internalToUpper(const UCaseMap *csm, 146 ustrcase_internalToTitle(const UCaseMap *csm, 155 ustrcase_internalFold(const UCaseMap *csm, 165 ustrcase_map(const UCaseMap *csm, 179 UTF8CaseMapper(const UCaseMap *csm, 186 ucasemap_internalUTF8ToTitle(const UCaseMap *csm, 196 ucasemap_mapUTF8(const UCaseMap *csm,
|
D | unistr_case.cpp | 88 UnicodeString::caseMap(const UCaseMap *csm, in caseMap() argument 129 newLength = stringCaseMapper(csm, getArrayStart(), getCapacity(), in caseMap() 145 UCaseMap csm=UCASEMAP_INITIALIZER; in foldCase() local 146 csm.csp=ucase_getSingleton(); in foldCase() 147 csm.options=options; in foldCase() 148 return caseMap(&csm, ustrcase_internalFold); in foldCase()
|
/external/chromium_org/third_party/icu/source/common/unicode/ |
D | ucasemap.h | 78 ucasemap_close(UCaseMap *csm); 106 ucasemap_getLocale(const UCaseMap *csm); 115 ucasemap_getOptions(const UCaseMap *csm); 129 ucasemap_setLocale(UCaseMap *csm, const char *locale, UErrorCode *pErrorCode); 143 ucasemap_setOptions(UCaseMap *csm, uint32_t options, UErrorCode *pErrorCode); 196 ucasemap_getBreakIterator(const UCaseMap *csm); 219 ucasemap_setBreakIterator(UCaseMap *csm, UBreakIterator *iterToAdopt, UErrorCode *pErrorCode); 268 ucasemap_toTitle(UCaseMap *csm, 299 ucasemap_utf8ToLower(const UCaseMap *csm, 328 ucasemap_utf8ToUpper(const UCaseMap *csm, [all …]
|
/external/icu/icu4c/source/common/unicode/ |
D | ucasemap.h | 78 ucasemap_close(UCaseMap *csm); 106 ucasemap_getLocale(const UCaseMap *csm); 115 ucasemap_getOptions(const UCaseMap *csm); 129 ucasemap_setLocale(UCaseMap *csm, const char *locale, UErrorCode *pErrorCode); 143 ucasemap_setOptions(UCaseMap *csm, uint32_t options, UErrorCode *pErrorCode); 196 ucasemap_getBreakIterator(const UCaseMap *csm); 219 ucasemap_setBreakIterator(UCaseMap *csm, UBreakIterator *iterToAdopt, UErrorCode *pErrorCode); 268 ucasemap_toTitle(UCaseMap *csm, 299 ucasemap_utf8ToLower(const UCaseMap *csm, 328 ucasemap_utf8ToUpper(const UCaseMap *csm, [all …]
|
/external/icu/icu4c/source/test/cintltst/ |
D | cstrcase.c | 730 UCaseMap *csm; in TestUCaseMap() local 737 csm=ucasemap_open("tur", 0xa5, &errorCode); in TestUCaseMap() 742 locale=ucasemap_getLocale(csm); in TestUCaseMap() 747 ucasemap_setLocale(csm, "I-kLInGOn-the-quick-brown-fox-jumps-over-the-lazy-dog", &errorCode); in TestUCaseMap() 748 locale=ucasemap_getLocale(csm); in TestUCaseMap() 754 options=ucasemap_getOptions(csm); in TestUCaseMap() 758 ucasemap_setOptions(csm, 0x333333, &errorCode); in TestUCaseMap() 759 options=ucasemap_getOptions(csm); in TestUCaseMap() 768 length=ucasemap_utf8ToLower(csm, utf8Out, (int32_t)sizeof(utf8Out), aBc, -1, &errorCode); in TestUCaseMap() 776 length=ucasemap_utf8ToLower(csm, utf8Out, (int32_t)sizeof(utf8Out), aBc, -1, &errorCode); in TestUCaseMap() [all …]
|
/external/chromium_org/third_party/icu/source/test/cintltst/ |
D | cstrcase.c | 730 UCaseMap *csm; in TestUCaseMap() local 737 csm=ucasemap_open("tur", 0xa5, &errorCode); in TestUCaseMap() 742 locale=ucasemap_getLocale(csm); in TestUCaseMap() 747 ucasemap_setLocale(csm, "I-kLInGOn-the-quick-brown-fox-jumps-over-the-lazy-dog", &errorCode); in TestUCaseMap() 748 locale=ucasemap_getLocale(csm); in TestUCaseMap() 754 options=ucasemap_getOptions(csm); in TestUCaseMap() 758 ucasemap_setOptions(csm, 0x333333, &errorCode); in TestUCaseMap() 759 options=ucasemap_getOptions(csm); in TestUCaseMap() 768 length=ucasemap_utf8ToLower(csm, utf8Out, (int32_t)sizeof(utf8Out), aBc, -1, &errorCode); in TestUCaseMap() 776 length=ucasemap_utf8ToLower(csm, utf8Out, (int32_t)sizeof(utf8Out), aBc, -1, &errorCode); in TestUCaseMap() [all …]
|
/external/chromium_org/third_party/icu/source/samples/csdet/ |
D | csdet.c | 31 const UCharsetMatch **csm; in main() local 54 csm = ucsdet_detectAll(csd, &matchCount, &status); in main() 57 const char *name = ucsdet_getName(csm[match], &status); in main() 58 const char *lang = ucsdet_getLanguage(csm[match], &status); in main() 59 int32_t confidence = ucsdet_getConfidence(csm[match], &status); in main()
|
/external/icu/icu4c/source/samples/csdet/ |
D | csdet.c | 31 const UCharsetMatch **csm; in main() local 54 csm = ucsdet_detectAll(csd, &matchCount, &status); in main() 57 const char *name = ucsdet_getName(csm[match], &status); in main() 58 const char *lang = ucsdet_getLanguage(csm[match], &status); in main() 59 int32_t confidence = ucsdet_getConfidence(csm[match], &status); in main()
|
/external/chromium_org/third_party/icu/source/test/intltest/ |
D | strcase.cpp | 396 LocalUCaseMapPointer csm(ucasemap_open(localeID, options, errorCode)); in TestCasingImpl() local 401 ucasemap_setBreakIterator(csm.getAlias(), clone, errorCode); in TestCasingImpl() 409 utf8OutLength=ucasemap_utf8ToLower(csm.getAlias(), in TestCasingImpl() 415 utf8OutLength=ucasemap_utf8ToUpper(csm.getAlias(), in TestCasingImpl() 422 utf8OutLength=ucasemap_utf8ToTitle(csm.getAlias(), in TestCasingImpl() 429 utf8OutLength=ucasemap_utf8FoldCase(csm.getAlias(), in TestCasingImpl()
|