Lines Matching defs:ucs1
118 UniStrcat(__le16 *ucs1, const __le16 *ucs2)
120 __le16 *anchor = ucs1; /* save a pointer to start of ucs1 */
122 while (*ucs1++) ; /* To end of first string */
123 ucs1--; /* Return to the null */
124 while ((*ucs1++ = *ucs2++)) ; /* copy string 2 over */
155 UniStrcmp(const wchar_t *ucs1, const wchar_t *ucs2)
157 while ((*ucs1 == *ucs2) && *ucs1) {
158 ucs1++;
161 return (int) *ucs1 - (int) *ucs2;
168 UniStrcpy(wchar_t *ucs1, const wchar_t *ucs2)
170 wchar_t *anchor = ucs1; /* save the start of result string */
172 while ((*ucs1++ = *ucs2++)) ;
180 UniStrlen(const wchar_t *ucs1)
184 while (*ucs1++)
194 UniStrnlen(const wchar_t *ucs1, int maxlen)
198 while (*ucs1++) {
210 UniStrncat(wchar_t *ucs1, const wchar_t *ucs2, size_t n)
212 wchar_t *anchor = ucs1; /* save pointer to string 1 */
214 while (*ucs1++) ;
215 ucs1--; /* point to null terminator of s1 */
216 while (n-- && (*ucs1 = *ucs2)) { /* copy s2 after s1 */
217 ucs1++;
220 *ucs1 = 0; /* Null terminate the result */
228 UniStrncmp(const wchar_t *ucs1, const wchar_t *ucs2, size_t n)
232 while ((*ucs1 == *ucs2) && *ucs1 && --n) {
233 ucs1++;
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) {
248 ucs1++;
251 return (int) *ucs1 - (int) __le16_to_cpu(*ucs2);
258 UniStrncpy(wchar_t *ucs1, const wchar_t *ucs2, size_t n)
260 wchar_t *anchor = ucs1;
263 *ucs1++ = *ucs2++;
267 *ucs1++ = 0;
275 UniStrncpy_le(wchar_t *ucs1, const wchar_t *ucs2, size_t n)
277 wchar_t *anchor = ucs1;
280 *ucs1++ = __le16_to_cpu(*ucs2++);
284 *ucs1++ = 0;
296 UniStrstr(const wchar_t *ucs1, const wchar_t *ucs2)
298 const wchar_t *anchor1 = ucs1;
301 while (*ucs1) {
302 if (*ucs1 == *ucs2) {
304 ucs1++;
309 ucs1 = ++anchor1; /* No match */