|
ICU 73.2
73.2
|
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 #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 /* #if !UCONFIG_NO_FORMATTING */ 00081 00082 #endif /* U_SHOW_CPLUSPLUS_API */ 00083 00084 #endif // __NOUNIT_H__ 00085 //eof 00086 //
1.7.6.1