Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

C/C++ API Documentation | 2025.2

# 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

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

Your search for returned results