11cb0ef41Sopenharmony_ci// © 2016 and later: Unicode, Inc. and others. 21cb0ef41Sopenharmony_ci// License & terms of use: http://www.unicode.org/copyright.html 31cb0ef41Sopenharmony_ci/* 41cb0ef41Sopenharmony_ci******************************************************************************* 51cb0ef41Sopenharmony_ci* Copyright (C) 1997-2010, International Business Machines Corporation and * 61cb0ef41Sopenharmony_ci* others. All Rights Reserved. * 71cb0ef41Sopenharmony_ci******************************************************************************* 81cb0ef41Sopenharmony_ci* 91cb0ef41Sopenharmony_ci* File FMTABLE.CPP 101cb0ef41Sopenharmony_ci* 111cb0ef41Sopenharmony_ci* Modification History: 121cb0ef41Sopenharmony_ci* 131cb0ef41Sopenharmony_ci* Date Name Description 141cb0ef41Sopenharmony_ci* 03/25/97 clhuang Initial Implementation. 151cb0ef41Sopenharmony_ci******************************************************************************** 161cb0ef41Sopenharmony_ci*/ 171cb0ef41Sopenharmony_ci 181cb0ef41Sopenharmony_ci#include "unicode/utypes.h" 191cb0ef41Sopenharmony_ci 201cb0ef41Sopenharmony_ci#if !UCONFIG_NO_FORMATTING && !UCONFIG_NO_CONVERSION 211cb0ef41Sopenharmony_ci 221cb0ef41Sopenharmony_ci#include "unicode/fmtable.h" 231cb0ef41Sopenharmony_ci 241cb0ef41Sopenharmony_ci// ***************************************************************************** 251cb0ef41Sopenharmony_ci// class Formattable 261cb0ef41Sopenharmony_ci// ***************************************************************************** 271cb0ef41Sopenharmony_ci 281cb0ef41Sopenharmony_ciU_NAMESPACE_BEGIN 291cb0ef41Sopenharmony_ci 301cb0ef41Sopenharmony_ci// ------------------------------------- 311cb0ef41Sopenharmony_ci// Creates a formattable object with a char* string. 321cb0ef41Sopenharmony_ci// This API is useless. The API that takes a UnicodeString is actually just as good. 331cb0ef41Sopenharmony_ciFormattable::Formattable(const char* stringToCopy) 341cb0ef41Sopenharmony_ci{ 351cb0ef41Sopenharmony_ci init(); 361cb0ef41Sopenharmony_ci fType = kString; 371cb0ef41Sopenharmony_ci fValue.fString = new UnicodeString(stringToCopy); 381cb0ef41Sopenharmony_ci} 391cb0ef41Sopenharmony_ci 401cb0ef41Sopenharmony_ciU_NAMESPACE_END 411cb0ef41Sopenharmony_ci 421cb0ef41Sopenharmony_ci#endif /* #if !UCONFIG_NO_FORMATTING || !UCONFIG_NO_CONVERSION */ 431cb0ef41Sopenharmony_ci 441cb0ef41Sopenharmony_ci//eof 45