FOX/ObjCryst++  1.10.X (development)
ci_string.h
1 #ifndef _CI_STRING_H
2 #define _CI_STRING_H
3 
4 #include <string>
10 struct ci_char_traits : public std::char_traits<char>
11 {
12  static bool eq( char c1, char c2 );
13 
14  static bool ne( char c1, char c2 );
15 
16  static bool lt( char c1, char c2 );
17 
18  static int compare(const char* s1,const char* s2,size_t n );
19 
20  static const char* find( const char* s, int n, char a );
21 };
22 
23 typedef std::basic_string<char, ci_char_traits> ci_string;
24 
25 #endif
Case-insensitive string class From: Guru of the Week #29 e.g.
Definition: ci_string.h:10