]>
git.saurik.com Git - apple/icu.git/blob - icuSources/i18n/nounit.cpp
1 // © 2017 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
4 #include "unicode/nounit.h"
7 #if !UCONFIG_NO_FORMATTING
11 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(NoUnit
)
13 NoUnit U_EXPORT2
NoUnit::base() {
14 return NoUnit("base");
17 NoUnit U_EXPORT2
NoUnit::percent() {
18 return NoUnit("percent");
21 NoUnit U_EXPORT2
NoUnit::permille() {
22 return NoUnit("permille");
25 NoUnit::NoUnit(const char* subtype
) {
29 NoUnit::NoUnit(const NoUnit
& other
) : MeasureUnit(other
) {
32 UObject
* NoUnit::clone() const {
33 return new NoUnit(*this);