Lines Matching defs:ucs2
118 UniStrcat(__le16 *ucs1, const __le16 *ucs2)
124 while ((*ucs1++ = *ucs2++)) ; /* copy string 2 over */
155 UniStrcmp(const wchar_t *ucs1, const wchar_t *ucs2)
157 while ((*ucs1 == *ucs2) && *ucs1) {
159 ucs2++;
161 return (int) *ucs1 - (int) *ucs2;
168 UniStrcpy(wchar_t *ucs1, const wchar_t *ucs2)
172 while ((*ucs1++ = *ucs2++)) ;
210 UniStrncat(wchar_t *ucs1, const wchar_t *ucs2, size_t n)
216 while (n-- && (*ucs1 = *ucs2)) { /* copy s2 after s1 */
218 ucs2++;
228 UniStrncmp(const wchar_t *ucs1, const wchar_t *ucs2, size_t n)
232 while ((*ucs1 == *ucs2) && *ucs1 && --n) {
234 ucs2++;
236 return (int) *ucs1 - (int) *ucs2;
243 UniStrncmp_le(const wchar_t *ucs1, const wchar_t *ucs2, size_t n)
247 while ((*ucs1 == __le16_to_cpu(*ucs2)) && *ucs1 && --n) {
249 ucs2++;
251 return (int) *ucs1 - (int) __le16_to_cpu(*ucs2);
258 UniStrncpy(wchar_t *ucs1, const wchar_t *ucs2, size_t n)
262 while (n-- && *ucs2) /* Copy the strings */
263 *ucs1++ = *ucs2++;
275 UniStrncpy_le(wchar_t *ucs1, const wchar_t *ucs2, size_t n)
279 while (n-- && *ucs2) /* Copy the strings */
280 *ucs1++ = __le16_to_cpu(*ucs2++);
296 UniStrstr(const wchar_t *ucs1, const wchar_t *ucs2)
299 const wchar_t *anchor2 = ucs2;
302 if (*ucs1 == *ucs2) {
305 ucs2++;
307 if (!*ucs2) /* Match found */
310 ucs2 = anchor2;
314 if (!*ucs2) /* Both end together */