intl/icu/source/i18n/fmtable_cnv.cpp

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/intl/icu/source/i18n/fmtable_cnv.cpp	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,44 @@
     1.4 +/*
     1.5 +*******************************************************************************
     1.6 +* Copyright (C) 1997-2010, International Business Machines Corporation and    *
     1.7 +* others. All Rights Reserved.                                                *
     1.8 +*******************************************************************************
     1.9 +*
    1.10 +* File FMTABLE.CPP
    1.11 +*
    1.12 +* Modification History:
    1.13 +*
    1.14 +*   Date        Name        Description
    1.15 +*   03/25/97    clhuang     Initial Implementation.
    1.16 +********************************************************************************
    1.17 +*/
    1.18 +
    1.19 +#include "unicode/utypes.h"
    1.20 +
    1.21 +#if !UCONFIG_NO_FORMATTING && !UCONFIG_NO_CONVERSION
    1.22 +
    1.23 +#include "unicode/fmtable.h"
    1.24 +
    1.25 +// *****************************************************************************
    1.26 +// class Formattable
    1.27 +// *****************************************************************************
    1.28 +
    1.29 +U_NAMESPACE_BEGIN
    1.30 +
    1.31 +// -------------------------------------
    1.32 +// Creates a formattable object with a char* string.
    1.33 +// This API is useless. The API that takes a UnicodeString is actually just as good.
    1.34 +// This is just a grandfathered API.
    1.35 +
    1.36 +Formattable::Formattable(const char* stringToCopy)
    1.37 +{
    1.38 +    init();
    1.39 +    fType = kString;
    1.40 +    fValue.fString = new UnicodeString(stringToCopy);
    1.41 +}
    1.42 +
    1.43 +U_NAMESPACE_END
    1.44 +
    1.45 +#endif /* #if !UCONFIG_NO_FORMATTING || !UCONFIG_NO_CONVERSION */
    1.46 +
    1.47 +//eof

mercurial