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

C/C++ API Documentation | 2025.1

# StrOps::Dump( const StrPtr & )

Pretty-print a string to `stdout`

Virtual? | No |
Class | `StrOps` |
Arguments | `StrPtr &o` | the string to dump
Returns | `void` |

## Notes

Unprintable characters are displayed as hexadecimal ASCII values, surrounded by greater-than/less-than characters.

## Example

Copy

    #include &lt;stdhdrs.h&gt;
    #include &lt;strbuf.h&gt;
    #include &lt;strops.h&gt;

    int main( int argc, char **argv )
    {
        StrBuf sb;
        sb.Set( "\tXyzzy" );

        StrOps::Dump( sb );

        return 0;
    }

Executing the preceding code produces the following output:

    <09>Xyzzy

Your search for returned results