Logo Search packages:      
Sourcecode: icu version File versions

void DecimalFormat::setNegativePrefix ( const UnicodeString newValue ) [virtual]

Set the negative prefix.

Parameters:
newValuethe new value of the the negative prefix to be set. Examples: -123, ($123) (with negative suffix), sFr-123 ICU 2.0

Definition at line 2773 of file decimfmt.cpp.

Referenced by SimpleDateFormat::parseInt(), IntlTestDecimalFormatAPI::testAPI(), and unum_setTextAttribute().

{
    fNegativePrefix = newValue;
    delete fNegPrefixPattern;
    fNegPrefixPattern = 0;
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index