Lines Matching defs:ucs1
42 static inline wchar_t *UniStrcpy(wchar_t * ucs1, const wchar_t * ucs2)
44 wchar_t *anchor = ucs1; /* save the start of result string */
46 while ((*ucs1++ = *ucs2++));
55 static inline __le16 *UniStrncpy_le(__le16 * ucs1, const __le16 * ucs2,
58 __le16 *anchor = ucs1;
61 *ucs1++ = *ucs2++;
65 *ucs1++ = 0;
72 static inline int UniStrncmp_le(const wchar_t * ucs1, const __le16 * ucs2,
77 while ((*ucs1 == __le16_to_cpu(*ucs2)) && *ucs1 && --n) {
78 ucs1++;
81 return (int) *ucs1 - (int) __le16_to_cpu(*ucs2);
87 static inline __le16 *UniStrncpy_to_le(__le16 * ucs1, const wchar_t * ucs2,
90 __le16 *anchor = ucs1;
93 *ucs1++ = cpu_to_le16(*ucs2++);
97 *ucs1++ = 0;
104 static inline wchar_t *UniStrncpy_from_le(wchar_t * ucs1, const __le16 * ucs2,
107 wchar_t *anchor = ucs1;
110 *ucs1++ = __le16_to_cpu(*ucs2++);
114 *ucs1++ = 0;