StrOps::Upper( StrBuf & )

Convert each character in a string (in place) to uppercase

Virtual?

No

 

Class

StrOps

 

Arguments

StrBuf &o

the string to convert to uppercase

Returns

void

 

Notes

This function modifies an original string in place by converting all lowercase characters to uppercase.

Example

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