• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (C) 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 
Formattable(const char * stringToCopy)35 Formattable::Formattable(const char* stringToCopy)
36 {
37     init();
38     fType = kString;
39     fValue.fString = new UnicodeString(stringToCopy);
40 }
41 
42 U_NAMESPACE_END
43 
44 #endif /* #if !UCONFIG_NO_FORMATTING || !UCONFIG_NO_CONVERSION */
45 
46 //eof
47