H:/Class/11756/HLab/sphinxbase-0.4/src/libsphinxbase/util/case.c File Reference

#include "case.h"
#include <stdlib.h>
#include <assert.h>
#include <err.h>

Functions

void lcase (register char *cp)
void ucase (register char *cp)
int32 strcmp_nocase (const char *str1, const char *str2)
int32 strncmp_nocase (const char *str1, const char *str2, size_t len)

Function Documentation

void lcase ( register char *  cp  ) 
int32 strcmp_nocase ( const char *  str1,
const char *  str2 
)

(FIXME! The implementation is incorrect!) Case insensitive string compare. Return the usual -1, 0, +1, depending on str1 <, =, > str2 (case insensitive, of course).

Parameters:
str1 is the first string.
str2 is the second string.
int32 strncmp_nocase ( const char *  str1,
const char *  str2,
size_t  len 
)

Like strcmp_nocase() but with a maximum length.

void ucase ( register char *  cp  ) 
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
Generated on Sat May 8 14:21:41 2010 for HLab by  doxygen 1.6.3