text stringlengths 0 2.2M |
|---|
{ L_, 1439, "+23:59" },
|
};
|
const int NUM_DEFAULT_ZONE_DATA =
|
static_cast<int>(sizeof DEFAULT_ZONE_DATA / sizeof *DEFAULT_ZONE_DATA);
|
// *** Configuration Data ***
|
struct DefaultCnfgDataRow {
|
int d_line; // source line number
|
bool d_omitColon; // 'omitColonInZoneDesignator' attribute
|
int d_precision; // 'precision' "
|
bool d_useComma; // 'useCommaForDecimalSign' "
|
bool d_useZ; // 'useZAbbreviationForUtc' "
|
};
|
static
|
const DefaultCnfgDataRow DEFAULT_CNFG_DATA[] =
|
{
|
//LINE omit ':' precision use ',' use 'Z'
|
//---- -------- --------- ------- -------
|
{ L_, false, 3, false, false },
|
{ L_, false, 3, false, true },
|
{ L_, false, 3, true, false },
|
{ L_, false, 3, true, true },
|
{ L_, false, 6, false, false },
|
{ L_, false, 6, false, true },
|
{ L_, false, 6, true, false },
|
{ L_, false, 6, true, true },
|
{ L_, true, 3, false, false },
|
{ L_, true, 3, false, true },
|
{ L_, true, 3, true, false },
|
{ L_, true, 3, true, true },
|
{ L_, true, 6, false, false },
|
{ L_, true, 6, false, true },
|
{ L_, true, 6, true, false },
|
{ L_, true, 6, true, true },
|
// additional configurations
|
{ L_, false, 0, false, false },
|
{ L_, false, 1, false, false },
|
{ L_, false, 2, false, false },
|
{ L_, false, 4, false, false },
|
{ L_, false, 5, false, false }
|
};
|
const int NUM_DEFAULT_CNFG_DATA =
|
static_cast<int>(sizeof DEFAULT_CNFG_DATA / sizeof *DEFAULT_CNFG_DATA);
|
// Define BAD (invalid) DATA generally usable across 'parse' test cases.
|
// *** Bad 'Date' Data ***
|
struct BadDateDataRow {
|
int d_line; // source line number
|
const char *d_invalid; // test string
|
};
|
static
|
const BadDateDataRow BAD_DATE_DATA[] =
|
{
|
//LINE INPUT STRING
|
//---- -------------------------
|
{ L_, "" }, // length = 0
|
{ L_, "0" }, // length = 1
|
{ L_, "-" },
|
{ L_, "+" },
|
{ L_, "T" },
|
{ L_, "Z" },
|
{ L_, ":" },
|
{ L_, " " },
|
{ L_, "12" }, // length = 2
|
{ L_, "3T" },
|
{ L_, "4-" },
|
{ L_, "x1" },
|
{ L_, "T:" },
|
{ L_, "+:" },
|
{ L_, "999" }, // length = 3
|
{ L_, "9999" }, // length = 4
|
{ L_, "1-9-" },
|
{ L_, "4-5-6" }, // length = 5
|
{ L_, "+0130" },
|
{ L_, "1-01-1" }, // length = 6
|
{ L_, "01-1-1" },
|
{ L_, "1-1-01" },
|
{ L_, "02-02-2" }, // length = 7
|
{ L_, "03-3-03" },
|
{ L_, "4-04-04" },
|
{ L_, "05-05-05" }, // length = 8
|
{ L_, "005-05-5" },
|
{ L_, "006-6-06" },
|
{ L_, "0006-6-6" },
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.