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

void DateFormat::adoptNumberFormat ( NumberFormat formatToAdopt  )  [virtual, inherited]

Allows you to set the number formatter. The caller should not delete the NumberFormat object after it is adopted by this call.

formatToAdopt NumberFormat object to be adopted. ICU 2.0

Definition at line 430 of file datefmt.cpp.

References DateFormat::fNumberFormat, NumberFormat::setParseIntegerOnly(), and TRUE.

Referenced by DateFormat::setNumberFormat(), and NumberFormatRegressionTest::TestJ691().

    delete fNumberFormat;
    fNumberFormat = newNumberFormat;

Generated by  Doxygen 1.6.0   Back to index