intl/icu/source/i18n/smpdtfst.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/intl/icu/source/i18n/smpdtfst.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,49 @@
     1.4 +/*
     1.5 +*******************************************************************************
     1.6 +* Copyright (C) 2009-2013, International Business Machines Corporation and    *
     1.7 +* others. All Rights Reserved.                                                *
     1.8 +*******************************************************************************
     1.9 +*
    1.10 +* This file contains declarations for the class SimpleDateFormatStaticSets
    1.11 +*
    1.12 +* SimpleDateFormatStaticSets holds the UnicodeSets that are needed for lenient
    1.13 +* parsing of literal characters in date/time strings.
    1.14 +********************************************************************************
    1.15 +*/
    1.16 +
    1.17 +#ifndef SMPDTFST_H
    1.18 +#define SMPDTFST_H
    1.19 +
    1.20 +#include "unicode/utypes.h"
    1.21 +
    1.22 +#if !UCONFIG_NO_FORMATTING
    1.23 +
    1.24 +#include "unicode/udat.h"
    1.25 +
    1.26 +U_NAMESPACE_BEGIN
    1.27 +
    1.28 +class  UnicodeSet;
    1.29 +
    1.30 +
    1.31 +class SimpleDateFormatStaticSets : public UMemory
    1.32 +{
    1.33 +public:
    1.34 +    SimpleDateFormatStaticSets(UErrorCode &status);
    1.35 +    ~SimpleDateFormatStaticSets();
    1.36 +    
    1.37 +    static void    initSets(UErrorCode *status);
    1.38 +    static UBool   cleanup();
    1.39 +    
    1.40 +    static UnicodeSet *getIgnorables(UDateFormatField fieldIndex);
    1.41 +    
    1.42 +private:
    1.43 +    UnicodeSet *fDateIgnorables;
    1.44 +    UnicodeSet *fTimeIgnorables;
    1.45 +    UnicodeSet *fOtherIgnorables;
    1.46 +};
    1.47 +
    1.48 +
    1.49 +U_NAMESPACE_END
    1.50 +
    1.51 +#endif   // #if !UCONFIG_NO_FORMATTING
    1.52 +#endif   // SMPDTFST_H

mercurial