Home
last modified time | relevance | path

Searched refs:selFmt (Results 1 – 5 of 5) sorted by relevance

/external/icu/icu4c/source/test/intltest/
Dselfmts.cpp95 SelectFormat* selFmt = new SelectFormat( SIMPLE_PATTERN , status); in selectFormatUnitTest() local
107 selFmt->applyPattern(checkSyntaxData[i], status); in selectFormatUnitTest()
115 selFmt->applyPattern("odd{foo} odd{bar} other{foobar}", status); in selectFormatUnitTest()
118 selFmt->format(UnicodeString("odd"), format_result, format_ignore, status); in selectFormatUnitTest()
121 selFmt->applyPattern("odd{foo} other{bar} other{foobar}", status); in selectFormatUnitTest()
122 selFmt->format(UnicodeString("other"), format_result, format_ignore, status); in selectFormatUnitTest()
125 delete selFmt; in selectFormatUnitTest()
126 selFmt = NULL; in selectFormatUnitTest()
130 selFmt = new SelectFormat( SIMPLE_PATTERN , status); in selectFormatUnitTest()
144 selFmt->applyPattern(patternTestData[i], status); in selectFormatUnitTest()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DSelectFormatAPITest.java33 SelectFormat selFmt = new SelectFormat(SIMPLE_PATTERN1); in TestConstructors() local
35 + "with argument constructor is null" , selFmt ); in TestConstructors()
67 SelectFormat selFmt = null; in TestApplyPatternToPattern() local
71 selFmt = new SelectFormat(SIMPLE_PATTERN1); in TestApplyPatternToPattern()
72 selFmt.applyPattern(pattern); in TestApplyPatternToPattern()
74 , pattern, selFmt.toPattern() ); in TestApplyPatternToPattern()
79 selFmt.applyPattern(brokenPattern); in TestApplyPatternToPattern()
90 SelectFormat selFmt = null; in TestToString() local
93 selFmt = new SelectFormat(SIMPLE_PATTERN1); in TestToString()
96 , expected, selFmt.toString() ); in TestToString()
[all …]
DSelectFormatUnitTest.java41 SelectFormat selFmt = new SelectFormat(SIMPLE_PATTERN); in TestPatternSyntax() local
44 selFmt.applyPattern(checkSyntaxData[i]); in TestPatternSyntax()
54 selFmt.applyPattern("odd{foo} odd{bar} other{foobar}"); in TestPatternSyntax()
55 … assertEquals("should use first occurrence of the 'odd' keyword", "foo", selFmt.format("odd")); in TestPatternSyntax()
56 selFmt.applyPattern("odd{foo} other{bar} other{foobar}"); in TestPatternSyntax()
57 … assertEquals("should use first occurrence of the 'other' keyword", "bar", selFmt.format("other")); in TestPatternSyntax()
79 SelectFormat selFmt = new SelectFormat(SIMPLE_PATTERN); in TestInvalidKeyword() local
82 selFmt.format( keywords[i]); in TestInvalidKeyword()
137 SelectFormat selFmt = new SelectFormat(SIMPLE_PATTERN); in TestApplyFormat() local
141 selFmt.applyPattern(patternTestData[i]); in TestApplyFormat()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DSelectFormatAPITest.java37 SelectFormat selFmt = new SelectFormat(SIMPLE_PATTERN1); in TestConstructors() local
39 + "with argument constructor is null" , selFmt ); in TestConstructors()
71 SelectFormat selFmt = null; in TestApplyPatternToPattern() local
75 selFmt = new SelectFormat(SIMPLE_PATTERN1); in TestApplyPatternToPattern()
76 selFmt.applyPattern(pattern); in TestApplyPatternToPattern()
78 , pattern, selFmt.toPattern() ); in TestApplyPatternToPattern()
83 selFmt.applyPattern(brokenPattern); in TestApplyPatternToPattern()
94 SelectFormat selFmt = null; in TestToString() local
97 selFmt = new SelectFormat(SIMPLE_PATTERN1); in TestToString()
100 , expected, selFmt.toString() ); in TestToString()
[all …]
DSelectFormatUnitTest.java45 SelectFormat selFmt = new SelectFormat(SIMPLE_PATTERN); in TestPatternSyntax() local
48 selFmt.applyPattern(checkSyntaxData[i]); in TestPatternSyntax()
58 selFmt.applyPattern("odd{foo} odd{bar} other{foobar}"); in TestPatternSyntax()
59 … assertEquals("should use first occurrence of the 'odd' keyword", "foo", selFmt.format("odd")); in TestPatternSyntax()
60 selFmt.applyPattern("odd{foo} other{bar} other{foobar}"); in TestPatternSyntax()
61 … assertEquals("should use first occurrence of the 'other' keyword", "bar", selFmt.format("other")); in TestPatternSyntax()
83 SelectFormat selFmt = new SelectFormat(SIMPLE_PATTERN); in TestInvalidKeyword() local
86 selFmt.format( keywords[i]); in TestInvalidKeyword()
141 SelectFormat selFmt = new SelectFormat(SIMPLE_PATTERN); in TestApplyFormat() local
145 selFmt.applyPattern(patternTestData[i]); in TestApplyFormat()
[all …]