StrOps::Upper( StrBuf & )
Convert each character in a string (in place) to uppercase
Virtual? |
No |
|
Class |
||
Arguments |
|
the string to convert to uppercase |
Returns |
|
Notes
This function modifies an original string in place by converting all lowercase characters to uppercase.
Example
Copy
StrBuf o = StrBuf();
o.Set( "xYzZy" );
printf( "Before: %s\n", o );
StrOps::Upper( o );
printf( "After: %s\n", o );
return 0;
Executing the preceding code produces the following output:
% a.out Before: xYzZy After: XYZZY