StrOps::Lower( StrBuf & )

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

Virtual?

No

 

Class

StrOps

 

Arguments

StrBuf &o

the string to convert to lowercase

Returns

void

 

Notes

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

Example

StrBuf o = StrBuf();
o.Set( "xYzZy" );

printf( "Before: %s\n", o );
StrOps::Lower( o );
printf( "After:  %s\n", o );

return 0;

Executing the preceding code produces the following output:

% a.out
Before: xYzZy
After:  xyzzy