Logo Search packages:      
Sourcecode: icu version File versions

void DateFormat::setLenient ( UBool  lenient ) [virtual, inherited]

Specify whether or not date/time parsing is to be lenient. With lenient parsing, the parser may use heuristics to interpret inputs that do not precisely match this object's format. With strict parsing, inputs must match this object's format.

lenientTrue specifies date/time interpretation to be lenient.
See also:
Calendar::setLenient ICU 2.0

Definition at line 490 of file datefmt.cpp.

References DateFormat::fCalendar, NULL, and Calendar::setLenient().

Referenced by initGMTFormatters(), DateFormatRegressionTest::Test4061287(), IntlTestDateFormatAPI::testAPI(), NumberFormatRegressionTest::TestJ691(), and DateFormatTest::TestNumberAsStringParsing().

    if (fCalendar != NULL) {

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index