Go to the documentation of this file.
73 #ifndef _LIBUTIL_CASE_H_
74 #define _LIBUTIL_CASE_H_
79 #include <sphinxbase/sphinxbase_export.h>
92 #define UPPER_CASE(c) ((((c) >= 'a') && ((c) <= 'z')) ? (c-32) : c)
97 #define LOWER_CASE(c) ((((c) >= 'A') && ((c) <= 'Z')) ? (c+32) : c)
105 void ucase(
char *str);
112 void lcase(
char *str);
128 int32
strncmp_nocase(
const char *str1,
const char *str2,
size_t len);
SPHINXBASE_EXPORT void ucase(char *str)
Convert str to all upper case.
Basic type definitions used in Sphinx.
SPHINXBASE_EXPORT int32 strcmp_nocase(const char *str1, const char *str2)
(FIXME! The implementation is incorrect!) Case insensitive string compare.
SPHINXBASE_EXPORT void lcase(char *str)
Convert str to all lower case.
SPHINXBASE_EXPORT int32 strncmp_nocase(const char *str1, const char *str2, size_t len)
Like strcmp_nocase() but with a maximum length.