gwenhywfar 5.14.1
gui_utils.c File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int GWEN_Gui_ConvertFromUtf8 (const GWEN_GUI *gui, const char *text, int len, GWEN_BUFFER *tbuf)
int GWEN_Gui_ConvertString (const char *text, size_t len, GWEN_BUFFER *tbuf, const char *fromCs, const char *toCs)
void GWEN_Gui_GetRawText (GWEN_UNUSED const GWEN_GUI *gui, const char *text, GWEN_BUFFER *tbuf)
int GWEN_Gui_ReadString (const char *text, GWEN_BUFFER *tbuf)
int GWEN_Gui_StdPrintf (const GWEN_GUI *gui, FILE *stream, const char *fmt,...)

Function Documentation

◆ GWEN_Gui_ConvertFromUtf8()

int GWEN_Gui_ConvertFromUtf8 ( const GWEN_GUI * gui,
const char * text,
int len,
GWEN_BUFFER * tbuf )

This function converts the given text from UTF-8 to the character set selected by GWEN_Gui_SetCharSet before writing it to the given buffer.

Definition at line 98 of file gui_utils.c.

References DBG_INFO, GWEN_Gui_ConvertString(), and GWEN_LOGDOMAIN.

Here is the call graph for this function:

◆ GWEN_Gui_ConvertString()

int GWEN_Gui_ConvertString ( const char * text,
size_t len,
GWEN_BUFFER * tbuf,
const char * fromCs,
const char * toCs )

◆ GWEN_Gui_GetRawText()

void GWEN_Gui_GetRawText ( GWEN_UNUSED const GWEN_GUI * gui,
const char * text,
GWEN_BUFFER * tbuf )

Definition at line 210 of file gui_utils.c.

References GWEN_Buffer_AppendBytes(), and GWEN_UNUSED.

Here is the call graph for this function:

◆ GWEN_Gui_ReadString()

int GWEN_Gui_ReadString ( const char * text,
GWEN_BUFFER * tbuf )

Definition at line 183 of file gui_utils.c.

References GWEN_Buffer_AppendString(), GWEN_Gui_ConvertString(), and GWEN_Gui_GetGui().

Referenced by GWEN_Args_Check().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWEN_Gui_StdPrintf()

int GWEN_Gui_StdPrintf ( const GWEN_GUI * gui,
FILE * stream,
const char * fmt,
... )