BloombergLP::bdlt::DateFormatter::parseNextSpecifier

Parse the next recognized date format specifier from *specInOut.

Synopsis

Declared in <bdlt_dateformatter.h>

constexpr
bool
parseNextSpecifier(bsl::basic_string_view<t_CHAR>* specInOut);

Description

If the first character of the specified *specInOut is recognized by this specifier formatter, parse it, remove it from *specInOut, and return true, otherwise return false with no modification to *specInOut. The behavior is undefined if *specInOut is empty.

Return Value

true if a specifier was consumed

Parameters

NameDescription
specInOutremaining format specification