#include <dsutil.h>
Functions | |
unsigned long | dsAtoul (char *src) |
unsigned long | dsAtoul (istream &is) |
unsigned long | dsAtoul (istream &is, int n) |
void | size_strcpy (char *dest, const char *src, int size) |
void | size_strcpy (char *dest, const char *src, int size, char *file, int line) |
char * | ds_strndup (const char *s, int len) |
char * | ds_strdup (const char *s) |
char * | ds_strnchr (char *s, char c, int len) |
char * | ds_zalloc (size_t size) |
char * | trim (char *src) |
char * | unsplit (char delem,...) |
int | split (char delem, char *str,...) |
int | split (char delem, char *str, int nf,...) |
|
return dynamic copy of string s no strlen calls inside |
|
search character c in substring of s of length len usable for mmap |
|
return dynamic copy of substring of string s of length len. if len is greater than length of s return s no strlen calls inside, so it is safe to use this function with mmap() |
|
Allocate buffer and fill it by 0 |
|
This function convert first n character os stream src to unsigned long if read character is not numeric throws exception
|
|
|
|
This function convert decimal ascii src to unsigned long if first passed character is not numeric throws exception
|
|
|
|
copy string form src to dest. if length of src greater than size AutoStrException thrown |
|
Same as above, but number of fields to extract can be specified |
|
split string into dinamicaly allocated strings by delem. |
|
remove leading and trailing spaces in-place |
|
|