Lines Matching +full:start +full:- +full:up

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
52 wchar_t *anchor = ucs1; /* save a pointer to start of ucs1 */ in UniStrcat()
56 ucs1--; /* Return to the null */ in UniStrcat()
93 return (int)*ucs1 - (int)*ucs2; in UniStrcmp()
101 wchar_t *anchor = ucs1; /* save the start of result string */ in UniStrcpy()
145 ucs1--; /* point to null terminator of s1 */ in UniStrncat()
146 while (n-- && (*ucs1 = *ucs2)) { /* copy s2 after s1 */ in UniStrncat()
161 while ((*ucs1 == *ucs2) && *ucs1 && --n) { in UniStrncmp()
165 return (int)*ucs1 - (int)*ucs2; in UniStrncmp()
169 * UniStrncmp_le: Compare length limited string - native to little-endian
176 while ((*ucs1 == __le16_to_cpu(*ucs2)) && *ucs1 && --n) { in UniStrncmp_le()
180 return (int)*ucs1 - (int)__le16_to_cpu(*ucs2); in UniStrncmp_le()
190 while (n-- && *ucs2) /* Copy the strings */ in UniStrncpy()
194 while (n--) /* Pad with nulls */ in UniStrncpy()
200 * UniStrncpy_le: Copy length limited string with pad to little-endian
206 while (n-- && *ucs2) /* Copy the strings */ in UniStrncpy_le()
210 while (n--) /* Pad with nulls */ in UniStrncpy_le()
259 while (rp->start) { in UniToupper()
260 if (uc < rp->start) /* Before start of range */ in UniToupper()
262 if (uc <= rp->end) /* In range */ in UniToupper()
263 return uc + rp->table[uc - rp->start]; in UniToupper()
274 register __le16 *up; in UniStrupr() local
276 up = upin; in UniStrupr()
277 while (*up) { /* For all characters */ in UniStrupr()
278 *up = cpu_to_le16(UniToupper(le16_to_cpu(*up))); in UniStrupr()
279 up++; in UniStrupr()