Return URL‐safe Base64 decoder options as specified by RFC 4648.

Synopsis

Declared in <bdlde_base64decoderoptions.h>

static
Base64DecoderOptions
urlSafe(
    IgnoreMode::Enum ignoreMode = IgnoreMode::e_IGNORE_NONE,
    bool padded = false);

Description

Return a Base64DecoderOptions object having the attributes alphabet == Base64Alphabet::e_URL, isPadded == false and the specified ignoreMode. If ignoreMode is not specified, it defaults to e_IGNORE_NOTHING. This conforms to RFC 4648 section 5.

Return Value

a Base64DecoderOptions object configured for URL‐safe decoding

Parameters

Name

Description

ignoreMode

which character types, if any, to ignore

padded

true if encoded input is padded with '='

Created with MrDocs