Home | History | Annotate | Download | only in common

Lines Matching refs:csp

67 ucase_addPropertyStarts(const UCaseProps *csp, const USetAdder *sa, UErrorCode *pErrorCode) {
73 utrie2_enum(&csp->trie, NULL, _enumPropertyStartsRange, sa);
87 #define GET_EXCEPTIONS(csp, props) ((csp)->exceptions+((props)>>UCASE_EXC_SHIFT))
136 ucase_tolower(const UCaseProps *csp, UChar32 c) {
137 uint16_t props=UTRIE2_GET16(&csp->trie, c);
143 const uint16_t *pe=GET_EXCEPTIONS(csp, props);
153 ucase_toupper(const UCaseProps *csp, UChar32 c) {
154 uint16_t props=UTRIE2_GET16(&csp->trie, c);
160 const uint16_t *pe=GET_EXCEPTIONS(csp, props);
170 ucase_totitle(const UCaseProps *csp, UChar32 c) {
171 uint16_t props=UTRIE2_GET16(&csp->trie, c);
177 const uint16_t *pe=GET_EXCEPTIONS(csp, props);
201 ucase_addCaseClosure(const UCaseProps *csp, UChar32 c, const USetAdder *sa) {
232 props=UTRIE2_GET16(&csp->trie, c);
246 const uint16_t *pe0, *pe=GET_EXCEPTIONS(csp, props);
341 ucase_addStringCaseClosure(const UCaseProps *csp, const UChar *s, int32_t length, const USetAdder *sa) {
344 if(csp->unfold==NULL || s==NULL) {
358 const uint16_t *unfold=csp->unfold;
384 ucase_addCaseClosure(csp, c, sa);
433 ucase_getType(const UCaseProps *csp, UChar32 c) {
434 uint16_t props=UTRIE2_GET16(&csp->trie, c);
440 ucase_getTypeOrIgnorable(const UCaseProps *csp, UChar32 c) {
441 uint16_t props=UTRIE2_GET16(&csp->trie, c);
447 getDotType(const UCaseProps *csp, UChar32 c) {
448 uint16_t props=UTRIE2_GET16(&csp->trie, c);
452 const uint16_t *pe=GET_EXCEPTIONS(csp, props);
458 ucase_isSoftDotted(const UCaseProps *csp, UChar32 c) {
459 return (UBool)(getDotType(csp, c)==UCASE_SOFT_DOTTED);
463 ucase_isCaseSensitive(const UCaseProps *csp, UChar32 c) {
464 uint16_t props=UTRIE2_GET16(&csp->trie, c);
665 isFollowedByCasedLetter(const UCaseProps *csp, UCaseContextIterator *iter, void *context, int8_t dir) {
673 int32_t type=ucase_getTypeOrIgnorable(csp, c);
688 isPrecededBySoftDotted(const UCaseProps *csp, UCaseContextIterator *iter, void *context) {
698 dotType=getDotType(csp, c);
745 isPrecededBy_I(const UCaseProps *csp, UCaseContextIterator *iter, void *context) {
758 dotType=getDotType(csp, c);
769 isFollowedByMoreAbove(const UCaseProps *csp, UCaseContextIterator *iter, void *context) {
779 dotType=getDotType(csp, c);
792 isFollowedByDotAbove(const UCaseProps *csp, UCaseContextIterator *iter, void *context) {
805 dotType=getDotType(csp, c);
815 ucase_toFullLower(const UCaseProps *csp, UChar32 c,
822 uint16_t props=UTRIE2_GET16(&csp->trie, c);
828 const uint16_t *pe=GET_EXCEPTIONS(csp, props), *pe2;
847 isFollowedByMoreAbove(csp, iter, context)) ||
899 } else if(loc==UCASE_LOC_TURKISH && c==0x307 && isPrecededBy_I(csp, iter, context)) {
908 } else if(loc==UCASE_LOC_TURKISH && c==0x49 && !isFollowedByDotAbove(csp, iter, context)) {
925 !isFollowedByCasedLetter(csp, iter, context, 1) &&
926 isFollowedByCasedLetter(csp, iter, context, -1) /* -1=preceded */
960 toUpperOrTitle(const UCaseProps *csp, UChar32 c,
968 uint16_t props=UTRIE2_GET16(&csp->trie, c);
974 const uint16_t *pe=GET_EXCEPTIONS(csp, props), *pe2;
997 } else if(loc==UCASE_LOC_LITHUANIAN && c==0x307 && isPrecededBySoftDotted(csp, iter, context)) {
1055 ucase_toFullUpper(const UCaseProps *csp, UChar32 c,
1059 return toUpperOrTitle(csp, c, iter, context, pString, locale, locCache, TRUE);
1063 ucase_toFullTitle(const UCaseProps *csp, UChar32 c,
1067 return toUpperOrTitle(csp, c, iter, context, pString, locale, locCache, FALSE);
1113 ucase_fold(const UCaseProps *csp, UChar32 c, uint32_t options) {
1114 uint16_t props=UTRIE2_GET16(&csp->trie, c);
1120 const uint16_t *pe=GET_EXCEPTIONS(csp, props);
1173 ucase_toFullFolding(const UCaseProps *csp, UChar32 c,
1179 uint16_t props=UTRIE2_GET16(&csp->trie, c);
1185 const uint16_t *pe=GET_EXCEPTIONS(csp, props), *pe2;
1290 const UCaseProps *csp=GET_CASE_PROPS();
1291 if(csp==NULL) {
1296 return (UBool)(UCASE_LOWER==ucase_getType(csp, c));
1298 return (UBool)(UCASE_UPPER==ucase_getType(csp, c));
1300 return ucase_isSoftDotted(csp, c);
1302 return ucase_isCaseSensitive(csp, c);
1304 return (UBool)(UCASE_NONE!=ucase_getType(csp, c));
1306 return (UBool)(ucase_getTypeOrIgnorable(csp, c)>>2);
1321 return (UBool)(ucase_toFullLower(csp, c, NULL, NULL, &resultString, "", &locCache)>=0);
1324 return (UBool)(ucase_toFullUpper(csp, c, NULL, NULL, &resultString, "", &locCache)>=0);
1327 return (UBool)(ucase_toFullTitle(csp, c, NULL, NULL, &resultString, "", &locCache)>=0);
1332 ucase_toFullLower(csp, c, NULL, NULL, &resultString, "", &locCache)>=0 ||
1333 ucase_toFullUpper(csp, c, NULL, NULL, &resultString, "", &locCache)>=0 ||
1334 ucase_toFullTitle(csp, c, NULL, NULL, &resultString, "", &locCache)>=0);