[#BloombergLP-bdlde-QuotedPrintableEncoder-2constructor-01] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlde.adoc[bdlde]::xref:BloombergLP/bdlde/QuotedPrintableEncoder.adoc[QuotedPrintableEncoder]::QuotedPrintableEncoder :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<bdlde_quotedprintableencoder.h>` Create a Quoted‐Printable encoder in the initial state, configured to accept hard line breaks based on the optionally specified `lineBreakMode`, and to insert soft line breaks when the line length exceeds the optionally specified `maxLineLength` (default is the RFC 2045 maximum 76). Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. The behavior is undefined unless `4 <= maxLineLength <= 76`. Note that e_CRLF_MODE passes `\r ` straight to output and converts ` `; e_LF_MODE passes ` ` and converts `r`; e_MIXED_MODE passes both `\r ` and ` `. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bdlde/QuotedPrintableEncoder/2constructor-0d.adoc[QuotedPrintableEncoder]( xref:BloombergLP/bdlde/QuotedPrintableEncoder/LineBreakMode-0d.adoc[LineBreakMode] lineBreakMode = e_CRLF_MODE, int maxLineLength = k_DEFAULT_MAX_LINELEN, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlde/QuotedPrintableEncoder/2constructor-0d.adoc[_» more..._]# Create a Quoted‐Printable encoder in the initial state, configured to convert to the form "=XX" any input character matching a printable or whitespace character in the specified `extraCharsToEncode` array (as opposed to the default setting of passing the input character straight to output), to accept hard linebreaks based on the optionally specified `lineBreakMode`, and to insert soft linebreaks when the line length exceeds the optionally specified `maxLineLength` (default is the RFC 2045 maximum 76). Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. The behavior is undefined unless `4 <= maxLineLength <= 76`. Note that e_CRLF_MODE passes `\r ` straight to output and converts ` `; e_LF_MODE passes ` ` and converts `r`; e_MIXED_MODE passes both `\r ` and ` `. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bdlde/QuotedPrintableEncoder/2constructor-00.adoc[QuotedPrintableEncoder]( char const* extraCharsToEncode, xref:BloombergLP/bdlde/QuotedPrintableEncoder/LineBreakMode-0d.adoc[LineBreakMode] lineBreakMode = e_CRLF_MODE, int maxLineLength = k_DEFAULT_MAX_LINELEN, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlde/QuotedPrintableEncoder/2constructor-00.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#