Lines Matching refs:pattern
27 * \brief C++ API: Date/Time Pattern Generator
43 * is done, a query can be made using a "skeleton", which is a pattern which just
45 * pattern corresponding to that skeleton.
50 * fields in a pattern, in order, since we have that internally.
124 * Utility to return a unique skeleton from a given pattern. For example,
127 * @param pattern Input pattern, such as "dd/MMM"
133 static UnicodeString staticGetSkeleton(const UnicodeString& pattern, UErrorCode& status);
136 * Utility to return a unique skeleton from a given pattern. For example,
141 * @param pattern Input pattern, such as "dd/MMM"
147 UnicodeString getSkeleton(const UnicodeString& pattern, UErrorCode& status); /* {
151 return staticGetSkeleton(pattern, status);
155 * Utility to return a unique base skeleton from a given pattern. This is
161 * @param pattern Input pattern, such as "dd/MMM"
167 static UnicodeString staticGetBaseSkeleton(const UnicodeString& pattern, UErrorCode& status);
170 * Utility to return a unique base skeleton from a given pattern. This is
178 * @param pattern Input pattern, such as "dd/MMM"
184 UnicodeString getBaseSkeleton(const UnicodeString& pattern, UErrorCode& status); /* {
188 return staticGetBaseSkeleton(pattern, status);
192 * Adds a pattern to the generator. If the pattern has the same skeleton as
193 * an existing pattern, and the override parameter is set, then the previous
196 * conflicting pattern.
201 * @param pattern Input pattern, such as "dd/MMM"
204 * @param conflictingPattern Previous pattern with the same skeleton.
216 UDateTimePatternConflict addPattern(const UnicodeString& pattern,
222 * An AppendItem format is a pattern used to append a field if there is no
224 * and there is no matching pattern internally, but there is a pattern
225 * matching "yyyyMMMd", say "d-MM-yyyy". Then that pattern is used, plus the
228 * pattern is "d-MM-yyyy, G".
230 * There are actually three available variables: {0} is the pattern so far,
236 * @param value pattern, such as "{0}, {1}"
246 * @return append pattern for field
275 * The DateTimeFormat is a message format pattern used to compose date and
276 * time patterns. The default pattern in the root locale is "{1} {0}", where
277 * {1} will be replaced by the date pattern and {0} will be replaced by the
278 * time pattern; however, other locales may specify patterns such as
287 * for those two skeletons, so the result is put together with this pattern,
291 * message format pattern, here {1} will be replaced by the date
292 * pattern and {0} will be replaced by the time pattern.
305 * Return the best pattern matching the input skeleton. It is guaranteed to
309 * The skeleton is a pattern containing only the variable fields.
314 * The best pattern found from the given skeleton.
326 * Return the best pattern matching the input skeleton. It is guaranteed to
330 * The skeleton is a pattern containing only the variable fields.
334 * returned pattern to match those in the skeleton (when this
341 * The best pattern found from the given skeleton.
350 * Adjusts the field types (width and subtype) of a pattern to match what is
351 * in a skeleton. That is, if you supply a pattern like "d-M H:m", and a
352 * skeleton of "MMMMddhhmm", then the input pattern is adjusted to be
356 * @param pattern Input pattern
358 * The skeleton is a pattern containing only the variable fields.
362 * @return pattern adjusted to match the skeleton fields widths and subtypes.
370 UnicodeString replaceFieldTypes(const UnicodeString& pattern,
375 * Adjusts the field types (width and subtype) of a pattern to match what is
376 * in a skeleton. That is, if you supply a pattern like "d-M H:m", and a
377 * skeleton of "MMMMddhhmm", then the input pattern is adjusted to be
381 * @param pattern Input pattern
383 pattern containing only the variable fields.
387 * pattern are adjusted to match those in the skeleton (when this
393 * @return pattern adjusted to match the skeleton fields widths and subtypes.
396 UnicodeString replaceFieldTypes(const UnicodeString& pattern,
404 * Call getPatternForSkeleton() to get the corresponding pattern.
415 * Get the pattern corresponding to a given skeleton.
417 * @return pattern corresponding to a given skeleton.
442 * @return a StringEnumeration with the redundant pattern.
452 * fractional seconds. For example, suppose that the input pattern is
453 * "hhmmssSSSS", and the best matching pattern internally is "H:mm:ss", and
454 * the decimal string is ",". Then the resulting pattern is modified to be
510 Locale pLocale; // pattern locale
541 UDateTimePatternConflict addPatternWithSkeleton(const UnicodeString& pattern, const UnicodeString * skeletonToUse, UBool override, UnicodeString& conflictingPattern, UErrorCode& status);
552 UnicodeString adjustFieldTypes(const UnicodeString& pattern, const PtnSkeleton* specifiedSkeleton, int32_t flags, UDateTimePatternMatchOptions options = UDATPG_MATCH_NO_OPTIONS);