g_Uptab -> g_UpperCase

This commit is contained in:
Glenn Maynard
2006-03-01 01:04:02 +00:00
parent a4b7b70d06
commit 3d86168ebb
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -1623,7 +1623,7 @@ RString Capitalize( const RString &s )
return s2; return s2;
} }
unsigned char g_Uptab[256] = unsigned char g_UpperCase[256] =
{ {
0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,0x0D,0x0E,0x0F, 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,0x0D,0x0E,0x0F,
0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1A,0x1B,0x1C,0x1D,0x1E,0x1F, 0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1A,0x1B,0x1C,0x1D,0x1E,0x1F,
+5 -5
View File
@@ -401,19 +401,19 @@ RString Capitalize( const RString &s );
#include <unistd.h> /* correct place with correct definitions */ #include <unistd.h> /* correct place with correct definitions */
#endif #endif
extern unsigned char g_Uptab[256]; extern unsigned char g_UpperCase[256];
/* ASCII-only case insensitivity. */ /* ASCII-only case insensitivity. */
struct char_traits_char_nocase: public char_traits<char> struct char_traits_char_nocase: public char_traits<char>
{ {
static inline bool eq( char c1, char c2 ) static inline bool eq( char c1, char c2 )
{ return g_Uptab[(unsigned char)c1] == g_Uptab[(unsigned char)c2]; } { return g_UpperCase[(unsigned char)c1] == g_UpperCase[(unsigned char)c2]; }
static inline bool ne( char c1, char c2 ) static inline bool ne( char c1, char c2 )
{ return g_Uptab[(unsigned char)c1] != g_Uptab[(unsigned char)c2]; } { return g_UpperCase[(unsigned char)c1] != g_UpperCase[(unsigned char)c2]; }
static inline bool lt( char c1, char c2 ) static inline bool lt( char c1, char c2 )
{ return g_Uptab[(unsigned char)c1] < g_Uptab[(unsigned char)c2]; } { return g_UpperCase[(unsigned char)c1] < g_UpperCase[(unsigned char)c2]; }
static int compare( const char* s1, const char* s2, size_t n ) static int compare( const char* s1, const char* s2, size_t n )
{ {
@@ -429,7 +429,7 @@ struct char_traits_char_nocase: public char_traits<char>
static inline char fasttoupper(char a) static inline char fasttoupper(char a)
{ {
return g_Uptab[(unsigned char)a]; return g_UpperCase[(unsigned char)a];
} }
static const char *find( const char* s, int n, char a ) static const char *find( const char* s, int n, char a )