Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
string_arr.h
Go to the documentation of this file.
1 /*
2  * File: string_arr.h
3  * Author: Kirill Scherba
4  *
5  * Created on June 19, 2014, 7:43 AM
6  */
7 
8 #ifndef STRING_ARR_H
9 #define STRING_ARR_H
10 
11 typedef char ** ksnet_stringArr;
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
21 ksnet_stringArr ksnet_stringArrSplit(const char* string, const char* separators,
22  int with_empty, int max_parts);
23 char *ksnet_stringArrCombine(ksnet_stringArr arr, const char* separator);
24 int ksnet_stringArrMoveTo(ksnet_stringArr arr, unsigned int fromIdx, unsigned int toIdx);
25 
26 #ifdef __cplusplus
27 }
28 #endif
29 
30 #endif /* STRING_ARR_H */
31 
int ksnet_stringArrMoveTo(ksnet_stringArr arr, unsigned int fromIdx, unsigned int toIdx)
char * ksnet_stringArrCombine(ksnet_stringArr arr, const char *separator)
Combine string array to string.
Definition: string_arr.c:240
int ksnet_stringArrLength(ksnet_stringArr arr)
Get length of string array.
Definition: string_arr.c:52
char ** ksnet_stringArr
Definition: string_arr.h:11
ksnet_stringArr ksnet_stringArrAdd(ksnet_stringArr *arr, const char *str)
Add c string to string array.
Definition: string_arr.c:33
ksnet_stringArr ksnet_stringArrCreate()
Create empty c string array.
Definition: string_arr.c:21
ksnet_stringArr ksnet_stringArrSplit(const char *string, const char *separators, int with_empty, int max_parts)
Split string by separators into words.
Definition: string_arr.c:137
ksnet_stringArr ksnet_stringArrFree(ksnet_stringArr *arr)
Free string array.
Definition: string_arr.c:110