text stringlengths 0 2.2M |
|---|
// [ 6] ostream generate(ostream&, const TimeTz&, const Config&);
|
// [ 7] ostream generate(ostream&, const DatetimeTz&);
|
// [ 7] ostream generate(ostream&, const DatetimeTz&, const Config&);
|
// [ 1] int generateRaw(char *, const TimeInterval&);
|
// [ 1] int generateRaw(char *, const TimeInterval&, const Config&);
|
// [ 2] int generateRaw(char *, const Date&);
|
// [ 2] int generateRaw(char *, const Date&, const Config&);
|
// [ 3] int generateRaw(char *, const Time&);
|
// [ 3] int generateRaw(char *, const Time&, const Config&);
|
// [ 4] int generateRaw(char *, const Datetime&);
|
// [ 4] int generateRaw(char *, const Datetime&, const Config&);
|
// [ 5] int generateRaw(char *, const DateTz&);
|
// [ 5] int generateRaw(char *, const DateTz&, const Config&);
|
// [ 6] int generateRaw(char *, const TimeTz&);
|
// [ 6] int generateRaw(char *, const TimeTz&, const Config&);
|
// [ 7] int generateRaw(char *, const DatetimeTz&);
|
// [ 7] int generateRaw(char *, const DatetimeTz&, const Config&);
|
// [ 8] int parse(TimeInterval *, const char *, int);
|
// [ 9] int parse(Date *, const char *, int);
|
// [10] int parse(Time *, const char *, int);
|
// [11] int parse(Datetime *, const char *, int);
|
// [ 9] int parse(DateTz *, const char *, int);
|
// [10] int parse(TimeTz *, const char *, int);
|
// [11] int parse(DatetimeTz *, const char *, int);
|
// [ 8] int parse(TimeInterval *result, const StringRef& string);
|
// [ 9] int parse(Date *result, const StringRef& string);
|
// [10] int parse(Time *result, const StringRef& string);
|
// [11] int parse(Datetime *result, const StringRef& string);
|
// [ 9] int parse(DateTz *result, const StringRef& string);
|
// [10] int parse(TimeTz *result, const StringRef& string);
|
// [11] int parse(DatetimeTz *result, const StringRef& string);
|
#ifndef BDE_OMIT_INTERNAL_DEPRECATED
|
// [ 2] int generate(char *, const Date&, int);
|
// [ 3] int generate(char *, const Time&, int);
|
// [ 4] int generate(char *, const Datetime&, int);
|
// [ 5] int generate(char *, const DateTz&, int);
|
// [ 6] int generate(char *, const TimeTz&, int);
|
// [ 7] int generate(char *, const DatetimeTz&, int);
|
// [ 5] int generate(char *, const DateTz&, int, bool useZ);
|
// [ 6] int generate(char *, const TimeTz&, int, bool useZ);
|
// [ 7] int generate(char *, const DatetimeTz&, int, bool useZ);
|
// [ 5] ostream generate(ostream&, const DateTz&, bool useZ);
|
// [ 6] ostream generate(ostream&, const TimeTz&, bool useZ);
|
// [ 7] ostream generate(ostream&, const DatetimeTz&, bool useZ);
|
// [ 5] int generateRaw(char *, const DateTz&, bool useZ);
|
// [ 6] int generateRaw(char *, const TimeTz&, bool useZ);
|
// [ 7] int generateRaw(char *, const DatetimeTz&, bool useZ);
|
#endif // BDE_OMIT_INTERNAL_DEPRECATED
|
//-----------------------------------------------------------------------------
|
// [12] USAGE EXAMPLE
|
//-----------------------------------------------------------------------------
|
// ============================================================================
|
// STANDARD BDE ASSERT TEST FUNCTION
|
// ----------------------------------------------------------------------------
|
namespace {
|
int testStatus = 0;
|
void aSsErT(bool condition, const char *message, int line)
|
{
|
if (condition) {
|
cout << "Error " __FILE__ "(" << line << "): " << message
|
<< " (failed)" << endl;
|
if (0 <= testStatus && testStatus <= 100) {
|
++testStatus;
|
}
|
}
|
}
|
} // close unnamed namespace
|
// ============================================================================
|
// STANDARD BDE TEST DRIVER MACRO ABBREVIATIONS
|
// ----------------------------------------------------------------------------
|
#define ASSERT BSLIM_TESTUTIL_ASSERT
|
#define ASSERTV BSLIM_TESTUTIL_ASSERTV
|
#define LOOP_ASSERT BSLIM_TESTUTIL_LOOP_ASSERT
|
#define LOOP0_ASSERT BSLIM_TESTUTIL_LOOP0_ASSERT
|
#define LOOP1_ASSERT BSLIM_TESTUTIL_LOOP1_ASSERT
|
#define LOOP2_ASSERT BSLIM_TESTUTIL_LOOP2_ASSERT
|
#define LOOP3_ASSERT BSLIM_TESTUTIL_LOOP3_ASSERT
|
#define LOOP4_ASSERT BSLIM_TESTUTIL_LOOP4_ASSERT
|
#define LOOP5_ASSERT BSLIM_TESTUTIL_LOOP5_ASSERT
|
#define LOOP6_ASSERT BSLIM_TESTUTIL_LOOP6_ASSERT
|
#define Q BSLIM_TESTUTIL_Q // Quote identifier literally.
|
#define P BSLIM_TESTUTIL_P // Print identifier and value.
|
#define P_ BSLIM_TESTUTIL_P_ // P(X) without '\n'.
|
#define T_ BSLIM_TESTUTIL_T_ // Print a tab (w/o newline).
|
#define L_ BSLIM_TESTUTIL_L_ // current Line number
|
// ============================================================================
|
// NEGATIVE-TEST MACRO ABBREVIATIONS
|
// ----------------------------------------------------------------------------
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.