Home
last modified time | relevance | path

Searched refs:SimpleFormatter (Results 1 – 25 of 35) sorted by relevance

12

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DSimpleFormatterTest.java15 import com.ibm.icu.text.SimpleFormatter;
31 SimpleFormatter fmt = SimpleFormatter.compile("This doesn''t have templates '{0}"); in TestWithNoArguments()
70 SimpleFormatter.compile("{}"); in TestSyntaxErrors()
75 SimpleFormatter.compile("{12d"); in TestSyntaxErrors()
85 SimpleFormatter.compile("{0} meter").format("1")); in TestOneArgument()
90 SimpleFormatter fmt = SimpleFormatter.compile("a{20}c"); in TestBigArgument()
102 SimpleFormatter.compile( in TestGetTextWithNoArguments()
108 SimpleFormatter fmt = SimpleFormatter.compile( in TestTooFewArgumentValues()
134 SimpleFormatter fmt = SimpleFormatter.compile( in TestWithArguments()
159 SimpleFormatter fmt = SimpleFormatter.compile( in TestFormatUseAppendToAsArgument()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DSimpleFormatterTest.java16 import android.icu.text.SimpleFormatter;
32 SimpleFormatter fmt = SimpleFormatter.compile("This doesn''t have templates '{0}"); in TestWithNoArguments()
71 SimpleFormatter.compile("{}"); in TestSyntaxErrors()
76 SimpleFormatter.compile("{12d"); in TestSyntaxErrors()
86 SimpleFormatter.compile("{0} meter").format("1")); in TestOneArgument()
91 SimpleFormatter fmt = SimpleFormatter.compile("a{20}c"); in TestBigArgument()
103 SimpleFormatter.compile( in TestGetTextWithNoArguments()
109 SimpleFormatter fmt = SimpleFormatter.compile( in TestTooFewArgumentValues()
135 SimpleFormatter fmt = SimpleFormatter.compile( in TestWithArguments()
160 SimpleFormatter fmt = SimpleFormatter.compile( in TestFormatUseAppendToAsArgument()
[all …]
/external/icu/icu4c/source/common/unicode/
Dsimpleformatter.h54 class U_COMMON_API SimpleFormatter U_FINAL : public UMemory {
60 SimpleFormatter() : compiledPattern((UChar)0) {} in SimpleFormatter() function
71 SimpleFormatter(const UnicodeString& pattern, UErrorCode &errorCode) { in SimpleFormatter() function
89 SimpleFormatter(const UnicodeString& pattern, int32_t min, int32_t max, in SimpleFormatter() function
98 SimpleFormatter(const SimpleFormatter& other) in SimpleFormatter() function
105 SimpleFormatter &operator=(const SimpleFormatter& other);
111 ~SimpleFormatter();
/external/icu/icu4c/source/test/intltest/
Dsimpleformattertest.cpp69 SimpleFormatter fmt("This doesn''t have templates '{0}", status); in TestNoArguments()
92 SimpleFormatter fmt("{}", status); in TestSyntaxErrors()
101 SimpleFormatter fmt; in TestOneArgument()
114 SimpleFormatter s; in TestOneArgument()
123 SimpleFormatter r(fmt); in TestOneArgument()
134 SimpleFormatter fmt("a{20}c", status); in TestBigArgument()
152 SimpleFormatter fmt; in TestManyArguments()
196 SimpleFormatter s; in TestManyArguments()
211 SimpleFormatter r(fmt); in TestManyArguments()
249 SimpleFormatter fmt("{0} and {1}", status); in TestTooFewArgumentValues()
[all …]
/external/icu/icu4c/source/common/
Dsimpleformatter.cpp53 SimpleFormatter &SimpleFormatter::operator=(const SimpleFormatter& other) { in operator =()
61 SimpleFormatter::~SimpleFormatter() {} in ~SimpleFormatter()
63 UBool SimpleFormatter::applyPatternMinMaxArguments( in applyPatternMinMaxArguments()
158 UnicodeString& SimpleFormatter::format( in format()
165 UnicodeString& SimpleFormatter::format( in format()
173 UnicodeString& SimpleFormatter::format( in format()
182 UnicodeString& SimpleFormatter::formatAndAppend( in formatAndAppend()
199 UnicodeString &SimpleFormatter::formatAndReplace( in formatAndReplace()
248 UnicodeString SimpleFormatter::getTextWithNoArguments( in getTextWithNoArguments()
263 UnicodeString &SimpleFormatter::format( in format()
Dlistformatter.cpp33 SimpleFormatter twoPattern;
34 SimpleFormatter startPattern;
35 SimpleFormatter middlePattern;
36 SimpleFormatter endPattern;
313 const SimpleFormatter& pat, in joinStringsAndReplace()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DSimpleFormatter.java38 public final class SimpleFormatter { class
50 private SimpleFormatter(String compiledPattern) { in SimpleFormatter() method in SimpleFormatter
63 public static SimpleFormatter compile(CharSequence pattern) { in compile()
80 public static SimpleFormatter compileMinMaxArguments(CharSequence pattern, int min, int max) { in compileMinMaxArguments()
83 return new SimpleFormatter(compiledPattern); in compileMinMaxArguments()
DQuantityFormatter.java26 private final SimpleFormatter[] templates =
27 new SimpleFormatter[StandardPlural.COUNT];
46 templates[idx] = SimpleFormatter.compileMinMaxArguments(template, 0, 1); in addIfAbsent()
67 SimpleFormatter formatter = templates[p.ordinal()]; in format()
80 public SimpleFormatter getByVariant(CharSequence variant) { in getByVariant()
83 SimpleFormatter template = templates[idx]; in getByVariant()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DSimpleFormatter.java39 public final class SimpleFormatter { class
51 private SimpleFormatter(String compiledPattern) { in SimpleFormatter() method in SimpleFormatter
63 public static SimpleFormatter compile(CharSequence pattern) { in compile()
79 public static SimpleFormatter compileMinMaxArguments(CharSequence pattern, int min, int max) { in compileMinMaxArguments()
82 return new SimpleFormatter(compiledPattern); in compileMinMaxArguments()
DQuantityFormatter.java27 private final SimpleFormatter[] templates =
28 new SimpleFormatter[StandardPlural.COUNT];
47 templates[idx] = SimpleFormatter.compileMinMaxArguments(template, 0, 1); in addIfAbsent()
68 SimpleFormatter formatter = templates[p.ordinal()]; in format()
81 public SimpleFormatter getByVariant(CharSequence variant) { in getByVariant()
84 SimpleFormatter template = templates[idx]; in getByVariant()
/external/icu/icu4c/source/i18n/
Dquantityformatter.cpp42 formatters[i] = new SimpleFormatter(*other.formatters[i]); in QuantityFormatter()
57 formatters[i] = new SimpleFormatter(*other.formatters[i]); in operator =()
87 SimpleFormatter *newFmt = new SimpleFormatter(rawPattern, 0, 1, status); in addIfAbsent()
104 const SimpleFormatter *QuantityFormatter::getByVariant( in getByVariant()
108 const SimpleFormatter *pattern = formatters[pluralIndex]; in getByVariant()
127 const SimpleFormatter *pattern = formatters[p]; in format()
178 const SimpleFormatter &pattern, in format()
Dquantityformatter.h23 class SimpleFormatter; variable
90 const SimpleFormatter *getByVariant(const char *variant) const;
127 const SimpleFormatter &pattern,
134 SimpleFormatter *formatters[StandardPlural::COUNT];
Dmeasfmt.cpp112 SimpleFormatter *patterns[MEAS_UNIT_COUNT][WIDTH_INDEX_COUNT][PATTERN_COUNT];
114 SimpleFormatter perFormatters[WIDTH_INDEX_COUNT];
238 SimpleFormatter **patterns = &cacheData.patterns[unitIndex][width][0]; in setFormatterIfAbsent()
241 patterns[index] = new SimpleFormatter( in setFormatterIfAbsent()
959 const SimpleFormatter *formatter = getPluralFormatter(amtUnit, width, pluralForm, status); in formatMeasure()
1092 const SimpleFormatter *MeasureFormat::getFormatterOrNull( in getFormatterOrNull()
1095 SimpleFormatter *const (*unitPatterns)[MeasureFormatCacheData::PATTERN_COUNT] = in getFormatterOrNull()
1107 const SimpleFormatter *MeasureFormat::getFormatter( in getFormatter()
1113 const SimpleFormatter *pattern = getFormatterOrNull(unit, width, index); in getFormatter()
1120 const SimpleFormatter *MeasureFormat::getPluralFormatter( in getPluralFormatter()
[all …]
Dreldatefmt.cpp74 SimpleFormatter *relativeUnitsFormatters[UDAT_STYLE_COUNT]
80 const SimpleFormatter* getRelativeUnitFormatter(int32_t fStyle,
90 void adoptCombinedDateAndTime(SimpleFormatter *fmtToAdopt) { in adoptCombinedDateAndTime()
94 const SimpleFormatter *getCombinedDateAndTime() const { in getCombinedDateAndTime()
99 SimpleFormatter *combinedDateAndTime;
133 const SimpleFormatter* RelativeDateTimeCacheData::getRelativeUnitFormatter( in getRelativeUnitFormatter()
460 SimpleFormatter **patterns = in consumeTimeDetail()
465 patterns[pluralIndex] = new SimpleFormatter( in consumeTimeDetail()
659 new SimpleFormatter(dateTimePattern, 2, 2, status)); in createObject()
811 const SimpleFormatter* formatter = in format()
Dreldtfmt.h30 class SimpleFormatter; variable
255 SimpleFormatter *fCombinedFormat; // the {0} {1} format.
/external/icu/icu4c/source/i18n/unicode/
Dmeasfmt.h85 class SimpleFormatter; variable
347 const SimpleFormatter *getFormatterOrNull(
350 const SimpleFormatter *getFormatter(
354 const SimpleFormatter *getPluralFormatter(
358 const SimpleFormatter *getPerFormatter(
/external/testng/src/main/java/org/testng/log/
DTextFormatter.java4 import java.util.logging.SimpleFormatter;
15 public class TextFormatter extends SimpleFormatter {
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/
DSimpleFormatterTest.java24 import java.util.logging.SimpleFormatter;
33 SimpleFormatter sf;
44 sf = new SimpleFormatter(); in setUp()
DStreamHandlerTest.java39 import java.util.logging.SimpleFormatter;
104 assertTrue(h.getFormatter() instanceof SimpleFormatter); in testConstructor_NoParameter_NoProperties()
155 assertTrue(h.getFormatter() instanceof SimpleFormatter); in testConstructor_NoParameter_InvalidProperties()
399 new SimpleFormatter()); in testIsLoggable_NoFilter()
419 new SimpleFormatter()); in testIsLoggable_WithFilter()
440 new SimpleFormatter()); in testIsLoggable_Null()
546 new SimpleFormatter()); in testPublish_Null()
707 new ByteArrayOutputStream(), new SimpleFormatter()); in testSetOutputStream_null()
DHandlerTest.java33 import java.util.logging.SimpleFormatter;
223 Formatter f = new SimpleFormatter(); in testGetSetFormatter_Normal()
242 h.setFormatter(new SimpleFormatter()); in testGetSetFormatter_Null()
DMemoryHandlerTest.java34 import java.util.logging.SimpleFormatter;
194 assertTrue(handler.getFormatter() instanceof SimpleFormatter); in testMemoryHandlerInvalidProps()
244 assertTrue(handler.getFormatter() instanceof SimpleFormatter); in testMemoryHandlerDefaultValue()
DConsoleHandlerTest.java34 import java.util.logging.SimpleFormatter;
90 assertTrue(h.getFormatter() instanceof SimpleFormatter); in testConstructor_NoProperties()
139 assertTrue(h.getFormatter() instanceof SimpleFormatter); in testConstructor_InvalidProperties()
/external/caliper/caliper/src/main/java/com/google/caliper/config/
DLoggingConfigLoader.java36 import java.util.logging.SimpleFormatter;
99 fileHandler.setFormatter(new SimpleFormatter()); in maybeLoadDefaultLogConfiguration()
/external/caliper/caliper/src/test/java/com/google/caliper/config/
DLoggingConfigLoaderTest.java47 import java.util.logging.SimpleFormatter;
82 assertTrue(fileHandler.getFormatter() instanceof SimpleFormatter); in testLoadDefaultLogConfiguration()
/external/okhttp/okcurl/src/main/java/com/squareup/okhttp/curl/
DMain.java45 import java.util.logging.SimpleFormatter;
281 handler.setFormatter(new SimpleFormatter() {

12