Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CPLAT_Begin_Namespace_CPLAT::CP_ICUFormatAlex Class Reference

Helper class used to parse the ICU format string. More...

List of all members.

Public Types

enum  Tokens {
  Token_Unknown = 1, Token_EOS, Token_Char, Token_String,
  Token_EraDesignator = 100, Token_Year, Token_Month, Token_Day,
  Token_Hour12, Token_Hour23, Token_Minute, Token_Second,
  Token_Millisecond, Token_WeekDay, Token_YearDay, Token_MonthWeekDay,
  Token_YearWeek, Token_MonthWeek, Token_AMPMMarker, Token_Hour24,
  Token_Hour11, Token_TimeZone
}

Public Member Functions

 CP_ICUFormatAlex (const CP_String &formatString)
Tokens GetToken ()
CP_String GetTokenFace () const
UInt32 GetPosition () const
void Reset ()

Protected Attributes

CP_String fICUString
UInt32 fPosition
CP_String fTokenFace

Private Attributes

CPUniChar fCurrentChar


Detailed Description


Member Enumeration Documentation

enum CPLAT_Begin_Namespace_CPLAT::CP_ICUFormatAlex::Tokens
 

Enumeration values:
Token_Unknown  unknown or invalid token
Token_EOS  end of string token
Token_Char  character
Token_String  string
Token_EraDesignator  era designator like AD
Token_Year  year like 1966
Token_Month  month in year like March or 03
Token_Day  day in month like 16
Token_Hour12  hour in am/pm (1...12)
Token_Hour23  hour in day (0....23)
Token_Minute  minute in hour (0...59)
Token_Second  seconds in minute (0...59)
Token_Millisecond  milliseconds like 567
Token_WeekDay  day in week like Tuesday
Token_YearDay  day in year like 122
Token_MonthWeekDay  day of week in month 2 means second Wednesday in July
Token_YearWeek  week in year (1...52 or 53)
Token_MonthWeek  week in month (3 is 3rd week in month)
Token_AMPMMarker  AM/PM marker.
Token_Hour24  hour in day (1..24)
Token_Hour11  hour in am/pm (0...11)
Token_TimeZone  time zone like Central European Standard Time


Constructor & Destructor Documentation

CPLAT_Begin_Namespace_CPLAT::CP_ICUFormatAlex::CP_ICUFormatAlex const CP_String formatString  ) 
 


Member Function Documentation

CP_ICUFormatAlex::Tokens CPLAT_Begin_Namespace_CPLAT::CP_ICUFormatAlex::GetToken  ) 
 

CP_String CPLAT_Begin_Namespace_CPLAT::CP_ICUFormatAlex::GetTokenFace  )  const
 

UInt32 CPLAT_Begin_Namespace_CPLAT::CP_ICUFormatAlex::GetPosition  )  const
 

void CPLAT_Begin_Namespace_CPLAT::CP_ICUFormatAlex::Reset  ) 
 


Member Data Documentation

CP_String CPLAT_Begin_Namespace_CPLAT::CP_ICUFormatAlex::fICUString [protected]
 

UInt32 CPLAT_Begin_Namespace_CPLAT::CP_ICUFormatAlex::fPosition [protected]
 

CP_String CPLAT_Begin_Namespace_CPLAT::CP_ICUFormatAlex::fTokenFace [protected]
 

CPUniChar CPLAT_Begin_Namespace_CPLAT::CP_ICUFormatAlex::fCurrentChar [private]
 


The documentation for this class was generated from the following file:
Generated on Sat Sep 17 20:02:40 2005 for CPLAT by  doxygen 1.4.0