2017-01-20 00:20:31 +00:00
|
|
|
// © 2016 and later: Unicode, Inc. and others.
|
2016-06-15 18:58:17 +00:00
|
|
|
// License & terms of use: http://www.unicode.org/copyright.html
|
2005-03-28 05:38:11 +00:00
|
|
|
/*
|
|
|
|
*******************************************************************************
|
2016-05-31 21:45:07 +00:00
|
|
|
* Copyright (C) 1997-2010, International Business Machines Corporation and *
|
|
|
|
* others. All Rights Reserved. *
|
2005-03-28 05:38:11 +00:00
|
|
|
*******************************************************************************
|
|
|
|
*
|
|
|
|
* File FMTABLE.CPP
|
|
|
|
*
|
|
|
|
* Modification History:
|
|
|
|
*
|
|
|
|
* Date Name Description
|
|
|
|
* 03/25/97 clhuang Initial Implementation.
|
|
|
|
********************************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "unicode/utypes.h"
|
|
|
|
|
2005-06-03 18:45:09 +00:00
|
|
|
#if !UCONFIG_NO_FORMATTING && !UCONFIG_NO_CONVERSION
|
2005-03-28 05:38:11 +00:00
|
|
|
|
|
|
|
#include "unicode/fmtable.h"
|
|
|
|
|
|
|
|
// *****************************************************************************
|
|
|
|
// class Formattable
|
|
|
|
// *****************************************************************************
|
|
|
|
|
|
|
|
U_NAMESPACE_BEGIN
|
|
|
|
|
|
|
|
// -------------------------------------
|
|
|
|
// Creates a formattable object with a char* string.
|
|
|
|
// This API is useless. The API that takes a UnicodeString is actually just as good.
|
|
|
|
// This is just a grandfathered API.
|
|
|
|
|
|
|
|
Formattable::Formattable(const char* stringToCopy)
|
|
|
|
{
|
2010-02-26 02:29:00 +00:00
|
|
|
init();
|
|
|
|
fType = kString;
|
2005-03-28 05:38:11 +00:00
|
|
|
fValue.fString = new UnicodeString(stringToCopy);
|
|
|
|
}
|
|
|
|
|
|
|
|
U_NAMESPACE_END
|
|
|
|
|
|
|
|
#endif /* #if !UCONFIG_NO_FORMATTING || !UCONFIG_NO_CONVERSION */
|
|
|
|
|
|
|
|
//eof
|