[#BloombergLP-bdlde-QuotedPrintableDecoder-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlde.adoc[bdlde]::xref:BloombergLP/bdlde/QuotedPrintableDecoder.adoc[QuotedPrintableDecoder]::QuotedPrintableDecoder
:relfileprefix: ../../../
:mrdocs:

Create a Quoted&hyphen;Printable decoder in the initial state&period;

== Synopsis

Declared in `&lt;bdlde&lowbar;quotedprintabledecoder&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
QuotedPrintableDecoder(
    bool detectError,
    xref:BloombergLP/bdlde/QuotedPrintableDecoder/LineBreakMode-08.adoc[QuotedPrintableDecoder::LineBreakMode] lineBreakMode = QuotedPrintableDecoder&colon;&colon;e&lowbar;CRLF&lowbar;MODE);
----

== Description

Create a Quoted&hyphen;Printable decoder in the initial state, set to the strict or relaxed error&hyphen;reporting mode according to whether the specified `detectError` flag is `true` or `false`, respectively, and also configured to the specified `lineBreakMode`&period; The behavior is undefined unless `lineBreakMode` is either e&lowbar;CRLF&lowbar;MODE or e&lowbar;LF&lowbar;MODE&period; Note that the decoder reports errors in the strict mode and output offending characters in the relaxed mode&period; Hard line breaks (&grave;&bsol;r &grave;) are decoded to &grave;&bsol;r ` in e&lowbar;CRLF&lowbar;MODE (default) and to `
&grave; in e&lowbar;LF&lowbar;MODE&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *detectError*
| if `true`, report unrecognized encodings as errors (strict mode)&semi; otherwise pass them through (relaxed mode)
| *lineBreakMode*
| how hard line breaks (`&quot;rn&quot;`) are decoded (default `e&lowbar;CRLF&lowbar;MODE`)
|===


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