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