LMMS
Loading...
Searching...
No Matches
wdlutf8.h File Reference
#include "wdltypes.h"

Go to the source code of this file.

Macros

#define WDL_WCHAR   wchar_t
#define WDL_utf8_get_charlen(rd)

Functions

static int WDL_STATICFUNC_UNUSED wdl_utf8_parsechar (const char *rd, int *cOut)
static int WDL_STATICFUNC_UNUSED wdl_utf8_makechar (int c, char *dest, int dest_len)
static int WDL_STATICFUNC_UNUSED WDL_MBtoWideStr (WDL_WCHAR *dest, const char *src, int destlenbytes)
static int WDL_STATICFUNC_UNUSED WDL_MakeUTFChar (char *dest, int c, int destlen)
static int WDL_STATICFUNC_UNUSED WDL_WideToMBStr (char *dest, const WDL_WCHAR *src, int destlenbytes)
static int WDL_STATICFUNC_UNUSED WDL_DetectUTF8 (const char *str)
static int WDL_STATICFUNC_UNUSED WDL_utf8_charpos_to_bytepos (const char *str, int charpos)
static int WDL_STATICFUNC_UNUSED WDL_utf8_bytepos_to_charpos (const char *str, int bytepos)

Macro Definition Documentation

◆ WDL_utf8_get_charlen

#define WDL_utf8_get_charlen ( rd)
Value:
WDL_utf8_bytepos_to_charpos((rd), 0x7fffffff)
static int WDL_STATICFUNC_UNUSED WDL_utf8_bytepos_to_charpos(const char *str, int bytepos)
Definition wdlutf8.h:238

◆ WDL_WCHAR

#define WDL_WCHAR   wchar_t

Function Documentation

◆ WDL_DetectUTF8()

int WDL_STATICFUNC_UNUSED WDL_DetectUTF8 ( const char * str)
static

◆ WDL_MakeUTFChar()

int WDL_STATICFUNC_UNUSED WDL_MakeUTFChar ( char * dest,
int c,
int destlen )
static

◆ WDL_MBtoWideStr()

int WDL_STATICFUNC_UNUSED WDL_MBtoWideStr ( WDL_WCHAR * dest,
const char * src,
int destlenbytes )
static

◆ WDL_utf8_bytepos_to_charpos()

int WDL_STATICFUNC_UNUSED WDL_utf8_bytepos_to_charpos ( const char * str,
int bytepos )
static

◆ WDL_utf8_charpos_to_bytepos()

int WDL_STATICFUNC_UNUSED WDL_utf8_charpos_to_bytepos ( const char * str,
int charpos )
static

◆ wdl_utf8_makechar()

int WDL_STATICFUNC_UNUSED wdl_utf8_makechar ( int c,
char * dest,
int dest_len )
static

◆ wdl_utf8_parsechar()

int WDL_STATICFUNC_UNUSED wdl_utf8_parsechar ( const char * rd,
int * cOut )
static

◆ WDL_WideToMBStr()

int WDL_STATICFUNC_UNUSED WDL_WideToMBStr ( char * dest,
const WDL_WCHAR * src,
int destlenbytes )
static