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

UBool Formattable::isNumeric (  )  const

Returns TRUE if the data type of this Formattable object is kDouble, kLong, kInt64 or kDecimalNumber.

Returns:
TRUE if this is a pure numeric object ICU 3.0

Definition at line 373 of file fmtable.cpp.

References FALSE, kDouble, kInt64, kLong, and TRUE.

Referenced by NumberFormat::format(), and Measure::Measure().

                             {
    switch (fType) {
    case kDouble:
    case kLong:
    case kInt64:
        return TRUE;
    default:
        return FALSE;
    }
}


Generated by  Doxygen 1.6.0   Back to index