aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/icu/i18n/nounit.cpp
blob: 1d4aa05506e98df1099be28c6d6c19a711ddb57c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// © 2017 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html

#include "unicode/nounit.h"
#include "uassert.h"

#if !UCONFIG_NO_FORMATTING

U_NAMESPACE_BEGIN

UOBJECT_DEFINE_RTTI_IMPLEMENTATION(NoUnit)

NoUnit U_EXPORT2 NoUnit::base() {
    return NoUnit("");
}

NoUnit U_EXPORT2 NoUnit::percent() {
    return NoUnit("percent");
}

NoUnit U_EXPORT2 NoUnit::permille() {
    return NoUnit("permille");
}

NoUnit::NoUnit(const char* subtype) {
    initNoUnit(subtype);
}

NoUnit::NoUnit(const NoUnit& other) : MeasureUnit(other) {
}

NoUnit* NoUnit::clone() const {
    return new NoUnit(*this);
}

NoUnit::~NoUnit() {
}


U_NAMESPACE_END

#endif