ICU 49.1.1  49.1.1
udatpg.h
Go to the documentation of this file.
1 /*
2 *******************************************************************************
3 *
4 * Copyright (C) 2007-2011, International Business Machines
5 * Corporation and others. All Rights Reserved.
6 *
7 *******************************************************************************
8 * file name: udatpg.h
9 * encoding: US-ASCII
10 * tab size: 8 (not used)
11 * indentation:4
12 *
13 * created on: 2007jul30
14 * created by: Markus W. Scherer
15 */
16 
17 #ifndef __UDATPG_H__
18 #define __UDATPG_H__
19 
20 #include "unicode/utypes.h"
21 #include "unicode/uenum.h"
22 #include "unicode/localpointer.h"
23 
46 
53 typedef enum UDateTimePatternField {
89 
102 #ifndef U_HIDE_INTERNAL_API
103 
107 #endif /* U_HIDE_INTERNAL_API */
108 
111 
126 
136 udatpg_open(const char *locale, UErrorCode *pErrorCode);
137 
146 udatpg_openEmpty(UErrorCode *pErrorCode);
147 
153 U_STABLE void U_EXPORT2
155 
156 #if U_SHOW_CPLUSPLUS_API
157 
159 
169 U_DEFINE_LOCAL_OPEN_POINTER(LocalUDateTimePatternGeneratorPointer, UDateTimePatternGenerator, udatpg_close);
170 
172 
173 #endif
174 
184 udatpg_clone(const UDateTimePatternGenerator *dtpg, UErrorCode *pErrorCode);
185 
209 U_STABLE int32_t U_EXPORT2
211  const UChar *skeleton, int32_t length,
212  UChar *bestPattern, int32_t capacity,
213  UErrorCode *pErrorCode);
214 
245 U_STABLE int32_t U_EXPORT2
247  const UChar *skeleton, int32_t length,
249  UChar *bestPattern, int32_t capacity,
250  UErrorCode *pErrorCode);
251 
272 U_STABLE int32_t U_EXPORT2
274  const UChar *pattern, int32_t length,
275  UChar *skeleton, int32_t capacity,
276  UErrorCode *pErrorCode);
277 
301 U_STABLE int32_t U_EXPORT2
303  const UChar *pattern, int32_t length,
304  UChar *baseSkeleton, int32_t capacity,
305  UErrorCode *pErrorCode);
306 
333  const UChar *pattern, int32_t patternLength,
334  UBool override,
335  UChar *conflictingPattern, int32_t capacity, int32_t *pLength,
336  UErrorCode *pErrorCode);
337 
358 U_STABLE void U_EXPORT2
360  UDateTimePatternField field,
361  const UChar *value, int32_t length);
362 
373 U_STABLE const UChar * U_EXPORT2
375  UDateTimePatternField field,
376  int32_t *pLength);
377 
391 U_STABLE void U_EXPORT2
393  UDateTimePatternField field,
394  const UChar *value, int32_t length);
395 
406 U_STABLE const UChar * U_EXPORT2
408  UDateTimePatternField field,
409  int32_t *pLength);
410 
432 U_STABLE void U_EXPORT2
434  const UChar *dtFormat, int32_t length);
435 
443 U_STABLE const UChar * U_EXPORT2
445  int32_t *pLength);
446 
460 U_STABLE void U_EXPORT2
462  const UChar *decimal, int32_t length);
463 
472 U_STABLE const UChar * U_EXPORT2
474  int32_t *pLength);
475 
501 U_STABLE int32_t U_EXPORT2
503  const UChar *pattern, int32_t patternLength,
504  const UChar *skeleton, int32_t skeletonLength,
505  UChar *dest, int32_t destCapacity,
506  UErrorCode *pErrorCode);
507 
538 U_STABLE int32_t U_EXPORT2
540  const UChar *pattern, int32_t patternLength,
541  const UChar *skeleton, int32_t skeletonLength,
543  UChar *dest, int32_t destCapacity,
544  UErrorCode *pErrorCode);
545 
557 U_STABLE UEnumeration * U_EXPORT2
559 
570 U_STABLE UEnumeration * U_EXPORT2
572 
583 U_STABLE const UChar * U_EXPORT2
585  const UChar *skeleton, int32_t skeletonLength,
586  int32_t *pLength);
587 
588 #endif