/src/mozilla-central/intl/icu/source/i18n/nounit.cpp
Line | Count | Source (jump to first uncovered line) |
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 | 0 | NoUnit U_EXPORT2 NoUnit::base() { |
14 | 0 | return NoUnit("base"); |
15 | 0 | } |
16 | | |
17 | 0 | NoUnit U_EXPORT2 NoUnit::percent() { |
18 | 0 | return NoUnit("percent"); |
19 | 0 | } |
20 | | |
21 | 0 | NoUnit U_EXPORT2 NoUnit::permille() { |
22 | 0 | return NoUnit("permille"); |
23 | 0 | } |
24 | | |
25 | 0 | NoUnit::NoUnit(const char* subtype) { |
26 | 0 | initNoUnit(subtype); |
27 | 0 | } |
28 | | |
29 | 0 | NoUnit::NoUnit(const NoUnit& other) : MeasureUnit(other) { |
30 | 0 | } |
31 | | |
32 | 0 | UObject* NoUnit::clone() const { |
33 | 0 | return new NoUnit(*this); |
34 | 0 | } |
35 | | |
36 | 0 | NoUnit::~NoUnit() { |
37 | 0 | } |
38 | | |
39 | | |
40 | | U_NAMESPACE_END |
41 | | |
42 | | #endif |