]> git.saurik.com Git - apple/icu.git/blame - icuSources/i18n/fmtable_cnv.cpp
ICU-511.32.tar.gz
[apple/icu.git] / icuSources / i18n / fmtable_cnv.cpp
CommitLineData
73c04bcf
A
1/*
2*******************************************************************************
729e4ab9 3* Copyright (C) 1997-2010, International Business Machines Corporation and *
73c04bcf
A
4* others. All Rights Reserved. *
5*******************************************************************************
6*
7* File FMTABLE.CPP
8*
9* Modification History:
10*
11* Date Name Description
12* 03/25/97 clhuang Initial Implementation.
13********************************************************************************
14*/
15
16#include "unicode/utypes.h"
17
18#if !UCONFIG_NO_FORMATTING && !UCONFIG_NO_CONVERSION
19
20#include "unicode/fmtable.h"
21
22// *****************************************************************************
23// class Formattable
24// *****************************************************************************
25
26U_NAMESPACE_BEGIN
27
28// -------------------------------------
29// Creates a formattable object with a char* string.
30// This API is useless. The API that takes a UnicodeString is actually just as good.
31// This is just a grandfathered API.
32
33Formattable::Formattable(const char* stringToCopy)
73c04bcf 34{
729e4ab9
A
35 init();
36 fType = kString;
73c04bcf
A
37 fValue.fString = new UnicodeString(stringToCopy);
38}
39
40U_NAMESPACE_END
41
42#endif /* #if !UCONFIG_NO_FORMATTING || !UCONFIG_NO_CONVERSION */
43
44//eof