Logo Search packages:      
Sourcecode: icu version File versions

int32_t DecimalFormat::skipPadding ( const UnicodeString text,
int32_t  position 
) const [private]

Starting at position, advance past a run of pad characters, if any. Return the index of the first character after position that is not a pad character. Result is >= position.

Definition at line 2235 of file decimfmt.cpp.

References UnicodeString::char32At(), UnicodeString::length(), and U16_LENGTH.

Referenced by parse(), and subparse().

                                                                                    {
    int32_t padLen = U16_LENGTH(fPad);
    while (position < text.length() &&
           text.char32At(position) == fPad) {
        position += padLen;
    }
    return position;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index