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

#include <stdhdrs.h>
#include <strbuf.h>
#include <strops.h>

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