Ultibo API
C/C++ API for Ultibo Core
Loading...
Searching...
No Matches
unicode.h File Reference

Go to the source code of this file.

Functions

int STDCALL MultiByteToWideChar (unsigned int codepage, uint32_t dwflags, char *lpmultibytestr, int cbmultibyte, WCHAR *lpwidecharstr, int cchwidechar)
 SBCS/DBCS OEM or ANSI string to Unicode string.
int STDCALL WideCharToMultiByte (unsigned int codepage, uint32_t dwflags, WCHAR *lpwidecharstr, int cchwidechar, char *lpmultibytestr, int cbmultibyte, char *lpdefaultchar, BOOL *lpuseddefaultchar)
 Unicode string to SBCS/DBCS OEM or ANSI string.
int STDCALL CompareString (LCID locale, uint32_t dwcmpflags, char *lpstring1, int cchcount1, char *lpstring2, int cchcount2)
int STDCALL CompareStringA (LCID locale, uint32_t dwcmpflags, char *lpstring1, int cchcount1, char *lpstring2, int cchcount2)
 ANSI compare of two strings for equivalence. If both strings are equal returns CSTR_EQUAL, if string 1 is less than string 2 returns CSTR_LESS_THAN and if string 1 is greater than string 2 returns CSTR_GREATER_THAN, on error returns 0.
int STDCALL CompareStringW (LCID locale, uint32_t dwcmpflags, WCHAR *lpstring1, int cchcount1, WCHAR *lpstring2, int cchcount2)
 Unicode compare of two strings for equivalence. If both strings are equal returns CSTR_EQUAL, if string 1 is less than string 2 returns CSTR_LESS_THAN and if string 1 is greater than string 2 returns CSTR_GREATER_THAN, on error returns 0.
char *STDCALL CharUpper (char *lpsz)
char *STDCALL CharUpperA (char *lpsz)
 Lower to Upper case conversion in ANSI code page (Char).
WCHAR *STDCALL CharUpperW (WCHAR *lpsz)
 Lower to Upper case conversion in Unicode (WideChar).
uint32_t STDCALL CharUpperBuff (char *lpsz, uint32_t cchlength)
uint32_t STDCALL CharUpperBuffA (char *lpsz, uint32_t cchlength)
 Lower to Upper case conversion in ANSI code page (Char).
uint32_t STDCALL CharUpperBuffW (WCHAR *lpsz, uint32_t cchlength)
 Lower to Upper case conversion in Unicode (WideChar).
char *STDCALL CharLower (char *lpsz)
char *STDCALL CharLowerA (char *lpsz)
 Upper to Lower case conversion in ANSI code page (Char).
WCHAR *STDCALL CharLowerW (WCHAR *lpsz)
 Upper to Lower case conversion in Unicode (WideChar).
uint32_t STDCALL CharLowerBuff (char *lpsz, uint32_t cchlength)
uint32_t STDCALL CharLowerBuffA (char *lpsz, uint32_t cchlength)
 Upper to Lower case conversion in ANSI code page (Char).
uint32_t STDCALL CharLowerBuffW (WCHAR *lpsz, uint32_t cchlength)
 Upper to Lower case conversion in Unicode (WideChar).
BOOL STDCALL AnsiToOem (char *lpszsrc, char *lpszdst)
BOOL STDCALL AnsiToOemBuff (char *lpszsrc, char *lpszdst, uint32_t cchdstlength)
BOOL STDCALL OemToAnsi (char *lpszsrc, char *lpszdst)
BOOL STDCALL OemToAnsiBuff (char *lpszsrc, char *lpszdst, uint32_t cchdstlength)
BOOL STDCALL CharToOem (char *lpszsrc, char *lpszdst)
BOOL STDCALL CharToOemA (char *lpszsrc, char *lpszdst)
 ANSI to OEM conversion (Char to Char).
BOOL STDCALL CharToOemW (WCHAR *lpszsrc, char *lpszdst)
 Unicode to OEM conversion (WideChar to Char).
BOOL STDCALL OemToChar (char *lpszsrc, char *lpszdst)
BOOL STDCALL OemToCharA (char *lpszsrc, char *lpszdst)
 OEM to ANSI conversion (Char to Char).
BOOL STDCALL OemToCharW (char *lpszsrc, WCHAR *lpszdst)
 OEM to Unicode conversion (Char to WideChar).
BOOL STDCALL CharToOemBuff (char *lpszsrc, char *lpszdst, uint32_t cchdstlength)
BOOL STDCALL CharToOemBuffA (char *lpszsrc, char *lpszdst, uint32_t cchdstlength)
 ANSI to OEM conversion (Char to Char).
BOOL STDCALL CharToOemBuffW (WCHAR *lpszsrc, char *lpszdst, uint32_t cchdstlength)
 Unicode to OEM conversion (WideChar to Char).
BOOL STDCALL OemToCharBuff (char *lpszsrc, char *lpszdst, uint32_t cchdstlength)
BOOL STDCALL OemToCharBuffA (char *lpszsrc, char *lpszdst, uint32_t cchdstlength)
 OEM to ANSI conversion (Char to Char).
BOOL STDCALL OemToCharBuffW (char *lpszsrc, WCHAR *lpszdst, uint32_t cchdstlength)
 OEM to Unicode conversion (Char to WideChar).

Function Documentation

◆ MultiByteToWideChar()

int STDCALL MultiByteToWideChar ( unsigned int codepage,
uint32_t dwflags,
char * lpmultibytestr,
int cbmultibyte,
WCHAR * lpwidecharstr,
int cchwidechar )

SBCS/DBCS OEM or ANSI string to Unicode string.

Unicode Functions

Note
cchWideChar is the size of lpWideCharStr in WideChars (not Bytes)
Currently ignores the Flags parameter
Currently only supports SBCS

◆ WideCharToMultiByte()

int STDCALL WideCharToMultiByte ( unsigned int codepage,
uint32_t dwflags,
WCHAR * lpwidecharstr,
int cchwidechar,
char * lpmultibytestr,
int cbmultibyte,
char * lpdefaultchar,
BOOL * lpuseddefaultchar )

Unicode string to SBCS/DBCS OEM or ANSI string.

Note
cchWideChar is the size of lpWideCharStr in WideChars (not Bytes)
Currently ignores the Flags and DefaultChar parameters
Currently only supports SBCS

◆ CompareString()

int STDCALL CompareString ( LCID locale,
uint32_t dwcmpflags,
char * lpstring1,
int cchcount1,
char * lpstring2,
int cchcount2 )

◆ CompareStringA()

int STDCALL CompareStringA ( LCID locale,
uint32_t dwcmpflags,
char * lpstring1,
int cchcount1,
char * lpstring2,
int cchcount2 )

ANSI compare of two strings for equivalence. If both strings are equal returns CSTR_EQUAL, if string 1 is less than string 2 returns CSTR_LESS_THAN and if string 1 is greater than string 2 returns CSTR_GREATER_THAN, on error returns 0.

Note
Currently the Locale value is ignored and the ANSI code page is used for comparison
Currently only supports SBCS

◆ CompareStringW()

int STDCALL CompareStringW ( LCID locale,
uint32_t dwcmpflags,
WCHAR * lpstring1,
int cchcount1,
WCHAR * lpstring2,
int cchcount2 )

Unicode compare of two strings for equivalence. If both strings are equal returns CSTR_EQUAL, if string 1 is less than string 2 returns CSTR_LESS_THAN and if string 1 is greater than string 2 returns CSTR_GREATER_THAN, on error returns 0.

Note
Currently the Locale value is ignored

◆ CharUpper()

char *STDCALL CharUpper ( char * lpsz)

◆ CharUpperA()

char *STDCALL CharUpperA ( char * lpsz)

Lower to Upper case conversion in ANSI code page (Char).

Note
Unlike Windows this function does not differentiate a single character by the high order word of the passed pointer. To convert a single character call CharUpperBuffA instead with the length as 1.
Currently only supports SBCS

◆ CharUpperW()

WCHAR *STDCALL CharUpperW ( WCHAR * lpsz)

Lower to Upper case conversion in Unicode (WideChar).

Note
Unlike Windows this function does not differentiate a single character by the high order word of the passed pointer. To convert a single character call CharUpperBuffW instead with the length as 1.

◆ CharUpperBuff()

uint32_t STDCALL CharUpperBuff ( char * lpsz,
uint32_t cchlength )

◆ CharUpperBuffA()

uint32_t STDCALL CharUpperBuffA ( char * lpsz,
uint32_t cchlength )

Lower to Upper case conversion in ANSI code page (Char).

Note
Currently only supports SBCS

◆ CharUpperBuffW()

uint32_t STDCALL CharUpperBuffW ( WCHAR * lpsz,
uint32_t cchlength )

Lower to Upper case conversion in Unicode (WideChar).

◆ CharLower()

char *STDCALL CharLower ( char * lpsz)

◆ CharLowerA()

char *STDCALL CharLowerA ( char * lpsz)

Upper to Lower case conversion in ANSI code page (Char).

Note
Unlike Windows this function does not differentiate a single character by the high order word of the passed pointer. To convert a single character call CharLowerBuffA instead with the length as 1.
Currently only supports SBCS

◆ CharLowerW()

WCHAR *STDCALL CharLowerW ( WCHAR * lpsz)

Upper to Lower case conversion in Unicode (WideChar).

Note
Unlike Windows this function does not differentiate a single character by the high order word of the passed pointer. To convert a single character call CharLowerBuffW instead with the length as 1.

◆ CharLowerBuff()

uint32_t STDCALL CharLowerBuff ( char * lpsz,
uint32_t cchlength )

◆ CharLowerBuffA()

uint32_t STDCALL CharLowerBuffA ( char * lpsz,
uint32_t cchlength )

Upper to Lower case conversion in ANSI code page (Char).

Note
Currently only supports SBCS

◆ CharLowerBuffW()

uint32_t STDCALL CharLowerBuffW ( WCHAR * lpsz,
uint32_t cchlength )

Upper to Lower case conversion in Unicode (WideChar).

◆ AnsiToOem()

BOOL STDCALL AnsiToOem ( char * lpszsrc,
char * lpszdst )

◆ AnsiToOemBuff()

BOOL STDCALL AnsiToOemBuff ( char * lpszsrc,
char * lpszdst,
uint32_t cchdstlength )

◆ OemToAnsi()

BOOL STDCALL OemToAnsi ( char * lpszsrc,
char * lpszdst )

◆ OemToAnsiBuff()

BOOL STDCALL OemToAnsiBuff ( char * lpszsrc,
char * lpszdst,
uint32_t cchdstlength )

◆ CharToOem()

BOOL STDCALL CharToOem ( char * lpszsrc,
char * lpszdst )

◆ CharToOemA()

BOOL STDCALL CharToOemA ( char * lpszsrc,
char * lpszdst )

ANSI to OEM conversion (Char to Char).

Note
Currently only supports SBCS

◆ CharToOemW()

BOOL STDCALL CharToOemW ( WCHAR * lpszsrc,
char * lpszdst )

Unicode to OEM conversion (WideChar to Char).

Note
Currently only supports SBCS

◆ OemToChar()

BOOL STDCALL OemToChar ( char * lpszsrc,
char * lpszdst )

◆ OemToCharA()

BOOL STDCALL OemToCharA ( char * lpszsrc,
char * lpszdst )

OEM to ANSI conversion (Char to Char).

Note
Currently only supports SBCS

◆ OemToCharW()

BOOL STDCALL OemToCharW ( char * lpszsrc,
WCHAR * lpszdst )

OEM to Unicode conversion (Char to WideChar).

Note
Currently only supports SBCS

◆ CharToOemBuff()

BOOL STDCALL CharToOemBuff ( char * lpszsrc,
char * lpszdst,
uint32_t cchdstlength )

◆ CharToOemBuffA()

BOOL STDCALL CharToOemBuffA ( char * lpszsrc,
char * lpszdst,
uint32_t cchdstlength )

ANSI to OEM conversion (Char to Char).

Note
Currently only supports SBCS

◆ CharToOemBuffW()

BOOL STDCALL CharToOemBuffW ( WCHAR * lpszsrc,
char * lpszdst,
uint32_t cchdstlength )

Unicode to OEM conversion (WideChar to Char).

Note
Currently only supports SBCS

◆ OemToCharBuff()

BOOL STDCALL OemToCharBuff ( char * lpszsrc,
char * lpszdst,
uint32_t cchdstlength )

◆ OemToCharBuffA()

BOOL STDCALL OemToCharBuffA ( char * lpszsrc,
char * lpszdst,
uint32_t cchdstlength )

OEM to ANSI conversion (Char to Char).

Note
Currently only supports SBCS

◆ OemToCharBuffW()

BOOL STDCALL OemToCharBuffW ( char * lpszsrc,
WCHAR * lpszdst,
uint32_t cchdstlength )

OEM to Unicode conversion (Char to WideChar).

Note
Currently only supports SBCS