[NOHEADER] | |
| long | str2long (const char *str, bool *ok) |
| Convert a string to numeric value. | |
| double | str2float (const char *str, bool *ok) |
| long | str2long (std::string *str, bool *ok) |
| double | str2float (std::string *str, bool *ok) |
Functions | |
| bool | read_line (std::string *str, FILE *file, bool do_chomp) |
| Read a line from a file. | |
| bool | read_string (std::string *str, size_t length, FILE *file) |
| Read a string of given length from a file. | |
| void | chomp (std::string *str) |
| Remove the possible trailing newline from a string. | |
| void | clean (std::string *str, const char *chars) |
| Remove leading and trailing characters from a string. | |
| void | split (const std::string *str, const char *delims, bool group, std::vector< std::string > *strings, int fields) |
| Split a string to fields. | |
|
||||||||||||
|
Remove leading and trailing characters from a string.
|
|
||||||||||||||||
|
Read a line from a file.
|
|
||||||||||||||||
|
Read a string of given length from a file.
|
|
||||||||||||||||||||||||
|
Split a string to fields.
If
|
1.3.4