00001 // © 2017 and later: Unicode, Inc. and others. 00002 // License & terms of use: http://www.unicode.org/copyright.html 00003 /* 00004 ******************************************************************************* 00005 * Copyright (C) 2009-2017, International Business Machines Corporation, * 00006 * Google, and others. All Rights Reserved. * 00007 ******************************************************************************* 00008 */ 00009 00010 #ifndef __NOUNIT_H__ 00011 #define __NOUNIT_H__ 00012 00013 00020 #include "unicode/measunit.h" 00021 00022 #if !UCONFIG_NO_FORMATTING 00023 00024 U_NAMESPACE_BEGIN 00025 00026 #ifndef U_HIDE_DRAFT_API 00027 00032 class U_I18N_API NoUnit: public MeasureUnit { 00033 public: 00040 static NoUnit U_EXPORT2 base(); 00041 00048 static NoUnit U_EXPORT2 percent(); 00049 00056 static NoUnit U_EXPORT2 permille(); 00057 00062 NoUnit(const NoUnit& other); 00063 00069 virtual UObject* clone() const; 00070 00079 virtual UClassID getDynamicClassID() const; 00080 00087 static UClassID U_EXPORT2 getStaticClassID(); 00088 00093 virtual ~NoUnit(); 00094 00095 private: 00100 NoUnit(const char* subtype); 00101 00102 }; 00103 #endif /* U_HIDE_DRAFT_API */ 00104 00105 U_NAMESPACE_END 00106 00107 #endif /* #if !UCONFIG_NO_FORMATTING */ 00108 00109 #endif // __NOUNIT_H__ 00110 //eof 00111 //
1.6.1