]> git.saurik.com Git - apple/icu.git/blame - icuSources/i18n/fmtable_cnv.cpp
ICU-64260.0.1.tar.gz
[apple/icu.git] / icuSources / i18n / fmtable_cnv.cpp
CommitLineData
f3c0d7a5
A
1// © 2016 and later: Unicode, Inc. and others.
2// License & terms of use: http://www.unicode.org/copyright.html
73c04bcf
A
3/*
4*******************************************************************************
729e4ab9 5* Copyright (C) 1997-2010, International Business Machines Corporation and *
73c04bcf
A
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
28U_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
35Formattable::Formattable(const char* stringToCopy)
73c04bcf 36{
729e4ab9
A
37 init();
38 fType = kString;
73c04bcf
A
39 fValue.fString = new UnicodeString(stringToCopy);
40}
41
42U_NAMESPACE_END
43
44#endif /* #if !UCONFIG_NO_FORMATTING || !UCONFIG_NO_CONVERSION */
45
46//eof