Go to the documentation of this file.
42 #ifndef __SB_STRFUNCS_H__
43 #define __SB_STRFUNCS_H__
48 #include <sphinxbase/sphinxbase_export.h>
93 double atof_c(
char const *str);
SPHINXBASE_EXPORT char * string_trim(char *string, enum string_edge_e which)
Remove whitespace from a string, modifying it in-place.
@ STRING_END
End of string.
Basic type definitions used in Sphinx.
@ STRING_BOTH
Both ends of string.
SPHINXBASE_EXPORT char * string_join(const char *base,...)
Concatenate a NULL-terminated argument list of strings, returning a newly allocated string.
@ STRING_START
Beginning of string.
SPHINXBASE_EXPORT int32 nextword(char *line, const char *delim, char **word, char *delimfound)
Yet another attempt at a clean "next-word-in-string" function.
SPHINXBASE_EXPORT int32 str2words(char *line, char **wptr, int32 n_wptr)
Convert a line to an array of "words", based on whitespace separators.
string_edge_e
Which end of a string to operate on for string_trim().
SPHINXBASE_EXPORT double atof_c(char const *str)
Locale independent version of atof().