Provide an enumeration of the set of possible base64 ignore modes.
More...
Namespaces |
namespace | bdlde |
Detailed Description
- Outline
-
-
- Purpose:
- Provide an enumeration of the set of possible base64 ignore modes.
-
- Classes:
-
- See also:
- bdlde_base64decorderoptions, Component bdlde_base64decoder
-
- Description:
- This component provides a namespace for the
enum
type bdlde::Base64IgnoreMode::Enum
, which enumerates the set of possible ignore modes for the bdlde::Base64Decoder
.
-
- Enumerators:
Name Description
--------------- ---------------------------------------------------
e_IGNORE_NONE Any unrecognized character is an error
e_IGNORE_WHITESPACE Any unrecognized character other than whitespace is
an error
e_IGNORE_UNRECOGNIZED No unrecognized character is an error
-
- Usage:
- In this section we show intended use of this component.
-
- Example 1: Basic Syntax:
- The following snippets of code provide a simple illustration of
bdlde::Base64IgnoreMode
usage.
- First, we create variable of type
bdlde::Base64IgnoreMode::Enum
and initialize it with the enumerator values: Next, we store a pointer to their ASCII representation in variables of type const char *
: Now, we stream some Enum
s to ostream
s: Finally, we observe the output of the streaming: assert(ossNone.str() == "IGNORE_NONE");
assert(ossWhitespace.str() == "IGNORE_WHITESPACE");
assert(ossNone.str() == asciiNone);
assert(ossWhitespace.str() == asciiWhitespace);