Lines Matching refs:code

62 static int prop_lookup(unsigned long code, unsigned long n)  in prop_lookup()  argument
90 if (code > _ucprop_ranges[m + 1]) in prop_lookup()
92 else if (code < _ucprop_ranges[m]) in prop_lookup()
94 else if (code >= _ucprop_ranges[m] && code <= _ucprop_ranges[m + 1]) in prop_lookup()
101 MBSTRING_API int php_unicode_is_prop(unsigned long code, unsigned long mask1, in php_unicode_is_prop() argument
110 if ((mask1 & masks32[i]) && prop_lookup(code, i)) in php_unicode_is_prop()
115 if ((mask2 & masks32[i & 31]) && prop_lookup(code, i)) in php_unicode_is_prop()
122 static unsigned long case_lookup(unsigned long code, long l, long r, int field) in case_lookup() argument
137 if (code > *tmp) in case_lookup()
139 else if (code < *tmp) in case_lookup()
141 else if (code == *tmp) in case_lookup()
145 return code; in case_lookup()
148 MBSTRING_API unsigned long php_turkish_toupper(unsigned long code, long l, long r, int field) in php_turkish_toupper() argument
150 if (code == 0x0069L) { in php_turkish_toupper()
153 return case_lookup(code, l, r, field); in php_turkish_toupper()
156 MBSTRING_API unsigned long php_turkish_tolower(unsigned long code, long l, long r, int field) in php_turkish_tolower() argument
158 if (code == 0x0049L) { in php_turkish_tolower()
161 return case_lookup(code, l, r, field); in php_turkish_tolower()
164 MBSTRING_API unsigned long php_unicode_toupper(unsigned long code, enum mbfl_no_encoding enc) in php_unicode_toupper() argument
169 if (php_unicode_is_upper(code)) in php_unicode_toupper()
170 return code; in php_unicode_toupper()
172 if (php_unicode_is_lower(code)) { in php_unicode_toupper()
181 return php_turkish_toupper(code, l, r, field); in php_unicode_toupper()
192 return case_lookup(code, l, r, field); in php_unicode_toupper()
195 MBSTRING_API unsigned long php_unicode_tolower(unsigned long code, enum mbfl_no_encoding enc) in php_unicode_tolower() argument
200 if (php_unicode_is_lower(code)) in php_unicode_tolower()
201 return code; in php_unicode_tolower()
203 if (php_unicode_is_upper(code)) { in php_unicode_tolower()
212 return php_turkish_tolower(code, l, r, field); in php_unicode_tolower()
223 return case_lookup(code, l, r, field); in php_unicode_tolower()
226 MBSTRING_API unsigned long php_unicode_totitle(unsigned long code, enum mbfl_no_encoding enc) in php_unicode_totitle() argument
231 if (php_unicode_is_title(code)) in php_unicode_totitle()
232 return code; in php_unicode_totitle()
239 if (php_unicode_is_upper(code)) { in php_unicode_totitle()
252 return case_lookup(code, l, r, field); in php_unicode_totitle()