BloombergLP::bdlde::Base64DecoderOptions::standard

Return standard Base64 decoder options as specified by RFC 4648.

Synopsis

Declared in <bdlde_base64decoderoptions.h>

static
Base64DecoderOptions
standard(
    IgnoreMode::Enum ignoreMode = IgnoreMode::e_IGNORE_NONE,
    bool padded = true);

Description

Return a Base64DecoderOptions object having the specified ignoreMode and padded, and the attribute alphabet == Base64Alphabet::e_BASIC. If padded is not specified, it defaults to true. If ignoreMode is not specified, it defaults to e_IGNORE_NOTHING. This conforms to RFC 4648 section 4.

Return Value

a Base64DecoderOptions object configured for standard decoding

Parameters

NameDescription
ignoreModewhich character types, if any, to ignore
paddedtrue if encoded input is padded with '='