Lines Matching +full:lower +full:- +full:case
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * cifs_unicode: Unicode kernel case support
6 * Convert a unicode character to upper or lower case using
15 * The upper/lower functions are based on a table created by mkupr.
16 * This is a compressed table of upper and lower case conversion.
25 #define UNIUPR_NOLOWER /* Example to not expand lower case tables */
123 ucs1--; /* Return to the null */ in UniStrcat()
161 return (int) *ucs1 - (int) *ucs2; in UniStrcmp()
215 ucs1--; /* point to null terminator of s1 */ in UniStrncat()
216 while (n-- && (*ucs1 = *ucs2)) { /* copy s2 after s1 */ in UniStrncat()
232 while ((*ucs1 == *ucs2) && *ucs1 && --n) { in UniStrncmp()
236 return (int) *ucs1 - (int) *ucs2; in UniStrncmp()
240 * UniStrncmp_le: Compare length limited string - native to little-endian
247 while ((*ucs1 == __le16_to_cpu(*ucs2)) && *ucs1 && --n) { in UniStrncmp_le()
251 return (int) *ucs1 - (int) __le16_to_cpu(*ucs2); in UniStrncmp_le()
262 while (n-- && *ucs2) /* Copy the strings */ in UniStrncpy()
266 while (n--) /* Pad with nulls */ in UniStrncpy()
272 * UniStrncpy_le: Copy length limited string with pad to little-endian
279 while (n-- && *ucs2) /* Copy the strings */ in UniStrncpy_le()
283 while (n--) /* Pad with nulls */ in UniStrncpy_le()
321 * UniToupper: Convert a unicode character to upper case
333 while (rp->start) { in UniToupper()
334 if (uc < rp->start) /* Before start of range */ in UniToupper()
336 if (uc <= rp->end) /* In range */ in UniToupper()
337 return uc + rp->table[uc - rp->start]; in UniToupper()
345 * UniStrupr: Upper case a unicode string
363 * UniTolower: Convert a unicode character to lower case
375 while (rp->start) { in UniTolower()
376 if (uc < rp->start) /* Before start of range */ in UniTolower()
378 if (uc <= rp->end) /* In range */ in UniTolower()
379 return uc + rp->table[uc - rp->start]; in UniTolower()
387 * UniStrlwr: Lower case a unicode string