michael@0: /* michael@0: ******************************************************************************* michael@0: * Copyright (C) 1997-2010, International Business Machines Corporation and * michael@0: * others. All Rights Reserved. * michael@0: ******************************************************************************* michael@0: * michael@0: * File FMTABLE.CPP michael@0: * michael@0: * Modification History: michael@0: * michael@0: * Date Name Description michael@0: * 03/25/97 clhuang Initial Implementation. michael@0: ******************************************************************************** michael@0: */ michael@0: michael@0: #include "unicode/utypes.h" michael@0: michael@0: #if !UCONFIG_NO_FORMATTING && !UCONFIG_NO_CONVERSION michael@0: michael@0: #include "unicode/fmtable.h" michael@0: michael@0: // ***************************************************************************** michael@0: // class Formattable michael@0: // ***************************************************************************** michael@0: michael@0: U_NAMESPACE_BEGIN michael@0: michael@0: // ------------------------------------- michael@0: // Creates a formattable object with a char* string. michael@0: // This API is useless. The API that takes a UnicodeString is actually just as good. michael@0: // This is just a grandfathered API. michael@0: michael@0: Formattable::Formattable(const char* stringToCopy) michael@0: { michael@0: init(); michael@0: fType = kString; michael@0: fValue.fString = new UnicodeString(stringToCopy); michael@0: } michael@0: michael@0: U_NAMESPACE_END michael@0: michael@0: #endif /* #if !UCONFIG_NO_FORMATTING || !UCONFIG_NO_CONVERSION */ michael@0: michael@0: //eof