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. Formattable(const char * stringToCopy)33Formattable::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