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

RuleBasedNumberFormat & RuleBasedNumberFormat::operator= ( const RuleBasedNumberFormat rhs  ) 

Assignment operator

Parameters:
rhs the object to be copied from. ICU 2.6

Definition at line 821 of file rbnf.cpp.

References getRules(), lenient, locale, localizations, noParse, NULL, and U_ZERO_ERROR.

Referenced by RuleBasedNumberFormat().

{
    UErrorCode status = U_ZERO_ERROR;
    dispose();
    locale = rhs.locale;
    lenient = rhs.lenient;

    UnicodeString rules = rhs.getRules();
    UParseError perror;
    init(rules, rhs.localizations ? rhs.localizations->ref() : NULL, perror, status);

    //TODO: remove below when we fix the parse bug - See #6895 / #6896
    noParse = rhs.noParse;

    return *this;
}


Generated by  Doxygen 1.6.0   Back to index