const SimpleFormatter *MeasureFormat::getPluralFormatter( const MeasureUnit &unit, UMeasureFormatWidth width, int32_t index, UErrorCode &errorCode) const { if (U_FAILURE(errorCode)) { return NULL; } if (index != StandardPlural::OTHER) { const SimpleFormatter *pattern = getFormatterOrNull(unit, width, index); if (pattern != NULL) { return pattern; } } return getFormatter(unit, width, StandardPlural::OTHER, errorCode); }
//############################################################################## //# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # //############################################################################## void xLogHandlerFile::publish(xLogRecord& record) { if(record.getLevel() <= getLogLevel()) m_out->write(getFormatter().format(record)); }
int DateTimeFormat::StyleFormatter::parseInto(DateTimeParserBucket *bucket, string text, int position) { DateTimeParser p = getFormatter(bucket->getLocale())->getParser(); return p.parseInto(bucket, text, position); }
void DateTimeFormat::StyleFormatter::printTo(stringstream &out, ReadablePartial *partial, Locale *locale) { DateTimePrinter *p = getFormatter(locale)->getPrinter(); p->printTo(out, partial, locale); }
void DateTimeFormat::StyleFormatter::printTo(stringstream &out, int64_t instant, Chronology *chrono, int displayOffset, DateTimeZone *displayZone, Locale *locale) { DateTimePrinter *p = getFormatter(locale)->getPrinter(); p->printTo(out, instant, chrono, displayOffset, displayZone, locale); }