|
gwenhywfar 5.10.1
|

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,...) |
| 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.

| int GWEN_Gui_ConvertString | ( | const char * | text, |
| size_t | len, | ||
| GWEN_BUFFER * | tbuf, | ||
| const char * | fromCs, | ||
| const char * | toCs | ||
| ) |
Definition at line 28 of file gui_utils.c.
References DBG_DEBUG, DBG_ERROR, GWEN_Buffer_AdjustUsedBytes(), GWEN_Buffer_AllocRoom(), GWEN_Buffer_AppendBytes(), GWEN_Buffer_GetMaxUnsegmentedWrite(), GWEN_Buffer_GetPosPointer(), GWEN_Buffer_SetPos(), GWEN_ERROR_GENERIC, GWEN_LOGDOMAIN, and ICONV_CONST.
Referenced by GWEN_Gui_ConvertFromUtf8(), GWEN_Gui_ReadString(), and GWEN_Gui_StdPrintf().


| 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().

| 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().


| int GWEN_Gui_StdPrintf | ( | const GWEN_GUI * | gui, |
| FILE * | stream, | ||
| const char * | fmt, | ||
| ... | |||
| ) |
Definition at line 113 of file gui_utils.c.
References fmt, GWEN_Buffer_AdjustUsedBytes(), GWEN_Buffer_AllocRoom(), GWEN_Buffer_free(), GWEN_Buffer_GetMaxUnsegmentedWrite(), GWEN_Buffer_GetStart(), GWEN_Buffer_IncrementPos(), GWEN_Buffer_new(), and GWEN_Gui_ConvertString().
