StrOps::Dump( const StrPtr & )
Pretty-print a string to stdout
Virtual? |
No |
|
Class |
||
Arguments |
|
the string to dump |
Returns |
|
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