#include <bdlde_base64encoderoptions.h>
This class stores the configuration of a Base64Encoder.
See bdlde_base64encoderoptions
◆ anonymous enum
| Enumerator |
|---|
| k_MIME_MAX_LINE_LENGTH | |
◆ Base64EncoderOptions()
◆ ~Base64EncoderOptions()
| bdlde::Base64EncoderOptions::~Base64EncoderOptions |
( |
| ) |
|
|
default |
◆ alphabet()
◆ custom()
Return a Base64EncoderOptions object having the specified maxLineLength, alphabet, andisPadded' attribute values. The behavior is unless 0 <= maxLineLength and 'alphabet is a defined value of Base64Alphabet::Enum.
◆ isPadded()
| bool bdlde::Base64EncoderOptions::isPadded |
( |
| ) |
const |
|
inline |
◆ maxLineLength()
| int bdlde::Base64EncoderOptions::maxLineLength |
( |
| ) |
const |
|
inline |
◆ mime()
◆ operator=()
◆ print()
| bsl::ostream & bdlde::Base64EncoderOptions::print |
( |
bsl::ostream & |
stream, |
|
|
int |
level = 0, |
|
|
int |
spacesPerLevel = 4 |
|
) |
| const |
Format this object to the specified output stream at the optionally specified indentation level and return a reference to the modifiable stream. If level is specified, optionally specify spacesPerLevel, the number of spaces per indentation level for this and all of its nested objects. Each line is indented by the absolute value of level * spacesPerLevel. If level is negative, suppress indentation of the first line. If spacesPerLevel is negative, suppress line breaks and format the entire output on one line. If stream is initially invalid, this operation has no effect. Note that a trailing newline is provided in multiline mode only.
◆ setAlphabet()
Set the alphabet attribute to the specified value. The behavior is undefined unless value is either e_BASIC or e_UTL.
◆ setIsPadded()
| void bdlde::Base64EncoderOptions::setIsPadded |
( |
bool |
value | ) |
|
|
inline |
◆ setMaxLineLength()
| void bdlde::Base64EncoderOptions::setMaxLineLength |
( |
int |
value | ) |
|
|
inline |
Set the maxLineLength attribute to the specified value. The behavior is undefined unless 0 <= value.
◆ standard()
Return a Base64EncoderOptions object having the attributes maxLineLength == 0, alphabet == Base64Alphabet::e_BASIC, and isPadded == false. If padded is not specified, it defaults to true. This conforms to RFC 4648 section 4.
◆ urlSafe()
Return a Base64EncoderOptions object having the attributes maxLineLength == 0, alphabet == Base64Alphabet::e_URL, and the specified padded. If padded is not specified, it defaults to false. This conforms to RFC 4648 section 5.
The documentation for this class was generated from the following file: