Searched refs:selFmt (Results 1 – 5 of 5) sorted by relevance
/external/icu/icu4c/source/test/intltest/ |
D | selfmts.cpp | 102 SelectFormat* selFmt = new SelectFormat( SIMPLE_PATTERN , status); in selectFormatUnitTest() local 114 selFmt->applyPattern(checkSyntaxData[i], status); in selectFormatUnitTest() 122 selFmt->applyPattern("odd{foo} odd{bar} other{foobar}", status); in selectFormatUnitTest() 125 selFmt->format(UnicodeString("odd"), format_result, format_ignore, status); in selectFormatUnitTest() 128 selFmt->applyPattern("odd{foo} other{bar} other{foobar}", status); in selectFormatUnitTest() 129 selFmt->format(UnicodeString("other"), format_result, format_ignore, status); in selectFormatUnitTest() 132 delete selFmt; in selectFormatUnitTest() 133 selFmt = NULL; in selectFormatUnitTest() 137 selFmt = new SelectFormat( SIMPLE_PATTERN , status); in selectFormatUnitTest() 151 selFmt->applyPattern(patternTestData[i], status); in selectFormatUnitTest() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | SelectFormatAPITest.java | 37 SelectFormat selFmt = new SelectFormat(SIMPLE_PATTERN1); in TestConstructors() local 39 + "with argument constructor is null" , selFmt ); in TestConstructors() 73 SelectFormat selFmt = null; in TestApplyPatternToPattern() local 77 selFmt = new SelectFormat(SIMPLE_PATTERN1); in TestApplyPatternToPattern() 78 selFmt.applyPattern(pattern); in TestApplyPatternToPattern() 80 , pattern, selFmt.toPattern() ); in TestApplyPatternToPattern() 85 selFmt.applyPattern(brokenPattern); in TestApplyPatternToPattern() 97 SelectFormat selFmt = null; in TestToString() local 100 selFmt = new SelectFormat(SIMPLE_PATTERN1); in TestToString() 103 , expected, selFmt.toString() ); in TestToString() [all …]
|
D | SelectFormatUnitTest.java | 45 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() 84 SelectFormat selFmt = new SelectFormat(SIMPLE_PATTERN); in TestInvalidKeyword() local 87 selFmt.format( keywords[i]); in TestInvalidKeyword() 143 SelectFormat selFmt = new SelectFormat(SIMPLE_PATTERN); in TestApplyFormat() local 147 selFmt.applyPattern(patternTestData[i]); in TestApplyFormat() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | SelectFormatAPITest.java | 40 SelectFormat selFmt = new SelectFormat(SIMPLE_PATTERN1); in TestConstructors() local 42 + "with argument constructor is null" , selFmt ); in TestConstructors() 76 SelectFormat selFmt = null; in TestApplyPatternToPattern() local 80 selFmt = new SelectFormat(SIMPLE_PATTERN1); in TestApplyPatternToPattern() 81 selFmt.applyPattern(pattern); in TestApplyPatternToPattern() 83 , pattern, selFmt.toPattern() ); in TestApplyPatternToPattern() 88 selFmt.applyPattern(brokenPattern); in TestApplyPatternToPattern() 100 SelectFormat selFmt = null; in TestToString() local 103 selFmt = new SelectFormat(SIMPLE_PATTERN1); in TestToString() 106 , expected, selFmt.toString() ); in TestToString() [all …]
|
D | SelectFormatUnitTest.java | 48 SelectFormat selFmt = new SelectFormat(SIMPLE_PATTERN); in TestPatternSyntax() local 51 selFmt.applyPattern(checkSyntaxData[i]); in TestPatternSyntax() 61 selFmt.applyPattern("odd{foo} odd{bar} other{foobar}"); in TestPatternSyntax() 62 … assertEquals("should use first occurrence of the 'odd' keyword", "foo", selFmt.format("odd")); in TestPatternSyntax() 63 selFmt.applyPattern("odd{foo} other{bar} other{foobar}"); in TestPatternSyntax() 64 … assertEquals("should use first occurrence of the 'other' keyword", "bar", selFmt.format("other")); in TestPatternSyntax() 87 SelectFormat selFmt = new SelectFormat(SIMPLE_PATTERN); in TestInvalidKeyword() local 90 selFmt.format( keywords[i]); in TestInvalidKeyword() 146 SelectFormat selFmt = new SelectFormat(SIMPLE_PATTERN); in TestApplyFormat() local 150 selFmt.applyPattern(patternTestData[i]); in TestApplyFormat() [all …]
|