parseRelaxed overloads

Synopses

Declared in <bdlt_iso8601util.h>

Parse a relaxed ISO 8601 string as a Datetime.

static
int
parseRelaxed(
    Datetime* result,
    std::string_view const& string);

Parse a relaxed ISO 8601 string as Datetime or DatetimeTz.

static
int
parseRelaxed(
    DatetimeOrDatetimeTz* result,
    std::string_view const& string);

Parse a relaxed ISO 8601 string as a DatetimeTz.

static
int
parseRelaxed(
    DatetimeTz* result,
    std::string_view const& string);

Parse the first length characters of a relaxed ISO 8601 string as a Datetime.

static
int
parseRelaxed(
    Datetime* result,
    char const* string,
    ssize_t length);

Parse the first length characters of a relaxed ISO 8601 string as Datetime or DatetimeTz.

static
int
parseRelaxed(
    DatetimeOrDatetimeTz* result,
    char const* string,
    ssize_t length);

Parse the first length characters of a relaxed ISO 8601 string as a DatetimeTz.

static
int
parseRelaxed(
    DatetimeTz* result,
    char const* string,
    ssize_t length);

Return Value

0 on success, and a non‐zero value otherwise

Parameters

Name

Description

result

receives the parsed Datetime

string

ISO 8601 text to parse

length

number of characters to parse

Created with MrDocs