Lines Matching refs:pattern
20 u_printf(" Use DateTimePatternGenerator to create customized date/time pattern:\n");
53 // use getBestPattern method to get the best pattern for the given skeleton
54 UnicodeString pattern = dtfg->getBestPattern(skeletons[i],status);
55 // Constructs a SimpleDateFormat with the best pattern generated above and the given locale
56 SimpleDateFormat *sdf = new SimpleDateFormat(pattern,locales[j],status);
78 u_printf(" Use addPattern API to add new '. von' to existing pattern\n");
82 UnicodeString conflictingPattern,dateReturned, pattern;
90 // Add '. von' to the existing pattern
92 // Apply the new pattern
95 pattern =sdf->toPattern(pattern);
97 u_printf("%S\n", pattern.getTerminatedBuffer());
123 UnicodeString pattern,dateReturned;
132 pattern = sdf->toPattern(pattern);
134 u_fprintf(out, "%S\n", pattern.getTerminatedBuffer());
139 // Replace zone "zzzz" in the pattern with "vvvv"
140 UnicodeString newPattern = dtfg->replaceFieldTypes(pattern, "vvvv", status);
141 // Apply the new pattern