Logo Search packages:      
Sourcecode: icu version File versions

DecimalFormat::DecimalFormat ( const UnicodeString pattern,
DecimalFormatSymbols symbolsToAdopt,
UNumberFormatStyle  style,
UErrorCode status 
)

This API is for ICU use only. Create a DecimalFormat from the given pattern, symbols, and style.

Parameters:
patterna non-localized pattern string
symbolsToAdoptthe set of symbols to be used. The caller should not delete this object after making this call.
stylestyle of decimal format
statusOutput param set to success/failure code. If the pattern is invalid this will be set to a failure code. ICU 4.2

Definition at line 306 of file decimfmt.cpp.

References construct(), DecimalFormat(), and init().

                                                 {
    init();
    fStyle = style;
    UParseError parseError;
    construct(status, parseError, &pattern, symbolsToAdopt);
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index