]>
Commit | Line | Data |
---|---|---|
0f5d89e8 A |
1 | // © 2017 and later: Unicode, Inc. and others. |
2 | // License & terms of use: http://www.unicode.org/copyright.html | |
3 | ||
4 | #include "unicode/nounit.h" | |
5 | #include "uassert.h" | |
6 | ||
7 | #if !UCONFIG_NO_FORMATTING | |
8 | ||
9 | U_NAMESPACE_BEGIN | |
10 | ||
11 | UOBJECT_DEFINE_RTTI_IMPLEMENTATION(NoUnit) | |
12 | ||
13 | NoUnit U_EXPORT2 NoUnit::base() { | |
14 | return NoUnit("base"); | |
15 | } | |
16 | ||
17 | NoUnit U_EXPORT2 NoUnit::percent() { | |
18 | return NoUnit("percent"); | |
19 | } | |
20 | ||
21 | NoUnit U_EXPORT2 NoUnit::permille() { | |
22 | return NoUnit("permille"); | |
23 | } | |
24 | ||
25 | NoUnit::NoUnit(const char* subtype) { | |
26 | initNoUnit(subtype); | |
27 | } | |
28 | ||
29 | NoUnit::NoUnit(const NoUnit& other) : MeasureUnit(other) { | |
30 | } | |
31 | ||
32 | UObject* NoUnit::clone() const { | |
33 | return new NoUnit(*this); | |
34 | } | |
35 | ||
36 | NoUnit::~NoUnit() { | |
37 | } | |
38 | ||
39 | ||
40 | U_NAMESPACE_END | |
41 | ||
42 | #endif |