gwenhywfar 5.12.0
stringlist.c File Reference
#include <gwenhywfar/gwenhywfarapi.h>
#include <gwenhywfar/misc.h>
#include <gwenhywfar/text.h>
#include "stringlist_p.h"
#include "debug.h"
#include <stdlib.h>
#include <assert.h>
#include <ctype.h>
#include <string.h>
Include dependency graph for stringlist.c:

Go to the source code of this file.

Macros

#define DISABLE_DEBUGLOG

Functions

static int GWEN_StringList__compar_asc_case (const void *a, const void *b)
static int GWEN_StringList__compar_asc_int (const void *a, const void *b)
static int GWEN_StringList__compar_asc_nocase (const void *a, const void *b)
static int GWEN_StringList__compar_desc_case (const void *a, const void *b)
static int GWEN_StringList__compar_desc_int (const void *a, const void *b)
static int GWEN_StringList__compar_desc_nocase (const void *a, const void *b)
void GWEN_StringList_AppendEntry (GWEN_STRINGLIST *sl, GWEN_STRINGLISTENTRY *se)
int GWEN_StringList_AppendString (GWEN_STRINGLIST *sl, const char *s, int take, int checkDouble)
void GWEN_StringList_AppendStringList (GWEN_STRINGLIST *slDest, const GWEN_STRINGLIST *slSource, int checkDouble)
void GWEN_StringList_Clear (GWEN_STRINGLIST *sl)
unsigned int GWEN_StringList_Count (const GWEN_STRINGLIST *sl)
GWEN_STRINGLISTGWEN_StringList_dup (const GWEN_STRINGLIST *sl)
GWEN_STRINGLISTENTRYGWEN_StringList_FindStringEntry (const GWEN_STRINGLIST *sl, const char *s)
GWEN_STRINGLISTENTRYGWEN_StringList_FirstEntry (const GWEN_STRINGLIST *sl)
const char * GWEN_StringList_FirstString (const GWEN_STRINGLIST *l)
void * GWEN_StringList_ForEach (const GWEN_STRINGLIST *l, void *(*func)(const char *s, void *u), void *user_data)
void GWEN_StringList_free (GWEN_STRINGLIST *sl)
GWEN_STRINGLISTGWEN_StringList_fromString (const char *str, const char *delimiters, int checkDouble)
GWEN_STRINGLISTGWEN_StringList_fromString2 (const char *str, const char *delimiters, int checkDouble, uint32_t flags)
GWEN_STRINGLISTGWEN_StringList_fromTabString (const char *s, int checkDup)
int GWEN_StringList_GetStringPos (const GWEN_STRINGLIST *sl, const char *s)
int GWEN_StringList_HasString (const GWEN_STRINGLIST *sl, const char *s)
int GWEN_StringList_InsertString (GWEN_STRINGLIST *sl, const char *s, int take, int checkDouble)
GWEN_STRINGLISTGWEN_StringList_new (void)
void GWEN_StringList_RemoveCommonFirstEntries (GWEN_STRINGLIST *sl1, GWEN_STRINGLIST *sl2)
void GWEN_StringList_RemoveEntry (GWEN_STRINGLIST *sl, GWEN_STRINGLISTENTRY *se)
void GWEN_StringList_RemoveFirstString (GWEN_STRINGLIST *sl)
int GWEN_StringList_RemoveString (GWEN_STRINGLIST *sl, const char *s)
void GWEN_StringList_SetIgnoreRefCount (GWEN_STRINGLIST *sl, int i)
void GWEN_StringList_SetSenseCase (GWEN_STRINGLIST *sl, int i)
void GWEN_StringList_Sort (GWEN_STRINGLIST *l, int ascending, GWEN_STRINGLIST_SORT_MODE sortMode)
int GWEN_StringList_StringAsIntAt (const GWEN_STRINGLIST *l, int idx, int defaultValue)
const char * GWEN_StringList_StringAt (const GWEN_STRINGLIST *sl, int idx)
int GWEN_StringList_toBuffer (const GWEN_STRINGLIST *sl, const char *delimiter, GWEN_BUFFER *outBuffer)
const char * GWEN_StringListEntry_Data (const GWEN_STRINGLISTENTRY *se)
void GWEN_StringListEntry_free (GWEN_STRINGLISTENTRY *sl)
GWEN_STRINGLISTENTRYGWEN_StringListEntry_new (const char *s, int take)
GWEN_STRINGLISTENTRYGWEN_StringListEntry_Next (const GWEN_STRINGLISTENTRY *se)
void GWEN_StringListEntry_ReplaceString (GWEN_STRINGLISTENTRY *e, const char *s, int take)
void GWEN_StringListEntry_SetData (GWEN_STRINGLISTENTRY *se, const char *s)

Macro Definition Documentation

◆ DISABLE_DEBUGLOG

#define DISABLE_DEBUGLOG

Definition at line 30 of file stringlist.c.

Function Documentation

◆ GWEN_StringList__compar_asc_case()

int GWEN_StringList__compar_asc_case ( const void * a,
const void * b )
static

Definition at line 604 of file stringlist.c.

Referenced by GWEN_StringList_Sort().

Here is the caller graph for this function:

◆ GWEN_StringList__compar_asc_int()

int GWEN_StringList__compar_asc_int ( const void * a,
const void * b )
static

Definition at line 623 of file stringlist.c.

Referenced by GWEN_StringList_Sort().

Here is the caller graph for this function:

◆ GWEN_StringList__compar_asc_nocase()

int GWEN_StringList__compar_asc_nocase ( const void * a,
const void * b )
static

Definition at line 586 of file stringlist.c.

Referenced by GWEN_StringList_Sort().

Here is the caller graph for this function:

◆ GWEN_StringList__compar_desc_case()

int GWEN_StringList__compar_desc_case ( const void * a,
const void * b )
static

Definition at line 613 of file stringlist.c.

Referenced by GWEN_StringList_Sort().

Here is the caller graph for this function:

◆ GWEN_StringList__compar_desc_int()

int GWEN_StringList__compar_desc_int ( const void * a,
const void * b )
static

Definition at line 638 of file stringlist.c.

Referenced by GWEN_StringList_Sort().

Here is the caller graph for this function:

◆ GWEN_StringList__compar_desc_nocase()

int GWEN_StringList__compar_desc_nocase ( const void * a,
const void * b )
static

Definition at line 595 of file stringlist.c.

Referenced by GWEN_StringList_Sort().

Here is the caller graph for this function:

◆ GWEN_StringList_AppendEntry()

void GWEN_StringList_AppendEntry ( GWEN_STRINGLIST * sl,
GWEN_STRINGLISTENTRY * se )

Definition at line 139 of file stringlist.c.

Referenced by GWEN_StringList_AppendString(), and GWEN_StringList_dup().

Here is the caller graph for this function:

◆ GWEN_StringList_AppendString()

int GWEN_StringList_AppendString ( GWEN_STRINGLIST * sl,
const char * s,
int take,
int checkDouble )

Appends a string.

Returns
0 if not appended, !=0 if appended
Parameters
takeif true then the StringList takes over ownership of the string
checkDoubleif true the the string will only be appended if it does not already exist

Definition at line 245 of file stringlist.c.

References GWEN_StringList_AppendEntry(), and GWEN_StringListEntry_new().

Referenced by _addLogLineToList(), _determineTools(), _fileListToTopBuildDirStringList(), _makeAbsolutePaths(), _readBuildFileList(), _readCsvLine(), _splitFixedWithStringIntoStringlist(), FOX16_HtmlLabel::addMediaPath(), addToList(), Gtk2Gui_WComboBox_SetCharProperty(), Gtk3Gui_WComboBox_SetCharProperty(), GWB_File_FileListToTopBuildDirStringList(), GWB_Option_AddChoice(), GWB_Target_AddUsedLibraryName(), GWB_Target_AddUsedTargetLinkSpec(), GWB_Target_AddUsedTargetName(), GWBUILD_AddBuildFilename(), GWEN_ConfigMgrDir_ListSubGroups(), GWEN_Dialog_AddMediaPath(), GWEN_Dialog_AddMediaPathsFromPathManager(), GWEN_Directory_GetAllEntries(), GWEN_Directory_GetDirEntries(), GWEN_Directory_GetFileEntries(), GWEN_Directory_GetFileEntriesWithType(), GWEN_Directory_GetMatchingFilesRecursively(), GWEN_Gui_Internal_SetPasswordStatus(), GWEN_I18N_SetLocale(), GWEN_MDigest__HashFileTree(), GWEN_MsgEngine__ListGroup(), GWEN_MsgEngine__ShowGroup(), GWEN_PasswordStore_GetTokenList(), GWEN_PathManager_GetPaths(), GWEN_StringList_AppendStringList(), GWEN_StringList_fromString(), GWEN_StringList_fromString2(), GWEN_StringList_fromTabString(), GWEN_SyncIo_Buffered_ReadLinesToStringList(), GWEN_SyncIo_Tls_Prepare(), HtmlCtx_AddMediaPath(), Typemaker2_Builder_AddCode(), Typemaker2_Builder_AddLibraryDeclaration(), Typemaker2_Builder_AddPrivateDeclaration(), Typemaker2_Builder_AddProtectedDeclaration(), Typemaker2_Builder_AddPublicDeclaration(), and Typemaker2_TypeManager_AddFolder().

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

◆ GWEN_StringList_AppendStringList()

void GWEN_StringList_AppendStringList ( GWEN_STRINGLIST * slDest,
const GWEN_STRINGLIST * slSource,
int checkDouble )

Append duplicates of the entries in the source list to the destination list. The source list is not modified.

Definition at line 915 of file stringlist.c.

References GWEN_StringList_AppendString().

Referenced by GWB_ParseOption().

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

◆ GWEN_StringList_Clear()

void GWEN_StringList_Clear ( GWEN_STRINGLIST * sl)

Definition at line 228 of file stringlist.c.

References GWEN_StringListEntry_free().

Referenced by Gtk2Gui_WComboBox_SetCharProperty(), Gtk2Gui_WComboBox_SetIntProperty(), Gtk3Gui_WComboBox_SetCharProperty(), Gtk3Gui_WComboBox_SetIntProperty(), GWEN_I18N_SetLocale(), and Test_Gui_FlushLogs().

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

◆ GWEN_StringList_Count()

◆ GWEN_StringList_dup()

GWEN_STRINGLIST * GWEN_StringList_dup ( const GWEN_STRINGLIST * sl)

Definition at line 530 of file stringlist.c.

References GWEN_StringList_AppendEntry(), GWEN_StringList_new(), and GWEN_StringListEntry_new().

Here is the call graph for this function:

◆ GWEN_StringList_FindStringEntry()

GWEN_STRINGLISTENTRY * GWEN_StringList_FindStringEntry ( const GWEN_STRINGLIST * sl,
const char * s )

Returns the first stringlist entry which contains the given string

Returns
string list entry containing the given string, NULL otherwise

Definition at line 497 of file stringlist.c.

References NULL.

◆ GWEN_StringList_FirstEntry()

GWEN_STRINGLISTENTRY * GWEN_StringList_FirstEntry ( const GWEN_STRINGLIST * sl)

Definition at line 390 of file stringlist.c.

Referenced by _addStringListToBuffer(), _addSubTargetsForTarget(), _checkDatesOfFileAgainstList(), _checkStringListOption(), _determineProgPath(), _filesChanged(), _getHighestModificationTime(), _getLocalOrMainPluginNode(), _getLowestModificationTime(), _getPathBetween(), _loadPluginDescrs(), _makeAbsolutePaths(), _parseI18n(), _parseIncludes(), _parseLibraries(), _parseUsedTargets(), _readFlagsFromChar(), _readFlagsFromChar(), _retrieveVariables(), _searchAndLoadModule(), _stringListToDb(), _unlinkFilesInStringList(), _writeLinesToFile(), add2Archive(), addToList(), buildFile2(), CocoaGui_WTextBrowser_SetCharProperty(), doBuildDefs(), GWB_GBuilderDescr_ReadAll(), GWB_ParseCheckFunctions(), GWB_ParseCheckHeaders(), GWB_Parser_ParseSourcesOrHeaders(), GWB_Parser_ParseSubdirs(), GWB_Utils_WriteBuildFileList(), GWBUILD_AddFilesFromStringList(), GWBUILD_Debug_PrintStringList(), GWEN_ConfigMgr_ModuleInit(), GWEN_ConfigMgrDir_ListSubGroups(), GWEN_Crypt_Token_ModuleInit(), GWEN_DBIO_ModuleInit(), GWEN_Dialog_AddMediaPathsFromPathManager(), GWEN_Directory_FindFileInPaths(), GWEN_Directory_FindPathForFile(), GWEN_Directory_GetMatchingFilesRecursively(), GWEN_LoadPluginDescrsByType(), GWEN_MDigest__HashFileTree(), GWEN_MDigest_CheckFileTree(), GWEN_MsgEngine__ListElement(), GWEN_MsgEngine__ShowElement(), GWEN_PluginDescription_GetLongDescrByFormat(), GWEN_StringList_ForEach(), GWEN_StringList_RemoveCommonFirstEntries(), GWEN_XMLNode_GetLocalizedCharValue(), hashTree(), FOX16_GuiDialog::setupTree(), showPasswords(), Typemaker2_Builder_WriteFile(), Typemaker2_FlagsFromString(), Typemaker2_TypeFlagsFromString(), and FOX16_HtmlLabel::updateHtml().

Here is the caller graph for this function:

◆ GWEN_StringList_FirstString()

const char * GWEN_StringList_FirstString ( const GWEN_STRINGLIST * l)

Returns the first string in this list.

Definition at line 576 of file stringlist.c.

Referenced by _needRunCurrentCommand(), GWEN_I18N_ModuleInit(), and main().

Here is the caller graph for this function:

◆ GWEN_StringList_ForEach()

void * GWEN_StringList_ForEach ( const GWEN_STRINGLIST * l,
void *(* func )(const char *s, void *u),
void * user_data )

Traverses the list, calling the callback function 'func' on each list element. Traversal will stop when 'func' returns a non-NULL value, and the routine will return with that value. Otherwise the routine will return NULL.

Parameters
lThe list to traverse.
funcThe function to be called with each list element.
user_dataA pointer passed on to the function 'func'.
Returns
The non-NULL pointer returned by 'func' as soon as it returns one. Otherwise (i.e. 'func' always returns NULL) returns NULL.

Definition at line 551 of file stringlist.c.

References GWEN_StringList_FirstEntry(), GWEN_StringListEntry_Data(), and GWEN_StringListEntry_Next().

Referenced by print_paths().

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

◆ GWEN_StringList_free()

void GWEN_StringList_free ( GWEN_STRINGLIST * sl)

Definition at line 62 of file stringlist.c.

References GWEN_FREE_OBJECT, and GWEN_StringListEntry_free().

Referenced by _checkDependencies(), _checkStringListOption(), _checkWaitingQueue(), _csvCheckFile(), _csvImport(), _determineTools(), _fileListToTopBuildDirStringList(), _freeData(), _getPathBetween(), _loadPluginDescrs(), _makeAbsolutePaths(), _parseIncludes(), _parseLibraries(), _parseUsedTargets(), _readBuildFileList(), _readFilesFromDataNode(), _readFlagsFromChar(), _readFlagsFromChar(), _readOptionsFromDb(), _retrieveVariables(), _searchAndLoadModule(), _splitFixedWithStringIntoStringlist(), _stringListToDb(), add2Archive(), addToList(), buildFile2(), doBuildDefs(), Gtk2Gui_WComboBox_FreeData(), Gtk3Gui_WComboBox_FreeData(), GWB_BuildCtx_ReadAndTranslateDepfile(), GWB_File_FileListToTopBuildDirStringList(), GWB_GBuilderDescr_free(), GWB_GBuilderDescr_ReadAll(), GWB_Option_free(), GWB_ParseCheckFunctions(), GWB_ParseCheckHeaders(), GWB_ParseOption(), GWB_Parser_ParseSourcesOrHeaders(), GWB_Parser_ParseSubdirs(), GWB_Target_free(), GWB_Utils_BuildFilesChanged(), GWBUILD_free(), GWEN_ConfigMgr_ModuleInit(), GWEN_ConfigMgrDir_ListSubGroups(), GWEN_Crypt_Token_ModuleInit(), GWEN_DBIO_ModuleInit(), GWEN_Dialog_AddMediaPathsFromPathManager(), GWEN_Dialog_free(), GWEN_Directory_GetMatchingFilesRecursively(), GWEN_Gui_free(), GWEN_I18N_ModuleFini(), GWEN_I18N_ModuleInit(), GWEN_LoadPluginDescrsByType(), GWEN_MDigest__HashFileTree(), GWEN_MDigest_CheckFileTree(), GWEN_MsgEngine_ListMessage(), GWEN_MsgEngine_ShowMessage(), GWEN_Path_GetPathBetween(), GWEN_PathManager_GetPaths(), GWEN_StringList_fromString(), GWEN_StringList_fromString2(), GWEN_SyncIo_Tls_Prepare(), hashTree(), HtmlCtx_FreeData(), main(), showPasswords(), TestGui_Unextend(), Typemaker2_Builder_free(), Typemaker2_FlagsFromString(), Typemaker2_Type_free(), Typemaker2_TypeFlagsFromString(), Typemaker2_TypeManager_free(), and FOX16_HtmlLabel::~FOX16_HtmlLabel().

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

◆ GWEN_StringList_fromString()

GWEN_STRINGLIST * GWEN_StringList_fromString ( const char * str,
const char * delimiters,
int checkDouble )

◆ GWEN_StringList_fromString2()

GWEN_STRINGLIST * GWEN_StringList_fromString2 ( const char * str,
const char * delimiters,
int checkDouble,
uint32_t flags )

Create a stringlist from a given complex string.

In addition to GWEN_StringList_fromString() this version allows to modify the behavior of the function by adding some flags (see GWEN_TEXT_FLAGS_CHECK_BACKSLASH and following). Typically used flags are:

Returns
stringlist object (contains at least one entry) or NULL if no entries/empty string
Parameters
strstring to dissect
delimitersword delimiters
checkDoubleif !=0 only add unique strings to the resulting list
flags(see GWEN_TEXT_FLAGS_DEL_QUOTES and others)

Definition at line 818 of file stringlist.c.

References DBG_VERBOUS, GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_Buffer_Reset(), GWEN_LOGDOMAIN, GWEN_StringList_AppendString(), GWEN_StringList_Count(), GWEN_StringList_free(), GWEN_StringList_new(), GWEN_Text_GetWordToBuffer(), and NULL.

Referenced by _checkStringListOption(), _csvImport(), _getPathBetween(), _readDepFile(), _readOptionsFromDb(), _stringListToDb(), GWB_ParseOption(), GWBUILD_GetPathFromEnvironment(), and GWEN_Path_GetPathBetween().

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

◆ GWEN_StringList_fromTabString()

GWEN_STRINGLIST * GWEN_StringList_fromTabString ( const char * s,
int checkDup )

Definition at line 162 of file stringlist.c.

References GWEN_StringList_AppendString(), and GWEN_StringList_new().

Here is the call graph for this function:

◆ GWEN_StringList_GetStringPos()

int GWEN_StringList_GetStringPos ( const GWEN_STRINGLIST * sl,
const char * s )

Returns the position of the given string within the stringlist.

Returns
position, -1 if not found

Definition at line 464 of file stringlist.c.

◆ GWEN_StringList_HasString()

int GWEN_StringList_HasString ( const GWEN_STRINGLIST * sl,
const char * s )

Checks whether the given string already exists within in the string list.

Returns
!=0 if found, 0 otherwise

Definition at line 435 of file stringlist.c.

Referenced by _isAcceptableInput(), _tryReadPasswdViaInputBox(), and GWB_Option_IsValidChoice().

Here is the caller graph for this function:

◆ GWEN_StringList_InsertString()

int GWEN_StringList_InsertString ( GWEN_STRINGLIST * sl,
const char * s,
int take,
int checkDouble )

Inserts a string.

Returns
0 if not inserted, !=0 if inserted
Parameters
takeif true then the StringList takes over ownership of the string
checkDoubleif true the the string will only be appended if it does not already exist

Definition at line 285 of file stringlist.c.

References GWEN_StringListEntry_new().

Here is the call graph for this function:

◆ GWEN_StringList_new()

◆ GWEN_StringList_RemoveCommonFirstEntries()

void GWEN_StringList_RemoveCommonFirstEntries ( GWEN_STRINGLIST * sl1,
GWEN_STRINGLIST * sl2 )

Remove first equal entries from both lists.

If stringlist 1 contains "A", "B", "C", "D" and stringlist 2 contains "A", "B", "X" then after this function the lists are changed to this: stringlist 1 contains "C", "D" stringlist 2 contains "X"

Definition at line 884 of file stringlist.c.

References GWEN_StringList_FirstEntry(), GWEN_StringList_RemoveEntry(), GWEN_StringListEntry_Data(), and GWEN_StringListEntry_Next().

Referenced by _getPathBetween().

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

◆ GWEN_StringList_RemoveEntry()

void GWEN_StringList_RemoveEntry ( GWEN_STRINGLIST * sl,
GWEN_STRINGLISTENTRY * se )

Definition at line 198 of file stringlist.c.

Referenced by GWEN_StringList_RemoveCommonFirstEntries(), GWEN_StringList_RemoveFirstString(), and GWEN_StringList_RemoveString().

Here is the caller graph for this function:

◆ GWEN_StringList_RemoveFirstString()

void GWEN_StringList_RemoveFirstString ( GWEN_STRINGLIST * sl)

Removes the first string from the stringlist (if any).

Definition at line 369 of file stringlist.c.

References GWEN_StringList_RemoveEntry().

Referenced by _addLogLineToList().

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

◆ GWEN_StringList_RemoveString()

int GWEN_StringList_RemoveString ( GWEN_STRINGLIST * sl,
const char * s )

Removes a given string from the stringlist.

Returns
0 if not found, !=0 if found and removed

Definition at line 326 of file stringlist.c.

References GWEN_StringList_RemoveEntry().

Referenced by _tryReadPasswdViaInputBox(), GWEN_Gui_Internal_SetPasswordStatus(), and GWEN_MDigest_CheckFileTree().

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

◆ GWEN_StringList_SetIgnoreRefCount()

void GWEN_StringList_SetIgnoreRefCount ( GWEN_STRINGLIST * sl,
int i )

Normally this group of functions ignores reference counters on stringlist entries when removing a string via GWEN_StringList_RemoveString. You can change this behaviour here.

Parameters
slstring list
iif 0 then reference counters are honoured

Definition at line 87 of file stringlist.c.

◆ GWEN_StringList_SetSenseCase()

void GWEN_StringList_SetSenseCase ( GWEN_STRINGLIST * sl,
int i )

Normally this group of functions ignores cases when comparing two strings. You can change this behaviour here.

Parameters
slstring list
iif 0 then cases are ignored

Definition at line 79 of file stringlist.c.

◆ GWEN_StringList_Sort()

void GWEN_StringList_Sort ( GWEN_STRINGLIST * l,
int ascending,
GWEN_STRINGLIST_SORT_MODE sortMode )

Sorts this list. Internally this uses qsort(3), so the sorting should be reasonably fast even for large lists.

Parameters
lThe list to sort.
ascendingIf non-zero, the list is sorted ascending, i.e. smallest string first, according to strcmp(3) rules. If zero, the list is sorted descending.
sortModeSee GWEN_StringList_SortModeNoCase and following

Definition at line 655 of file stringlist.c.

References DBG_ERROR, GWEN_LOGDOMAIN, GWEN_StringList__compar_asc_case(), GWEN_StringList__compar_asc_int(), GWEN_StringList__compar_asc_nocase(), GWEN_StringList__compar_desc_case(), GWEN_StringList__compar_desc_int(), GWEN_StringList__compar_desc_nocase(), GWEN_StringList_SortModeCase, GWEN_StringList_SortModeInt, GWEN_StringList_SortModeNoCase, and NULL.

Here is the call graph for this function:

◆ GWEN_StringList_StringAsIntAt()

int GWEN_StringList_StringAsIntAt ( const GWEN_STRINGLIST * l,
int idx,
int defaultValue )

Definition at line 746 of file stringlist.c.

References GWEN_StringList_StringAt().

Here is the call graph for this function:

◆ GWEN_StringList_StringAt()

const char * GWEN_StringList_StringAt ( const GWEN_STRINGLIST * sl,
int idx )

Definition at line 730 of file stringlist.c.

Referenced by _readOptionsFromDb(), Gtk2Gui_WComboBox_GetCharProperty(), Gtk3Gui_WComboBox_GetCharProperty(), and GWEN_StringList_StringAsIntAt().

Here is the caller graph for this function:

◆ GWEN_StringList_toBuffer()

int GWEN_StringList_toBuffer ( const GWEN_STRINGLIST * sl,
const char * delimiter,
GWEN_BUFFER * outBuffer )

Definition at line 861 of file stringlist.c.

References GWEN_Buffer_AppendString().

Here is the call graph for this function:

◆ GWEN_StringListEntry_Data()

const char * GWEN_StringListEntry_Data ( const GWEN_STRINGLISTENTRY * se)

Definition at line 406 of file stringlist.c.

Referenced by _addStringListToBuffer(), _addSubTargetsForTarget(), _checkDatesOfFileAgainstList(), _checkStringListOption(), _determineProgPath(), _filesChanged(), _getHighestModificationTime(), _getLocalOrMainPluginNode(), _getLowestModificationTime(), _getPathBetween(), _loadPluginDescrs(), _makeAbsolutePaths(), _parseI18n(), _parseIncludes(), _parseLibraries(), _parseUsedTargets(), _readFlagsFromChar(), _readFlagsFromChar(), _retrieveVariables(), _searchAndLoadModule(), _stringListToDb(), _unlinkFilesInStringList(), _writeLinesToFile(), add2Archive(), addToList(), buildFile2(), CocoaGui_WTextBrowser_SetCharProperty(), doBuildDefs(), GWB_GBuilderDescr_ReadAll(), GWB_ParseCheckFunctions(), GWB_ParseCheckHeaders(), GWB_Parser_ParseSourcesOrHeaders(), GWB_Parser_ParseSubdirs(), GWB_Utils_WriteBuildFileList(), GWBUILD_AddFilesFromStringList(), GWBUILD_Debug_PrintStringList(), GWEN_ConfigMgr_ModuleInit(), GWEN_ConfigMgrDir_ListSubGroups(), GWEN_Crypt_Token_ModuleInit(), GWEN_DBIO_ModuleInit(), GWEN_Dialog_AddMediaPathsFromPathManager(), GWEN_Directory_FindFileInPaths(), GWEN_Directory_FindPathForFile(), GWEN_Directory_GetMatchingFilesRecursively(), GWEN_LoadPluginDescrsByType(), GWEN_MDigest__HashFileTree(), GWEN_MDigest_CheckFileTree(), GWEN_MsgEngine__ListElement(), GWEN_MsgEngine__ShowElement(), GWEN_PluginDescription_GetLongDescrByFormat(), GWEN_StringList_ForEach(), GWEN_StringList_RemoveCommonFirstEntries(), GWEN_XMLNode_GetLocalizedCharValue(), hashTree(), FOX16_GuiDialog::setupTree(), showPasswords(), Typemaker2_Builder_WriteFile(), Typemaker2_FlagsFromString(), Typemaker2_TypeFlagsFromString(), and FOX16_HtmlLabel::updateHtml().

Here is the caller graph for this function:

◆ GWEN_StringListEntry_free()

void GWEN_StringListEntry_free ( GWEN_STRINGLISTENTRY * sl)

Definition at line 128 of file stringlist.c.

References GWEN_FREE_OBJECT.

Referenced by GWEN_StringList_Clear(), and GWEN_StringList_free().

Here is the caller graph for this function:

◆ GWEN_StringListEntry_new()

GWEN_STRINGLISTENTRY * GWEN_StringListEntry_new ( const char * s,
int take )

Definition at line 95 of file stringlist.c.

References GWEN_NEW_OBJECT.

Referenced by GWEN_StringList_AppendString(), GWEN_StringList_dup(), and GWEN_StringList_InsertString().

Here is the caller graph for this function:

◆ GWEN_StringListEntry_Next()

GWEN_STRINGLISTENTRY * GWEN_StringListEntry_Next ( const GWEN_STRINGLISTENTRY * se)

Definition at line 398 of file stringlist.c.

Referenced by _addStringListToBuffer(), _addSubTargetsForTarget(), _checkDatesOfFileAgainstList(), _checkStringListOption(), _determineProgPath(), _filesChanged(), _getHighestModificationTime(), _getLocalOrMainPluginNode(), _getLowestModificationTime(), _getPathBetween(), _loadPluginDescrs(), _makeAbsolutePaths(), _parseI18n(), _parseIncludes(), _parseLibraries(), _parseUsedTargets(), _readFlagsFromChar(), _readFlagsFromChar(), _retrieveVariables(), _searchAndLoadModule(), _stringListToDb(), _unlinkFilesInStringList(), _writeLinesToFile(), add2Archive(), addToList(), buildFile2(), doBuildDefs(), GWB_GBuilderDescr_ReadAll(), GWB_ParseCheckFunctions(), GWB_ParseCheckHeaders(), GWB_Parser_ParseSourcesOrHeaders(), GWB_Parser_ParseSubdirs(), GWB_Utils_WriteBuildFileList(), GWBUILD_AddFilesFromStringList(), GWBUILD_Debug_PrintStringList(), GWEN_ConfigMgr_ModuleInit(), GWEN_ConfigMgrDir_ListSubGroups(), GWEN_Crypt_Token_ModuleInit(), GWEN_DBIO_ModuleInit(), GWEN_Dialog_AddMediaPathsFromPathManager(), GWEN_Directory_FindFileInPaths(), GWEN_Directory_FindPathForFile(), GWEN_Directory_GetMatchingFilesRecursively(), GWEN_LoadPluginDescrsByType(), GWEN_MDigest__HashFileTree(), GWEN_MDigest_CheckFileTree(), GWEN_MsgEngine__ListElement(), GWEN_MsgEngine__ShowElement(), GWEN_PluginDescription_GetLongDescrByFormat(), GWEN_StringList_ForEach(), GWEN_StringList_RemoveCommonFirstEntries(), GWEN_XMLNode_GetLocalizedCharValue(), hashTree(), FOX16_GuiDialog::setupTree(), showPasswords(), Typemaker2_Builder_WriteFile(), Typemaker2_FlagsFromString(), Typemaker2_TypeFlagsFromString(), and FOX16_HtmlLabel::updateHtml().

Here is the caller graph for this function:

◆ GWEN_StringListEntry_ReplaceString()

void GWEN_StringListEntry_ReplaceString ( GWEN_STRINGLISTENTRY * e,
const char * s,
int take )

Definition at line 113 of file stringlist.c.

◆ GWEN_StringListEntry_SetData()

void GWEN_StringListEntry_SetData ( GWEN_STRINGLISTENTRY * se,
const char * s )

Definition at line 414 of file stringlist.c.

References NULL.