• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2 *******************************************************************************
3 * Copyright (C) 1997-2010, International Business Machines Corporation and    *
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 
26 U_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 
Formattable(const char * stringToCopy)33 Formattable::Formattable(const char* stringToCopy)
34 {
35     init();
36     fType = kString;
37     fValue.fString = new UnicodeString(stringToCopy);
38 }
39 
40 U_NAMESPACE_END
41 
42 #endif /* #if !UCONFIG_NO_FORMATTING || !UCONFIG_NO_CONVERSION */
43 
44 //eof
45