/* ******************************************************************************* * Copyright (C) 2007-2009, International Business Machines Corporation and * others. All Rights Reserved. * ******************************************************************************* * * File DTPTNGEN.H * ******************************************************************************* */ #include "uvector.h" #ifndef __DTPTNGEN_IMPL_H__ #define __DTPTNGEN_IMPL_H__ // TODO(claireho): Split off Builder class. // TODO(claireho): If splitting off Builder class: As subclass or independent? #define MAX_PATTERN_ENTRIES 52 #define MAX_CLDR_FIELD_LEN 60 #define MAX_DT_TOKEN 50 #define MAX_RESOURCE_FIELD 12 #define MAX_AVAILABLE_FORMATS 12 #define NONE 0 #define EXTRA_FIELD 0x10000 #define MISSING_FIELD 0x1000 #define MAX_STRING_ENUMERATION 200 #define SINGLE_QUOTE ((UChar)0x0027) #define FORWARDSLASH ((UChar)0x002F) #define BACKSLASH ((UChar)0x005C) #define SPACE ((UChar)0x0020) #define QUOTATION_MARK ((UChar)0x0022) #define ASTERISK ((UChar)0x002A) #define PLUSSITN ((UChar)0x002B) #define COMMA ((UChar)0x002C) #define HYPHEN ((UChar)0x002D) #define DOT ((UChar)0x002E) #define COLON ((UChar)0x003A) #define CAP_A ((UChar)0x0041) #define CAP_C ((UChar)0x0043) #define CAP_D ((UChar)0x0044) #define CAP_E ((UChar)0x0045) #define CAP_F ((UChar)0x0046) #define CAP_G ((UChar)0x0047) #define CAP_H ((UChar)0x0048) #define CAP_K ((UChar)0x004B) #define CAP_L ((UChar)0x004C) #define CAP_M ((UChar)0x004D) #define CAP_O ((UChar)0x004F) #define CAP_Q ((UChar)0x0051) #define CAP_S ((UChar)0x0053) #define CAP_T ((UChar)0x0054) #define CAP_V ((UChar)0x0056) #define CAP_W ((UChar)0x0057) #define CAP_Y ((UChar)0x0059) #define CAP_Z ((UChar)0x005A) #define LOWLINE ((UChar)0x005F) #define LOW_A ((UChar)0x0061) #define LOW_C ((UChar)0x0063) #define LOW_D ((UChar)0x0064) #define LOW_E ((UChar)0x0065) #define LOW_F ((UChar)0x0066) #define LOW_G ((UChar)0x0067) #define LOW_H ((UChar)0x0068) #define LOW_I ((UChar)0x0069) #define LOW_J ((UChar)0x006A) #define LOW_K ((UChar)0x006B) #define LOW_L ((UChar)0x006C) #define LOW_M ((UChar)0x006D) #define LOW_N ((UChar)0x006E) #define LOW_O ((UChar)0x006F) #define LOW_P ((UChar)0x0070) #define LOW_Q ((UChar)0x0071) #define LOW_R ((UChar)0x0072) #define LOW_S ((UChar)0x0073) #define LOW_T ((UChar)0x0074) #define LOW_U ((UChar)0x0075) #define LOW_V ((UChar)0x0076) #define LOW_W ((UChar)0x0077) #define LOW_Y ((UChar)0x0079) #define LOW_Z ((UChar)0x007A) #define DT_SHORT -0x102 #define DT_LONG -0x103 #define DT_NUMERIC 0x100 #define DT_NARROW -0x101 #define DT_DELTA 0x10 U_NAMESPACE_BEGIN const int32_t UDATPG_FRACTIONAL_MASK = 1<