text
stringlengths
0
2.2M
0 == Util::parseDefault(&decoded,
ENCODED.data(),
intLength(ENCODED)));
ASSERTV(LINE, ENCODED, IN_DATETZ, decoded,
IN_DATETZ == decoded);
}
{
balxml::EncoderOptions options;
options.setUseZAbbreviationForUtc(true);
bsl::ostringstream ss;
Print::printDefault(ss, IN_DATETZ, &options);
ASSERTV(LINE, ss.good());
const bsl::string ENCODED(ss.str());
bdlt::DateTz decoded;
ASSERTV(LINE, ENCODED,
0 == Util::parseDefault(&decoded,
ENCODED.data(),
intLength(ENCODED)));
ASSERTV(LINE, ENCODED, IN_DATETZ, decoded,
IN_DATETZ == decoded);
}
{
bsl::ostringstream ss;
Print::printDefault(ss, IN_TIME);
ASSERTV(LINE, ss.good());
const bsl::string ENCODED(ss.str());
bdlt::Time decoded;
ASSERTV(LINE, ENCODED,
0 == Util::parseDefault(&decoded,
ENCODED.data(),
intLength(ENCODED)));
ASSERTV(LINE, ENCODED, IN_TIME, decoded,
IN_TIME == decoded);
}
{
bsl::ostringstream ss;
Print::printDefault(ss, IN_TIMETZ);
ASSERTV(LINE, ss.good());
const bsl::string ENCODED(ss.str());
bdlt::TimeTz decoded;
ASSERTV(LINE, ENCODED,
0 == Util::parseDefault(&decoded,
ENCODED.data(),
intLength(ENCODED)));
ASSERTV(LINE, ENCODED, IN_TIMETZ, decoded,
IN_TIMETZ == decoded);
}
{
balxml::EncoderOptions options;
options.setUseZAbbreviationForUtc(true);
bsl::ostringstream ss;
Print::printDefault(ss, IN_TIMETZ, &options);
ASSERTV(LINE, ss.good());
const bsl::string ENCODED(ss.str());
bdlt::TimeTz decoded;
ASSERTV(LINE, ENCODED,
0 == Util::parseDefault(&decoded,
ENCODED.data(),
intLength(ENCODED)));
ASSERTV(LINE, ENCODED, IN_TIMETZ, decoded,
IN_TIMETZ == decoded);
}
{
bsl::ostringstream ss;
Print::printDefault(ss, IN_DATETIME);
ASSERTV(LINE, ss.good());
const bsl::string ENCODED(ss.str());
bdlt::Datetime decoded;
ASSERTV(LINE, ENCODED,
0 == Util::parseDefault(&decoded,
ENCODED.data(),
intLength(ENCODED)));
ASSERTV(LINE, ENCODED, IN_DATETIME, decoded,
IN_DATETIME == decoded);
}
{
bsl::ostringstream ss;
Print::printDefault(ss, IN_DATETIMETZ);
ASSERTV(LINE, ss.good());
const bsl::string ENCODED(ss.str());
bdlt::DatetimeTz decoded;
ASSERTV(LINE, ENCODED,
0 == Util::parseDefault(&decoded,
ENCODED.data(),
intLength(ENCODED)));
ASSERTV(LINE, ENCODED, IN_DATETIMETZ, decoded,