Lines Matching refs:ucs2
94 UniStrcat(wchar_t *ucs1, const wchar_t *ucs2)
100 while ((*ucs1++ = *ucs2++)) ; /* copy string 2 over */
131 UniStrcmp(const wchar_t *ucs1, const wchar_t *ucs2)
133 while ((*ucs1 == *ucs2) && *ucs1) {
135 ucs2++;
137 return (int) *ucs1 - (int) *ucs2;
144 UniStrcpy(wchar_t *ucs1, const wchar_t *ucs2)
148 while ((*ucs1++ = *ucs2++)) ;
186 UniStrncat(wchar_t *ucs1, const wchar_t *ucs2, size_t n)
192 while (n-- && (*ucs1 = *ucs2)) { /* copy s2 after s1 */
194 ucs2++;
204 UniStrncmp(const wchar_t *ucs1, const wchar_t *ucs2, size_t n)
208 while ((*ucs1 == *ucs2) && *ucs1 && --n) {
210 ucs2++;
212 return (int) *ucs1 - (int) *ucs2;
219 UniStrncmp_le(const wchar_t *ucs1, const wchar_t *ucs2, size_t n)
223 while ((*ucs1 == __le16_to_cpu(*ucs2)) && *ucs1 && --n) {
225 ucs2++;
227 return (int) *ucs1 - (int) __le16_to_cpu(*ucs2);
234 UniStrncpy(wchar_t *ucs1, const wchar_t *ucs2, size_t n)
238 while (n-- && *ucs2) /* Copy the strings */
239 *ucs1++ = *ucs2++;
251 UniStrncpy_le(wchar_t *ucs1, const wchar_t *ucs2, size_t n)
255 while (n-- && *ucs2) /* Copy the strings */
256 *ucs1++ = __le16_to_cpu(*ucs2++);
272 UniStrstr(const wchar_t *ucs1, const wchar_t *ucs2)
275 const wchar_t *anchor2 = ucs2;
278 if (*ucs1 == *ucs2) {
281 ucs2++;
283 if (!*ucs2) /* Match found */
286 ucs2 = anchor2;
290 if (!*ucs2) /* Both end together */