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
136 if (code > _uccase_map[m]) in case_lookup()
138 else if (code < _uccase_map[m]) in case_lookup()
140 else if (code == _uccase_map[m]) in case_lookup()
144 return code; in case_lookup()
147 MBSTRING_API unsigned long php_turkish_toupper(unsigned long code, long l, long r, int field) in php_turkish_toupper() argument
149 if (code == 0x0069L) { in php_turkish_toupper()
152 return case_lookup(code, l, r, field); in php_turkish_toupper()
155 MBSTRING_API unsigned long php_turkish_tolower(unsigned long code, long l, long r, int field) in php_turkish_tolower() argument
157 if (code == 0x0049L) { in php_turkish_tolower()
160 return case_lookup(code, l, r, field); in php_turkish_tolower()
163 MBSTRING_API unsigned long php_unicode_toupper(unsigned long code, enum mbfl_no_encoding enc) in php_unicode_toupper() argument
168 if (php_unicode_is_upper(code)) in php_unicode_toupper()
169 return code; in php_unicode_toupper()
171 if (php_unicode_is_lower(code)) { in php_unicode_toupper()
180 return php_turkish_toupper(code, l, r, field); in php_unicode_toupper()
191 return case_lookup(code, l, r, field); in php_unicode_toupper()
194 MBSTRING_API unsigned long php_unicode_tolower(unsigned long code, enum mbfl_no_encoding enc) in php_unicode_tolower() argument
199 if (php_unicode_is_lower(code)) in php_unicode_tolower()
200 return code; in php_unicode_tolower()
202 if (php_unicode_is_upper(code)) { in php_unicode_tolower()
211 return php_turkish_tolower(code, l, r, field); in php_unicode_tolower()
222 return case_lookup(code, l, r, field); in php_unicode_tolower()
225 MBSTRING_API unsigned long php_unicode_totitle(unsigned long code, enum mbfl_no_encoding enc) in php_unicode_totitle() argument
230 if (php_unicode_is_title(code)) in php_unicode_totitle()
231 return code; in php_unicode_totitle()
238 if (php_unicode_is_upper(code)) { in php_unicode_totitle()
251 return case_lookup(code, l, r, field); in php_unicode_totitle()