Home | History | Annotate | Download | only in i18n
      1 /*
      2 *******************************************************************************
      3 * Copyright (C) 2015, International Business Machines Corporation and
      4 * others. All Rights Reserved.                                                *
      5 *******************************************************************************
      6 *
      7 * File NUMSYS_IMPL.H
      8 *
      9 *******************************************************************************
     10 */
     11 
     12 #ifndef __NUMSYS_IMPL_H__
     13 #define __NUMSYS_IMPL_H__
     14 
     15 #include "unicode/utypes.h"
     16 
     17 #if !UCONFIG_NO_FORMATTING
     18 
     19 #include "unicode/numsys.h"
     20 #include "uvector.h"
     21 #include "unicode/strenum.h"
     22 
     23 U_NAMESPACE_BEGIN
     24 
     25 class NumsysNameEnumeration : public StringEnumeration {
     26 public:
     27     // NumsysNameEnumeration instance adopts numsysNames
     28     NumsysNameEnumeration(UVector *numsysNames, UErrorCode& status);
     29 
     30     virtual ~NumsysNameEnumeration();
     31     static UClassID U_EXPORT2 getStaticClassID(void);
     32     virtual UClassID getDynamicClassID(void) const;
     33     virtual const UnicodeString* snext(UErrorCode& status);
     34     virtual void reset(UErrorCode& status);
     35     virtual int32_t count(UErrorCode& status) const;
     36 private:
     37     int32_t pos;
     38     UVector *fNumsysNames;
     39 };
     40 
     41 U_NAMESPACE_END
     42 
     43 #endif
     44 
     45 #endif
     46