decfmtst.h   [plain text]


//
//  regexst.h
//
//  Copyright (C) 2009, International Business Machines Corporation and others.
//  All Rights Reserved.
//
//  This file contains declarations for the class DecimalFormatStaticSets
//
//  DecimalFormatStaticSets holds the UnicodeSets that are needed for lenient
//  parsing of decimal and group separators.
//

#ifndef DECFMTST_H
#define DECFMTST_H

#include "unicode/utypes.h"

U_NAMESPACE_BEGIN

class  UnicodeSet;


class DecimalFormatStaticSets : public UMemory
{
public:
    static DecimalFormatStaticSets *gStaticSets;  // Ptr to all lazily initialized constant
                                                  //   shared sets.

    DecimalFormatStaticSets(UErrorCode *status);
    ~DecimalFormatStaticSets();

    static void    initSets(UErrorCode *status);
    static UBool   cleanup();

    static UnicodeSet *getSimilarDecimals(UChar32 decimal, UBool strictParse, UnicodeSet *fallback);

    UnicodeSet *fDotEquivalents;
    UnicodeSet *fCommaEquivalents;
    UnicodeSet *fOtherGroupingSeparators;
    UnicodeSet *fDashEquivalents;

    UnicodeSet *fStrictDotEquivalents;
    UnicodeSet *fStrictCommaEquivalents;
    UnicodeSet *fStrictOtherGroupingSeparators;
    UnicodeSet *fStrictDashEquivalents;

    UnicodeSet *fDefaultGroupingSeparators;
    UnicodeSet *fStrictDefaultGroupingSeparators;

};


U_NAMESPACE_END

#endif   // REGEXST_H