webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
udatpg.h
Go to the documentation of this file.
1 /*
2 *******************************************************************************
3 *
4 * Copyright (C) 2007-2012, 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 
211  const UChar *skeleton, int32_t length,
212  UChar *bestPattern, int32_t capacity,
213  UErrorCode *pErrorCode);
214 
247  const UChar *skeleton, int32_t length,
249  UChar *bestPattern, int32_t capacity,
250  UErrorCode *pErrorCode);
251 
274  const UChar *pattern, int32_t length,
275  UChar *skeleton, int32_t capacity,
276  UErrorCode *pErrorCode);
277 
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
361  const UChar *value, int32_t length);
362 
373 U_STABLE const UChar * U_EXPORT2
376  int32_t *pLength);
377 
391 U_STABLE void U_EXPORT2
394  const UChar *value, int32_t length);
395 
406 U_STABLE const UChar * U_EXPORT2
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 
503  const UChar *pattern, int32_t patternLength,
504  const UChar *skeleton, int32_t skeletonLength,
505  UChar *dest, int32_t destCapacity,
506  UErrorCode *pErrorCode);
507 
540  const UChar *pattern, int32_t patternLength,
541  const UChar *skeleton, int32_t skeletonLength,
543  UChar *dest, int32_t destCapacity,
544  UErrorCode *pErrorCode);
545 
559 
572 
583 U_STABLE const UChar * U_EXPORT2
585  const UChar *skeleton, int32_t skeletonLength,
586  int32_t *pLength);
587 
588 #endif
Definition: udatpg.h:106
U_STABLE const UChar *U_EXPORT2 udatpg_getAppendItemName(const UDateTimePatternGenerator *dtpg, UDateTimePatternField field, int32_t *pLength)
U_STABLE UDateTimePatternConflict U_EXPORT2 udatpg_addPattern(UDateTimePatternGenerator *dtpg, const UChar *pattern, int32_t patternLength, UBool override, UChar *conflictingPattern, int32_t capacity, int32_t *pLength, UErrorCode *pErrorCode)
Definition: udatpg.h:77
Definition: udatpg.h:55
const FieldDescriptor * field
Definition: parser_unittest.cc:2279
U_STABLE void U_EXPORT2 udatpg_close(UDateTimePatternGenerator *dtpg)
U_STABLE const UChar *U_EXPORT2 udatpg_getPatternForSkeleton(const UDateTimePatternGenerator *dtpg, const UChar *skeleton, int32_t skeletonLength, int32_t *pLength)
Definition: udatpg.h:118
signed int int32_t
Definition: ptypes.h:101
U_STABLE int32_t U_EXPORT2 udatpg_getSkeleton(UDateTimePatternGenerator *dtpg, const UChar *pattern, int32_t length, UChar *skeleton, int32_t capacity, UErrorCode *pErrorCode)
int8_t UBool
Definition: umachine.h:200
options
Definition: CodeGeneratorReplayInputs.py:1046
U_STABLE int32_t U_EXPORT2 udatpg_getBaseSkeleton(UDateTimePatternGenerator *dtpg, const UChar *pattern, int32_t length, UChar *baseSkeleton, int32_t capacity, UErrorCode *pErrorCode)
Definition: udatpg.h:61
#define U_NAMESPACE_BEGIN
Definition: uversion.h:129
dest
Definition: upload.py:394
#define U_NAMESPACE_END
Definition: uversion.h:130
U_STABLE void U_EXPORT2 udatpg_setDecimal(UDateTimePatternGenerator *dtpg, const UChar *decimal, int32_t length)
Definition: udatpg.h:67
U_STABLE UDateTimePatternGenerator *U_EXPORT2 udatpg_clone(const UDateTimePatternGenerator *dtpg, UErrorCode *pErrorCode)
Definition: udatpg.h:81
Definition: udatpg.h:122
U_STABLE int32_t U_EXPORT2 udatpg_replaceFieldTypes(UDateTimePatternGenerator *dtpg, const UChar *pattern, int32_t patternLength, const UChar *skeleton, int32_t skeletonLength, UChar *dest, int32_t destCapacity, UErrorCode *pErrorCode)
Definition: udatpg.h:79
Definition: udatpg.h:63
U_STABLE int32_t U_EXPORT2 udatpg_replaceFieldTypesWithOptions(UDateTimePatternGenerator *dtpg, const UChar *pattern, int32_t patternLength, const UChar *skeleton, int32_t skeletonLength, UDateTimePatternMatchOptions options, UChar *dest, int32_t destCapacity, UErrorCode *pErrorCode)
Definition: udatpg.h:124
U_STABLE int32_t U_EXPORT2 udatpg_getBestPattern(UDateTimePatternGenerator *dtpg, const UChar *skeleton, int32_t length, UChar *bestPattern, int32_t capacity, UErrorCode *pErrorCode)
Definition: udatpg.h:75
UErrorCode
Definition: utypes.h:476
Definition: udatpg.h:104
U_STABLE void U_EXPORT2 udatpg_setAppendItemName(UDateTimePatternGenerator *dtpg, UDateTimePatternField field, const UChar *value, int32_t length)
EGLAttrib * value
Definition: eglext.h:120
struct UEnumeration UEnumeration
Definition: uenum.h:39
U_STABLE const UChar *U_EXPORT2 udatpg_getAppendItemFormat(const UDateTimePatternGenerator *dtpg, UDateTimePatternField field, int32_t *pLength)
Definition: udatpg.h:69
Definition: udatpg.h:99
U_STABLE const UChar *U_EXPORT2 udatpg_getDecimal(const UDateTimePatternGenerator *dtpg, int32_t *pLength)
Definition: udatpg.h:73
#define U_EXPORT2
Definition: platform.h:724
U_STABLE UDateTimePatternGenerator *U_EXPORT2 udatpg_openEmpty(UErrorCode *pErrorCode)
UDateTimePatternConflict
Definition: udatpg.h:116
U_STABLE UEnumeration *U_EXPORT2 udatpg_openBaseSkeletons(const UDateTimePatternGenerator *dtpg, UErrorCode *pErrorCode)
U_STABLE void U_EXPORT2 udatpg_setDateTimeFormat(const UDateTimePatternGenerator *dtpg, const UChar *dtFormat, int32_t length)
Definition: udatpg.h:57
Definition: udatpg.h:87
Definition: udatpg.h:65
UDateTimePatternField
Definition: udatpg.h:53
Definition: udatpg.h:109
void * UDateTimePatternGenerator
Definition: udatpg.h:45
Definition: udatpg.h:85
U_STABLE int32_t U_EXPORT2 udatpg_getBestPatternWithOptions(UDateTimePatternGenerator *dtpg, const UChar *skeleton, int32_t length, UDateTimePatternMatchOptions options, UChar *bestPattern, int32_t capacity, UErrorCode *pErrorCode)
#define U_STABLE
Definition: umachine.h:109
U_STABLE void U_EXPORT2 udatpg_setAppendItemFormat(UDateTimePatternGenerator *dtpg, UDateTimePatternField field, const UChar *value, int32_t length)
U_STABLE const UChar *U_EXPORT2 udatpg_getDateTimeFormat(const UDateTimePatternGenerator *dtpg, int32_t *pLength)
Definition: udatpg.h:71
Definition: udatpg.h:101
U_STABLE UEnumeration *U_EXPORT2 udatpg_openSkeletons(const UDateTimePatternGenerator *dtpg, UErrorCode *pErrorCode)
U_STABLE UDateTimePatternGenerator *U_EXPORT2 udatpg_open(const char *locale, UErrorCode *pErrorCode)
uint16_t UChar
Definition: umachine.h:278
GLuint GLsizei GLsizei * length
Definition: gl2.h:435
UDateTimePatternMatchOptions
Definition: udatpg.h:97
Definition: udatpg.h:59
Definition: udatpg.h:83
Definition: udatpg.h:120