Lines Matching refs:pattern
24 * \brief C++ API: Date/Time Pattern Generator
38 * is done, a query can be made using a "skeleton", which is a pattern which just
40 * pattern corresponding to that skeleton.
45 * fields in a pattern, in order, since we have that internally.
108 * Utility to return a unique skeleton from a given pattern. For example,
111 * @param pattern Input pattern, such as "dd/MMM"
117 UnicodeString getSkeleton(const UnicodeString& pattern, UErrorCode& status);
120 * Utility to return a unique base skeleton from a given pattern. This is
126 * @param pattern Input pattern, such as "dd/MMM"
132 UnicodeString getBaseSkeleton(const UnicodeString& pattern, UErrorCode& status);
135 * Adds a pattern to the generator. If the pattern has the same skeleton as
136 * an existing pattern, and the override parameter is set, then the previous
139 * conflicting pattern.
144 * @param pattern Input pattern, such as "dd/MMM"
147 * @param conflictingPattern Previous pattern with the same skeleton.
154 UDateTimePatternConflict addPattern(const UnicodeString& pattern,
160 * An AppendItem format is a pattern used to append a field if there is no
162 * and there is no matching pattern internally, but there is a pattern
163 * matching "yyyyMMMd", say "d-MM-yyyy". Then that pattern is used, plus the
166 * pattern is "d-MM-yyyy, G".
168 * There are actually three available variables: {0} is the pattern so far,
174 * @param value pattern, such as "{0}, {1}"
184 * @return append pattern for field
213 * The date time format is a message format pattern used to compose date and
215 * by the date pattern and {1} will be replaced by the time pattern.
223 * for those two skeletons, so the result is put together with this pattern,
227 * message format pattern, here {0} will be replaced by the date
228 * pattern and {1} will be replaced by the time pattern.
241 * Return the best pattern matching the input skeleton. It is guaranteed to
245 * The skeleton is a pattern containing only the variable fields.
250 * The best pattern found from the given skeleton.
257 * Return the best pattern matching the input skeleton. It is guaranteed to
261 * The skeleton is a pattern containing only the variable fields.
265 * returned pattern to match those in the skeleton (when this
272 * The best pattern found from the given skeleton.
281 * Adjusts the field types (width and subtype) of a pattern to match what is
282 * in a skeleton. That is, if you supply a pattern like "d-M H:m", and a
283 * skeleton of "MMMMddhhmm", then the input pattern is adjusted to be
287 * @param pattern Input pattern
289 * The skeleton is a pattern containing only the variable fields.
293 * @return pattern adjusted to match the skeleton fields widths and subtypes.
296 UnicodeString replaceFieldTypes(const UnicodeString& pattern,
301 * Adjusts the field types (width and subtype) of a pattern to match what is
302 * in a skeleton. That is, if you supply a pattern like "d-M H:m", and a
303 * skeleton of "MMMMddhhmm", then the input pattern is adjusted to be
307 * @param pattern Input pattern
309 * The skeleton is a pattern containing only the variable fields.
313 * pattern are adjusted to match those in the skeleton (when this
319 * @return pattern adjusted to match the skeleton fields widths and subtypes.
322 UnicodeString replaceFieldTypes(const UnicodeString& pattern,
330 * Call getPatternForSkeleton() to get the corresponding pattern.
341 * Get the pattern corresponding to a given skeleton.
343 * @return pattern corresponding to a given skeleton.
367 * @return a StringEnumeration with the redundant pattern.
376 * fractional seconds. For example, suppose that the input pattern is
377 * "hhmmssSSSS", and the best matching pattern internally is "H:mm:ss", and
378 * the decimal string is ",". Then the resulting pattern is modified to be
434 Locale pLocale; // pattern locale
454 UDateTimePatternConflict addPatternWithSkeleton(const UnicodeString& pattern, const UnicodeString * skeletonToUse, UBool override, UnicodeString& conflictingPattern, UErrorCode& status);
463 UnicodeString adjustFieldTypes(const UnicodeString& pattern, const PtnSkeleton* specifiedSkeleton, UBool fixFractionalSeconds, UDateTimePatternMatchOptions options = UDATPG_MATCH_NO_OPTIONS);