[#BloombergLP-bdlb-Print]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::Print
:relfileprefix: ../../
:mrdocs:

Provide a namespace for the interface to a suite of procedural stream operations&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;print&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct Print;
----

== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlb/Print/hexDump-09.adoc[`hexDump`] 
| `hexDump` overloads
| xref:BloombergLP/bdlb/Print/indent.adoc[`indent`] 
| Emit to the specified output `stream` the number of spaces (` `) equal to the absolute value of the product of the specified `level` and `spacesPerLevel` or, if `level` is negative, nothing at all&period; Return a reference providing modifiable access to `stream`&period; The behavior is undefined unless the absolute value of the product of the specified `level` and `spacesPerLevel` is representable as `int`&period;
| xref:BloombergLP/bdlb/Print/newlineAndIndent.adoc[`newlineAndIndent`] 
| Emit to the specified `stream` a newline (&grave;
&grave;) followed by the number of spaces (` `) equal to the absolute value of the product of the specified `level` and `spacesPerLevel` or, if `spacesPerLevel` is negative, emit a single space (and _no_ newline)&period; Return a reference providing modifiable access to `stream`&period; The behavior is undefined unless the absolute value of the product of the specified `level` and `spacesPerLevel` is representable as `int`&period;
| xref:BloombergLP/bdlb/Print/printPtr.adoc[`printPtr`] 
| Print to the specified `stream` the specified pointer `value` in a standard format&period; The output is in hexadecimal format with a maximum length of `2 &ast; sizeof(void &ast;)`&period; The output does not have leading zeros and is not preceded by `0x`&period; The hexadecimal digits (`a` to `f`, inclusive) are expressed in lower case&period;
| xref:BloombergLP/bdlb/Print/printString.adoc[`printString`] 
| Print to the specified `stream` the specified `string` of the specified `length` and return a reference providing modifiable access to `stream`&period; If the optionally specified `escapeBackSlash` flag is `true`, then all occurrences of the backslash character (&apos;&apos;) in the `string` are escaped (i&period;e&period;, expanded to &quot;&bsol;&quot;) when written to the `stream`&period; Note that non&hyphen;printable characters in `string` will be printed in their hexadecimal representation (&apos;xHH&apos;)&period; If `stream` is not valid on entry, this operation has no effect&period; The behavior is undefined unless `0 &lt;&equals; length`&period;
| xref:BloombergLP/bdlb/Print/singleLineHexDump-05.adoc[`singleLineHexDump`] 
| `singleLineHexDump` overloads
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
