/src/mozilla-central/intl/icu/source/i18n/fmtable_cnv.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | // © 2016 and later: Unicode, Inc. and others. |
2 | | // License & terms of use: http://www.unicode.org/copyright.html |
3 | | /* |
4 | | ******************************************************************************* |
5 | | * Copyright (C) 1997-2010, International Business Machines Corporation and * |
6 | | * others. All Rights Reserved. * |
7 | | ******************************************************************************* |
8 | | * |
9 | | * File FMTABLE.CPP |
10 | | * |
11 | | * Modification History: |
12 | | * |
13 | | * Date Name Description |
14 | | * 03/25/97 clhuang Initial Implementation. |
15 | | ******************************************************************************** |
16 | | */ |
17 | | |
18 | | #include "unicode/utypes.h" |
19 | | |
20 | | #if !UCONFIG_NO_FORMATTING && !UCONFIG_NO_CONVERSION |
21 | | |
22 | | #include "unicode/fmtable.h" |
23 | | |
24 | | // ***************************************************************************** |
25 | | // class Formattable |
26 | | // ***************************************************************************** |
27 | | |
28 | | U_NAMESPACE_BEGIN |
29 | | |
30 | | // ------------------------------------- |
31 | | // Creates a formattable object with a char* string. |
32 | | // This API is useless. The API that takes a UnicodeString is actually just as good. |
33 | | // This is just a grandfathered API. |
34 | | |
35 | | Formattable::Formattable(const char* stringToCopy) |
36 | 0 | { |
37 | 0 | init(); |
38 | 0 | fType = kString; |
39 | 0 | fValue.fString = new UnicodeString(stringToCopy); |
40 | 0 | } |
41 | | |
42 | | U_NAMESPACE_END |
43 | | |
44 | | #endif /* #if !UCONFIG_NO_FORMATTING || !UCONFIG_NO_CONVERSION */ |
45 | | |
46 | | //eof |