Lines Matching defs:ucs1
94 UniStrcat(wchar_t *ucs1, const wchar_t *ucs2)
96 wchar_t *anchor = ucs1; /* save a pointer to start of ucs1 */
98 while (*ucs1++) ; /* To end of first string */
99 ucs1--; /* Return to the null */
100 while ((*ucs1++ = *ucs2++)) ; /* copy string 2 over */
131 UniStrcmp(const wchar_t *ucs1, const wchar_t *ucs2)
133 while ((*ucs1 == *ucs2) && *ucs1) {
134 ucs1++;
137 return (int) *ucs1 - (int) *ucs2;
144 UniStrcpy(wchar_t *ucs1, const wchar_t *ucs2)
146 wchar_t *anchor = ucs1; /* save the start of result string */
148 while ((*ucs1++ = *ucs2++)) ;
156 UniStrlen(const wchar_t *ucs1)
160 while (*ucs1++)
170 UniStrnlen(const wchar_t *ucs1, int maxlen)
174 while (*ucs1++) {
186 UniStrncat(wchar_t *ucs1, const wchar_t *ucs2, size_t n)
188 wchar_t *anchor = ucs1; /* save pointer to string 1 */
190 while (*ucs1++) ;
191 ucs1--; /* point to null terminator of s1 */
192 while (n-- && (*ucs1 = *ucs2)) { /* copy s2 after s1 */
193 ucs1++;
196 *ucs1 = 0; /* Null terminate the result */
204 UniStrncmp(const wchar_t *ucs1, const wchar_t *ucs2, size_t n)
208 while ((*ucs1 == *ucs2) && *ucs1 && --n) {
209 ucs1++;
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) {
224 ucs1++;
227 return (int) *ucs1 - (int) __le16_to_cpu(*ucs2);
234 UniStrncpy(wchar_t *ucs1, const wchar_t *ucs2, size_t n)
236 wchar_t *anchor = ucs1;
239 *ucs1++ = *ucs2++;
243 *ucs1++ = 0;
251 UniStrncpy_le(wchar_t *ucs1, const wchar_t *ucs2, size_t n)
253 wchar_t *anchor = ucs1;
256 *ucs1++ = __le16_to_cpu(*ucs2++);
260 *ucs1++ = 0;
272 UniStrstr(const wchar_t *ucs1, const wchar_t *ucs2)
274 const wchar_t *anchor1 = ucs1;
277 while (*ucs1) {
278 if (*ucs1 == *ucs2) {
280 ucs1++;
285 ucs1 = ++anchor1; /* No match */