Logo Search packages:      
Sourcecode: icu version File versions  Download package

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.

Parameters:
lenient True 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 DateFormatRegressionTest::Test4061287(), and NumberFormatRegressionTest::TestJ691().

{
    if (fCalendar != NULL) {
        fCalendar->setLenient(lenient);
    }
}


Generated by  Doxygen 1.6.0   Back to index