Home » U++ Library support » U++ Core » IsUpper bug?
IsUpper bug? [message #9543] |
Wed, 16 May 2007 09:00 |
|
I discovered that IsUpper for '_' return false. Because of that my function:
bool IsUpperString(const char *q)
{
while(*q)
if(!IsUpper(*q++))
return false;
return true;
}
did not work well for strings like NUMBER_10_AND_20 and I had to modify it to:
bool IsUpperString(const char *q)
{
while(*q)
{
if(*q != '_' && !IsUpper(*q))
return false;
q++;
}
return true;
}
|
|
|
Goto Forum:
Current Time: Sun Jun 09 05:41:04 CEST 2024
Total time taken to generate the page: 0.01372 seconds
|