ReactOS  0.4.13-dev-257-gfabbd7c
unicode.h File Reference
#include <stdarg.h>
#include <stdlib.h>
#include <wchar.h>
#include <windef.h>
#include <winbase.h>
#include <winnls.h>
Include dependency graph for unicode.h:

Go to the source code of this file.

Macros

#define WINE_UNICODE_API
 
#define WINE_UNICODE_INLINE   static inline
 
#define memicmpW(s1, s2, n)   _wcsnicmp((s1),(s2),(n))
 
#define strlenW(s)   wcslen((s))
 
#define strcpyW(d, s)   wcscpy((d),(s))
 
#define strcatW(d, s)   wcscat((d),(s))
 
#define strcspnW(d, s)   wcscspn((d),(s))
 
#define strstrW(d, s)   wcsstr((d),(s))
 
#define strtolW(s, e, b)   wcstol((s),(e),(b))
 
#define strchrW(s, c)   wcschr((s),(c))
 
#define strrchrW(s, c)   wcsrchr((s),(c))
 
#define strncmpW(s1, s2, n)   wcsncmp((s1),(s2),(n))
 
#define strncpyW(s1, s2, n)   wcsncpy((s1),(s2),(n))
 
#define strcmpW(s1, s2)   wcscmp((s1),(s2))
 
#define strcmpiW(s1, s2)   _wcsicmp((s1),(s2))
 
#define strncmpiW(s1, s2, n)   _wcsnicmp((s1),(s2),(n))
 
#define strtoulW(s1, s2, b)   wcstoul((s1),(s2),(b))
 
#define strspnW(str, accept)   wcsspn((str),(accept))
 
#define strpbrkW(str, accept)   wcspbrk((str),(accept))
 
#define tolowerW(n)   towlower((n))
 
#define toupperW(n)   towupper((n))
 
#define islowerW(n)   iswlower((n))
 
#define isupperW(n)   iswupper((n))
 
#define isalphaW(n)   iswalpha((n))
 
#define isalnumW(n)   iswalnum((n))
 
#define isdigitW(n)   iswdigit((n))
 
#define isxdigitW(n)   iswxdigit((n))
 
#define isspaceW(n)   iswspace((n))
 
#define iscntrlW(n)   iswcntrl((n))
 
#define atoiW(s)   _wtoi((s))
 
#define atolW(s)   _wtol((s))
 
#define strlwrW(s)   _wcslwr((s))
 
#define struprW(s)   _wcsupr((s))
 
#define sprintfW   swprintf
 
#define vsprintfW   vswprintf
 
#define snprintfW   _snwprintf
 
#define vsnprintfW   _vsnwprintf
 
#define isprintW   iswprint
 

Functions

static __inline unsigned short get_char_typeW (WCHAR ch)
 
static __inline WCHARmemchrW (const WCHAR *ptr, WCHAR ch, size_t n)
 
static __inline WCHARmemrchrW (const WCHAR *ptr, WCHAR ch, size_t n)
 

Macro Definition Documentation

◆ atoiW

#define atoiW (   s)    _wtoi((s))

Definition at line 54 of file unicode.h.

◆ atolW

#define atolW (   s)    _wtol((s))

Definition at line 55 of file unicode.h.

◆ isalnumW

#define isalnumW (   n)    iswalnum((n))

Definition at line 49 of file unicode.h.

◆ isalphaW

#define isalphaW (   n)    iswalpha((n))

Definition at line 48 of file unicode.h.

◆ iscntrlW

#define iscntrlW (   n)    iswcntrl((n))

Definition at line 53 of file unicode.h.

◆ isdigitW

#define isdigitW (   n)    iswdigit((n))

Definition at line 50 of file unicode.h.

◆ islowerW

#define islowerW (   n)    iswlower((n))

Definition at line 46 of file unicode.h.

◆ isprintW

#define isprintW   iswprint

Definition at line 62 of file unicode.h.

◆ isspaceW

#define isspaceW (   n)    iswspace((n))

Definition at line 52 of file unicode.h.

◆ isupperW

#define isupperW (   n)    iswupper((n))

Definition at line 47 of file unicode.h.

◆ isxdigitW

#define isxdigitW (   n)    iswxdigit((n))

Definition at line 51 of file unicode.h.

◆ memicmpW

#define memicmpW (   s1,
  s2,
  n 
)    _wcsnicmp((s1),(s2),(n))

Definition at line 27 of file unicode.h.

◆ snprintfW

#define snprintfW   _snwprintf

Definition at line 60 of file unicode.h.

◆ sprintfW

#define sprintfW   swprintf

Definition at line 58 of file unicode.h.

◆ strcatW

#define strcatW (   d,
  s 
)    wcscat((d),(s))

Definition at line 30 of file unicode.h.

◆ strchrW

#define strchrW (   s,
  c 
)    wcschr((s),(c))

Definition at line 34 of file unicode.h.

◆ strcmpiW

#define strcmpiW (   s1,
  s2 
)    _wcsicmp((s1),(s2))

Definition at line 39 of file unicode.h.

◆ strcmpW

#define strcmpW (   s1,
  s2 
)    wcscmp((s1),(s2))

Definition at line 38 of file unicode.h.

◆ strcpyW

#define strcpyW (   d,
  s 
)    wcscpy((d),(s))

Definition at line 29 of file unicode.h.

◆ strcspnW

#define strcspnW (   d,
  s 
)    wcscspn((d),(s))

Definition at line 31 of file unicode.h.

◆ strlenW

#define strlenW (   s)    wcslen((s))

Definition at line 28 of file unicode.h.

◆ strlwrW

#define strlwrW (   s)    _wcslwr((s))

Definition at line 56 of file unicode.h.

◆ strncmpiW

#define strncmpiW (   s1,
  s2,
  n 
)    _wcsnicmp((s1),(s2),(n))

Definition at line 40 of file unicode.h.

◆ strncmpW

#define strncmpW (   s1,
  s2,
  n 
)    wcsncmp((s1),(s2),(n))

Definition at line 36 of file unicode.h.

◆ strncpyW

#define strncpyW (   s1,
  s2,
  n 
)    wcsncpy((s1),(s2),(n))

Definition at line 37 of file unicode.h.

◆ strpbrkW

#define strpbrkW (   str,
  accept 
)    wcspbrk((str),(accept))

Definition at line 43 of file unicode.h.

◆ strrchrW

#define strrchrW (   s,
  c 
)    wcsrchr((s),(c))

Definition at line 35 of file unicode.h.

◆ strspnW

#define strspnW (   str,
  accept 
)    wcsspn((str),(accept))

Definition at line 42 of file unicode.h.

◆ strstrW

#define strstrW (   d,
  s 
)    wcsstr((d),(s))

Definition at line 32 of file unicode.h.

◆ strtolW

#define strtolW (   s,
  e,
  b 
)    wcstol((s),(e),(b))

Definition at line 33 of file unicode.h.

◆ strtoulW

#define strtoulW (   s1,
  s2,
  b 
)    wcstoul((s1),(s2),(b))

Definition at line 41 of file unicode.h.

◆ struprW

#define struprW (   s)    _wcsupr((s))

Definition at line 57 of file unicode.h.

◆ tolowerW

#define tolowerW (   n)    towlower((n))

Definition at line 44 of file unicode.h.

◆ toupperW

#define toupperW (   n)    towupper((n))

Definition at line 45 of file unicode.h.

◆ vsnprintfW

#define vsnprintfW   _vsnwprintf

Definition at line 61 of file unicode.h.

◆ vsprintfW

#define vsprintfW   vswprintf

Definition at line 59 of file unicode.h.

◆ WINE_UNICODE_API

#define WINE_UNICODE_API

Definition at line 20 of file unicode.h.

◆ WINE_UNICODE_INLINE

#define WINE_UNICODE_INLINE   static inline

Definition at line 24 of file unicode.h.

Function Documentation

◆ get_char_typeW()

static __inline unsigned short get_char_typeW ( WCHAR  ch)
static

Definition at line 64 of file unicode.h.

65 {
66  extern const unsigned short wine_wctype_table[];
67  return wine_wctype_table[wine_wctype_table[ch >> 8] + (ch & 0xff)];
68 }
const unsigned short wine_wctype_table[]
Definition: wctype.c:6

◆ memchrW()

static __inline WCHAR* memchrW ( const WCHAR ptr,
WCHAR  ch,
size_t  n 
)
static

Definition at line 70 of file unicode.h.

71 {
72  const WCHAR *end;
73  for (end = ptr + n; ptr < end; ptr++) if (*ptr == ch) return (WCHAR *)ptr;
74  return NULL;
75 }
GLdouble n
Definition: glext.h:7729
GLuint GLuint end
Definition: gl.h:1545
static PVOID ptr
Definition: dispmode.c:27
smooth NULL
Definition: ftsmooth.c:416
__wchar_t WCHAR
Definition: xmlstorage.h:180

◆ memrchrW()

static __inline WCHAR* memrchrW ( const WCHAR ptr,
WCHAR  ch,
size_t  n 
)
static

Definition at line 77 of file unicode.h.

78 {
79  const WCHAR *end, *ret = NULL;
80  for (end = ptr + n; ptr < end; ptr++) if (*ptr == ch) ret = ptr;
81  return (WCHAR *)ret;
82 }
GLdouble n
Definition: glext.h:7729
GLuint GLuint end
Definition: gl.h:1545
static PVOID ptr
Definition: dispmode.c:27
smooth NULL
Definition: ftsmooth.c:416
__wchar_t WCHAR
Definition: xmlstorage.h:180
int ret