00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef __NOUNIT_H__
00011 #define __NOUNIT_H__
00012
00013 #include "unicode/utypes.h"
00014
00015 #if U_SHOW_CPLUSPLUS_API
00016
00017 #if !UCONFIG_NO_FORMATTING
00018
00019 #include "unicode/measunit.h"
00020
00026 U_NAMESPACE_BEGIN
00027
00034 namespace NoUnit {
00045 static inline MeasureUnit U_EXPORT2 base() {
00046 return MeasureUnit();
00047 }
00048
00059 static inline MeasureUnit U_EXPORT2 percent() {
00060 return MeasureUnit::getPercent();
00061 }
00062
00073 static inline MeasureUnit U_EXPORT2 permille() {
00074 return MeasureUnit::getPermille();
00075 }
00076 }
00077
00078 U_NAMESPACE_END
00079
00080 #endif
00081
00082 #endif
00083
00084 #endif // __NOUNIT_H__
00085
00086