#include "ktypes.h"
Data Structures | |
| struct | _KStrList |
| List of string structure. More... | |
Defines | |
| #define | KStrList_new() _KStrList_new(__K_FILE__, __K_LINE__) |
| Creates an empty string list. | |
| #define | KStrList_create(sData, pNext) _KStrList_create(sData, pNext, __K_FILE__, __K_LINE__) |
| Creates a link and initializes it. | |
| #define | KStrList_delete(pSList) _KStrList_delete (pSList, __K_FILE__, __K_LINE__) |
| Deletes a list and all its strings. | |
| #define | KStrList_deleteElements(ppSList) _KStrList_deleteElements (ppSList, __K_FILE__, __K_LINE__) |
| Removes all the strings of a list. | |
| #define | KStrList_clone(pList) _KStrList_clone(pList, __K_FILE__, __K_LINE__) |
| Clones a list of strings. | |
| #define | KStrList_append(pSList, sData) _KStrList_append(pSList, sData, __K_FILE__, __K_LINE__) |
| Adds a string at the end of the list. | |
| #define | KStrList_insert(pSList, iIdx, sData) _KStrList_insert (pSList, iIdx, sData, __K_FILE__, __K_LINE__) |
| Inserts a string at a given position in a list. | |
| #define | KStrList_marshalling(pList, pSize) _KStrList_marshalling (pList, pSize, __K_FILE__, __K_LINE__) |
| Serializes a list of strings. | |
| #define | KStrList_unmarshalling(pList) _KStrList_unmarshalling (pList, __K_FILE__, __K_LINE__) |
| Deserializes a list of strings. | |
Typedefs | |
| typedef _KStrList | KStrList |
| List of string structure. | |
Functions | |
| KTL_API KStrList * | _KStrList_new (KString sFile, KInt32 iLine) |
| Creates an empty string list. | |
| KTL_API KBool | KStrList_init (KStrList *pSList, KCString sData, KStrList *pNext) |
| Initializes a link of the list. | |
| KTL_API KStrList * | _KStrList_create (KCString sData, KStrList *pNext, KString sFile, KInt32 iLine) |
| Creates a link and initializes it. | |
| KTL_API void | _KStrList_delete (KStrList **pSList, KString sFile, KInt32 iLine) |
| Deletes a list and all its strings. | |
| KTL_API void | _KStrList_deleteElements (KStrList **pSList, KString sFile, KInt32 iLine) |
| Removes all the strings of a list. | |
| KTL_API KStrList * | _KStrList_clone (KStrList *pList, KString sFile, KInt32 iLine) |
| Clones a list of strings. | |
| KTL_API KStrList * | _KStrList_append (KStrList *pSList, KCString sData, KString sFile, KInt32 iLine) |
| Adds a string at the end of the list. | |
| KTL_API KStrList * | KStrList_remove_link (KStrList *pSList, KStrList *pLink) |
| Removes a link of the list. | |
| KTL_API KStrList * | KStrList_remove_data (KStrList *pSList, KCString sData) |
| Removes a string from the list. | |
| KTL_API KBool | KStrList_contains (KStrList *pSList, KCString sData) |
| Searches of a string in a list. | |
| KTL_API KInt32 | KStrList_index_of (KStrList *pSList, KCString sData) |
| Obtains the index of the first string from a list. | |
| KTL_API KStrList * | _KStrList_insert (KStrList *pSList, KInt iIdx, KCString sData, KString sFile, KInt32 iLine) |
| Inserts a string at a given position in a list. | |
| KTL_API KUInt32 | KStrList_size (KStrList *pSList) |
| Gets the number of string of a list. | |
| KTL_API KStrList * | KStrList_concat (KStrList *pL1, KStrList *pL2) |
| Concatenates two lists. | |
| KTL_API void | KStrList_print_str (KStrList *pList) |
| Writes to the standard output all the strings of a list. | |
| KTL_API KStrList * | KStrList_insert_order (KStrList *pList, KCString sValue, KFunc_cmp *fCmpFunc) |
| Inserts a string to a list in ascending order regarding the comparison function. | |
| KTL_API KStrList * | KStrList_remove_at (KStrList *pList, KInt iN) |
| Removes at a given position a string from a list. | |
| KTL_API KCString | KStrList_data_at (KStrList *pList, KInt n) |
| Returned an element at a given position in a list. | |
| KTL_API KUChar * | _KStrList_marshalling (KStrList *pList, KUInt64 *pSize, KString sFile, KInt32 iLine) |
| Serializes a list of strings. | |
| KTL_API KStrList * | _KStrList_unmarshalling (const KUChar *pList, KString sFile, KInt32 iLine) |
| Deserializes a list of strings. | |
| KTL_API KUChar * | KStrList_convertInt2UChar (KUInt32 iInt) |
| Converts an integral number to an unsigned characters array (four bytes). | |
| KTL_API KUInt32 | KStrList_convertUChar2Int (KUChar *pUChar) |
| Converts an unsigned characters array (four bytes) to an integral number. | |
|
|
Adds a string at the end of the list.
|
|
|
Clones a list of strings.
|
|
|
Creates a link and initializes it.
|
|
|
Deletes a list and all its strings.
|
|
|
Removes all the strings of a list.
|
|
|
Inserts a string at a given position in a list.
|
|
|
Serializes a list of strings.
|
|
|
Creates an empty string list.
|
|
|
Deserializes a list of strings.
|
|
||||||||||||||||||||
|
Adds a string at the end of the list.
|
|
||||||||||||||||
|
Clones a list of strings.
|
|
||||||||||||||||||||
|
Creates a link and initializes it.
|
|
||||||||||||||||
|
Deletes a list and all its strings.
|
|
||||||||||||||||
|
Removes all the strings of a list.
|
|
||||||||||||||||||||||||
|
Inserts a string at a given position in a list.
|
|
||||||||||||||||||||
|
Serializes a list of strings.
|
|
||||||||||||
|
Creates an empty string list.
|
|
||||||||||||||||
|
Deserializes a list of strings.
|
|
||||||||||||
|
Concatenates two lists.
|
|
||||||||||||
|
Searches of a string in a list.
|
|
|
Converts an integral number to an unsigned characters array (four bytes).
|
|
|
Converts an unsigned characters array (four bytes) to an integral number.
|
|
||||||||||||
|
Returned an element at a given position in a list.
|
|
||||||||||||
|
Obtains the index of the first string from a list.
|
|
||||||||||||||||
|
Initializes a link of the list.
|
|
||||||||||||||||
|
Inserts a string to a list in ascending order regarding the comparison function.
|
|
|
Writes to the standard output all the strings of a list.
|
|
||||||||||||
|
Removes at a given position a string from a list.
|
|
||||||||||||
|
Removes a string from the list.
|
|
||||||||||||
|
Removes a link of the list.
|
|
|
Gets the number of string of a list.
|
1.3.8