4 /* FUNCTIONS *****************************************************************/
6 int _wcsicmp (const wchar_t* cs
, const wchar_t * ct
)
8 while (towlower(*cs
) == towlower(*ct
))
15 return towlower(*cs
) - towlower(*ct
);
22 wchar_t *_wcslwr (wchar_t *x
)
37 int _wcsnicmp (const wchar_t * cs
, const wchar_t * ct
, size_t count
)
42 if (towupper(*cs
) != towupper(*ct
++))
43 return towupper(*cs
) - towupper(*--ct
);
46 } while (--count
!= 0);
54 wchar_t *_wcsupr(wchar_t *x
)
68 size_t wcscspn(const wchar_t *str
,const wchar_t *reject
)
71 const wchar_t *s
= str
;
83 return s
-str
; /* nr of wchars */
89 wchar_t *wcspbrk(const wchar_t *s1
, const wchar_t *s2
)
94 while ((c
= *s1
++) != 0)
96 for (scanp
= s2
; (sc
= *scanp
++) != 0;)
99 return (wchar_t *)((size_t)(--s1
));
108 size_t wcsspn(const wchar_t *str
,const wchar_t *accept
)
111 const wchar_t *s
= str
;
123 return s
-str
; /* nr of wchars */
130 wchar_t *wcsstr(const wchar_t *s
,const wchar_t *b
)
134 const wchar_t *x
= s
;
139 while (*y
&& *c
&& *y
==*c
) {
144 return (wchar_t *)((size_t)x
);