Lowercase / uppercase |
![]() |
|
|
|
|
|
This method will convert all uppercase letters in the string to lowercase (if any). MakeLower returns a reference to the object itself for convenience.
On Linux platforms, the library uses isalpha() / tolower() / toupper() from the C RTL when determining what is lowercase and what is uppercase. On Windows, the API functions CharLowerBuff / CharUpperBuff are used so the operation will be completed correctly for the current locale.
Example:
Str result (_T("AlpHAbet"));
printf("%s\n", (const STRCHAR*) result.MakeLower());
result.MakeUpper();
printf("%s\n", (const STRCHAR*) result);
|
|
|
|
|
Works exactly like MakeLower(), but converts all lowecase letters to uppercase.
See also: Trimming / case / miscellaneous