Lines Matching refs:fmt
69 SimpleFormatter fmt("This doesn''t have templates '{0}", status); in TestNoArguments() local
70 assertEquals("getArgumentLimit", 0, fmt.getArgumentLimit()); in TestNoArguments()
75 fmt.format("unused", appendTo, status)); in TestNoArguments()
81 fmt.formatAndAppend(NULL, 0, appendTo, offsets, 1, status)); in TestNoArguments()
86 fmt.formatAndReplace(NULL, 0, appendTo, NULL, 0, status)); in TestNoArguments()
92 SimpleFormatter fmt("{}", status); in TestSyntaxErrors() local
95 fmt.applyPattern("{12d", status); in TestSyntaxErrors()
101 SimpleFormatter fmt; in TestOneArgument() local
102 fmt.applyPattern("{0} meter", status); in TestOneArgument()
106 assertEquals("getArgumentLimit", 1, fmt.getArgumentLimit()); in TestOneArgument()
111 fmt.format("1", appendTo, status)); in TestOneArgument()
115 s = fmt; in TestOneArgument()
123 SimpleFormatter r(fmt); in TestOneArgument()
134 SimpleFormatter fmt("a{20}c", status); in TestBigArgument() local
138 assertEquals("{20} count", 21, fmt.getArgumentLimit()); in TestBigArgument()
146 assertEquals("{20}=b", "abc", fmt.formatAndAppend(values, 21, result, NULL, 0, status)); in TestBigArgument()
152 SimpleFormatter fmt; in TestManyArguments() local
153 fmt.applyPattern( in TestManyArguments()
158 assertEquals("getArgumentLimit", 6, fmt.getArgumentLimit()); in TestManyArguments()
169 fmt.formatAndAppend( in TestManyArguments()
186 fmt.formatAndAppend( in TestManyArguments()
197 s = fmt; in TestManyArguments()
211 SimpleFormatter r(fmt); in TestManyArguments()
249 SimpleFormatter fmt("{0} and {1}", status); in TestTooFewArgumentValues() local
254 fmt.format( in TestTooFewArgumentValues()
261 fmt.formatAndAppend( in TestTooFewArgumentValues()
268 fmt.formatAndReplace( in TestTooFewArgumentValues()
277 SimpleFormatter fmt("pickle", status); in TestBadArguments() local
281 fmt.formatAndAppend( in TestBadArguments()
283 fmt.formatAndReplace( in TestBadArguments()
289 fmt.formatAndAppend( in TestBadArguments()
297 fmt.formatAndAppend( in TestBadArguments()
316 fmt.formatAndReplace( in TestBadArguments()
324 fmt.formatAndReplace( in TestBadArguments()
333 SimpleFormatter fmt("{0} has no {1} arguments.", status); in TestTextWithNoArguments() local
335 "", " has no arguments.", fmt.getTextWithNoArguments()); in TestTextWithNoArguments()
340 SimpleFormatter fmt; in TestFormatReplaceNoOptimization() local
341 fmt.applyPattern("{2}, {0}, {1} and {3}", status); in TestFormatReplaceNoOptimization()
354 fmt.formatAndReplace( in TestFormatReplaceNoOptimization()
370 SimpleFormatter fmt; in TestFormatReplaceNoOptimizationLeadingText() local
371 fmt.applyPattern("boo {2}, {0}, {1} and {3}", status); in TestFormatReplaceNoOptimizationLeadingText()
384 fmt.formatAndReplace( in TestFormatReplaceNoOptimizationLeadingText()
400 SimpleFormatter fmt; in TestFormatReplaceOptimization() local
401 fmt.applyPattern("{2}, {0}, {1} and {3}", status); in TestFormatReplaceOptimization()
414 fmt.formatAndReplace( in TestFormatReplaceOptimization()
430 SimpleFormatter fmt; in TestFormatReplaceNoOptimizationLeadingArgumentUsedTwice() local
431 fmt.applyPattern("{2}, {0}, {1} and {3} {2}", status); in TestFormatReplaceNoOptimizationLeadingArgumentUsedTwice()
444 fmt.formatAndReplace( in TestFormatReplaceNoOptimizationLeadingArgumentUsedTwice()
460 SimpleFormatter fmt; in TestFormatReplaceOptimizationNoOffsets() local
461 fmt.applyPattern("{2}, {0}, {1} and {3}", status); in TestFormatReplaceOptimizationNoOffsets()
473 fmt.formatAndReplace( in TestFormatReplaceOptimizationNoOffsets()
485 SimpleFormatter fmt("Arguments {0} and {1}", status); in TestFormatReplaceNoOptimizationNoOffsets() local
492 fmt.formatAndReplace( in TestFormatReplaceNoOptimizationNoOffsets()