• Home
  • Raw
  • Download

Lines Matching refs:csp

65 ucase_addPropertyStarts(const UCaseProps *csp, const USetAdder *sa, UErrorCode *pErrorCode) {  in ucase_addPropertyStarts()  argument
71 utrie2_enum(&csp->trie, NULL, _enumPropertyStartsRange, sa); in ucase_addPropertyStarts()
85 #define GET_EXCEPTIONS(csp, props) ((csp)->exceptions+((props)>>UCASE_EXC_SHIFT)) argument
134 ucase_tolower(const UCaseProps *csp, UChar32 c) { in ucase_tolower() argument
135 uint16_t props=UTRIE2_GET16(&csp->trie, c); in ucase_tolower()
141 const uint16_t *pe=GET_EXCEPTIONS(csp, props); in ucase_tolower()
151 ucase_toupper(const UCaseProps *csp, UChar32 c) { in ucase_toupper() argument
152 uint16_t props=UTRIE2_GET16(&csp->trie, c); in ucase_toupper()
158 const uint16_t *pe=GET_EXCEPTIONS(csp, props); in ucase_toupper()
168 ucase_totitle(const UCaseProps *csp, UChar32 c) { in ucase_totitle() argument
169 uint16_t props=UTRIE2_GET16(&csp->trie, c); in ucase_totitle()
175 const uint16_t *pe=GET_EXCEPTIONS(csp, props); in ucase_totitle()
199 ucase_addCaseClosure(const UCaseProps *csp, UChar32 c, const USetAdder *sa) { in ucase_addCaseClosure() argument
230 props=UTRIE2_GET16(&csp->trie, c); in ucase_addCaseClosure()
244 const uint16_t *pe0, *pe=GET_EXCEPTIONS(csp, props); in ucase_addCaseClosure()
339 ucase_addStringCaseClosure(const UCaseProps *csp, const UChar *s, int32_t length, const USetAdder *… in ucase_addStringCaseClosure() argument
342 if(csp->unfold==NULL || s==NULL) { in ucase_addStringCaseClosure()
356 const uint16_t *unfold=csp->unfold; in ucase_addStringCaseClosure()
382 ucase_addCaseClosure(csp, c, sa); in ucase_addStringCaseClosure()
431 ucase_getType(const UCaseProps *csp, UChar32 c) { in ucase_getType() argument
432 uint16_t props=UTRIE2_GET16(&csp->trie, c); in ucase_getType()
438 ucase_getTypeOrIgnorable(const UCaseProps *csp, UChar32 c) { in ucase_getTypeOrIgnorable() argument
439 uint16_t props=UTRIE2_GET16(&csp->trie, c); in ucase_getTypeOrIgnorable()
445 getDotType(const UCaseProps *csp, UChar32 c) { in getDotType() argument
446 uint16_t props=UTRIE2_GET16(&csp->trie, c); in getDotType()
450 const uint16_t *pe=GET_EXCEPTIONS(csp, props); in getDotType()
456 ucase_isSoftDotted(const UCaseProps *csp, UChar32 c) { in ucase_isSoftDotted() argument
457 return (UBool)(getDotType(csp, c)==UCASE_SOFT_DOTTED); in ucase_isSoftDotted()
461 ucase_isCaseSensitive(const UCaseProps *csp, UChar32 c) { in ucase_isCaseSensitive() argument
462 uint16_t props=UTRIE2_GET16(&csp->trie, c); in ucase_isCaseSensitive()
651 isFollowedByCasedLetter(const UCaseProps *csp, UCaseContextIterator *iter, void *context, int8_t di… in isFollowedByCasedLetter() argument
659 int32_t type=ucase_getTypeOrIgnorable(csp, c); in isFollowedByCasedLetter()
674 isPrecededBySoftDotted(const UCaseProps *csp, UCaseContextIterator *iter, void *context) { in isPrecededBySoftDotted() argument
684 dotType=getDotType(csp, c); in isPrecededBySoftDotted()
731 isPrecededBy_I(const UCaseProps *csp, UCaseContextIterator *iter, void *context) { in isPrecededBy_I() argument
744 dotType=getDotType(csp, c); in isPrecededBy_I()
755 isFollowedByMoreAbove(const UCaseProps *csp, UCaseContextIterator *iter, void *context) { in isFollowedByMoreAbove() argument
765 dotType=getDotType(csp, c); in isFollowedByMoreAbove()
778 isFollowedByDotAbove(const UCaseProps *csp, UCaseContextIterator *iter, void *context) { in isFollowedByDotAbove() argument
791 dotType=getDotType(csp, c); in isFollowedByDotAbove()
801 ucase_toFullLower(const UCaseProps *csp, UChar32 c, in ucase_toFullLower() argument
807 uint16_t props=UTRIE2_GET16(&csp->trie, c); in ucase_toFullLower()
813 const uint16_t *pe=GET_EXCEPTIONS(csp, props), *pe2; in ucase_toFullLower()
832 isFollowedByMoreAbove(csp, iter, context)) || in ucase_toFullLower()
884 } else if(loc==UCASE_LOC_TURKISH && c==0x307 && isPrecededBy_I(csp, iter, context)) { in ucase_toFullLower()
893 … } else if(loc==UCASE_LOC_TURKISH && c==0x49 && !isFollowedByDotAbove(csp, iter, context)) { in ucase_toFullLower()
910 !isFollowedByCasedLetter(csp, iter, context, 1) && in ucase_toFullLower()
911 isFollowedByCasedLetter(csp, iter, context, -1) /* -1=preceded */ in ucase_toFullLower()
945 toUpperOrTitle(const UCaseProps *csp, UChar32 c, in toUpperOrTitle() argument
951 uint16_t props=UTRIE2_GET16(&csp->trie, c); in toUpperOrTitle()
957 const uint16_t *pe=GET_EXCEPTIONS(csp, props), *pe2; in toUpperOrTitle()
980 … } else if(loc==UCASE_LOC_LITHUANIAN && c==0x307 && isPrecededBySoftDotted(csp, iter, context)) { in toUpperOrTitle()
1038 ucase_toFullUpper(const UCaseProps *csp, UChar32 c, in ucase_toFullUpper() argument
1042 return toUpperOrTitle(csp, c, iter, context, pString, locale, locCache, TRUE); in ucase_toFullUpper()
1046 ucase_toFullTitle(const UCaseProps *csp, UChar32 c, in ucase_toFullTitle() argument
1050 return toUpperOrTitle(csp, c, iter, context, pString, locale, locCache, FALSE); in ucase_toFullTitle()
1096 ucase_fold(const UCaseProps *csp, UChar32 c, uint32_t options) { in ucase_fold() argument
1097 uint16_t props=UTRIE2_GET16(&csp->trie, c); in ucase_fold()
1103 const uint16_t *pe=GET_EXCEPTIONS(csp, props); in ucase_fold()
1156 ucase_toFullFolding(const UCaseProps *csp, UChar32 c, in ucase_toFullFolding() argument
1161 uint16_t props=UTRIE2_GET16(&csp->trie, c); in ucase_toFullFolding()
1167 const uint16_t *pe=GET_EXCEPTIONS(csp, props), *pe2; in ucase_toFullFolding()
1272 const UCaseProps *csp=GET_CASE_PROPS(); in ucase_hasBinaryProperty() local
1273 if(csp==NULL) { in ucase_hasBinaryProperty()
1278 return (UBool)(UCASE_LOWER==ucase_getType(csp, c)); in ucase_hasBinaryProperty()
1280 return (UBool)(UCASE_UPPER==ucase_getType(csp, c)); in ucase_hasBinaryProperty()
1282 return ucase_isSoftDotted(csp, c); in ucase_hasBinaryProperty()
1284 return ucase_isCaseSensitive(csp, c); in ucase_hasBinaryProperty()
1286 return (UBool)(UCASE_NONE!=ucase_getType(csp, c)); in ucase_hasBinaryProperty()
1288 return (UBool)(ucase_getTypeOrIgnorable(csp, c)>>2); in ucase_hasBinaryProperty()
1303 return (UBool)(ucase_toFullLower(csp, c, NULL, NULL, &resultString, "", &locCache)>=0); in ucase_hasBinaryProperty()
1306 return (UBool)(ucase_toFullUpper(csp, c, NULL, NULL, &resultString, "", &locCache)>=0); in ucase_hasBinaryProperty()
1309 return (UBool)(ucase_toFullTitle(csp, c, NULL, NULL, &resultString, "", &locCache)>=0); in ucase_hasBinaryProperty()
1314 ucase_toFullLower(csp, c, NULL, NULL, &resultString, "", &locCache)>=0 || in ucase_hasBinaryProperty()
1315 ucase_toFullUpper(csp, c, NULL, NULL, &resultString, "", &locCache)>=0 || in ucase_hasBinaryProperty()
1316 ucase_toFullTitle(csp, c, NULL, NULL, &resultString, "", &locCache)>=0); in ucase_hasBinaryProperty()