Lines Matching +full:lower +full:- +full:case
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
4 * cifs_unicode: Unicode kernel case support
7 * Convert a unicode character to upper or lower case using
17 * The upper/lower functions are based on a table created by mkupr.
18 * This is a compressed table of upper and lower case conversion.
29 #define UNIUPR_NOLOWER /* Example to not expand lower case tables */
88 ucs1--; /* Return to the null */ in UniStrcat()
125 return (int)*ucs1 - (int)*ucs2; in UniStrcmp()
177 ucs1--; /* point to null terminator of s1 */ in UniStrncat()
178 while (n-- && (*ucs1 = *ucs2)) { /* copy s2 after s1 */ in UniStrncat()
193 while ((*ucs1 == *ucs2) && *ucs1 && --n) { in UniStrncmp()
197 return (int)*ucs1 - (int)*ucs2; in UniStrncmp()
201 * UniStrncmp_le: Compare length limited string - native to little-endian
208 while ((*ucs1 == __le16_to_cpu(*ucs2)) && *ucs1 && --n) { in UniStrncmp_le()
212 return (int)*ucs1 - (int)__le16_to_cpu(*ucs2); in UniStrncmp_le()
222 while (n-- && *ucs2) /* Copy the strings */ in UniStrncpy()
226 while (n--) /* Pad with nulls */ in UniStrncpy()
232 * UniStrncpy_le: Copy length limited string with pad to little-endian
238 while (n-- && *ucs2) /* Copy the strings */ in UniStrncpy_le()
242 while (n--) /* Pad with nulls */ in UniStrncpy_le()
279 * UniToupper: Convert a unicode character to upper case
291 while (rp->start) { in UniToupper()
292 if (uc < rp->start) /* Before start of range */ in UniToupper()
294 if (uc <= rp->end) /* In range */ in UniToupper()
295 return uc + rp->table[uc - rp->start]; in UniToupper()
302 * UniStrupr: Upper case a unicode string
319 * UniTolower: Convert a unicode character to lower case
331 while (rp->start) { in UniTolower()
332 if (uc < rp->start) /* Before start of range */ in UniTolower()
334 if (uc <= rp->end) /* In range */ in UniTolower()
335 return uc + rp->table[uc - rp->start]; in UniTolower()
342 * UniStrlwr: Lower case a unicode string