intl/icu/source/i18n/fmtable_cnv.cpp

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 /*
     2 *******************************************************************************
     3 * Copyright (C) 1997-2010, International Business Machines Corporation and    *
     4 * others. All Rights Reserved.                                                *
     5 *******************************************************************************
     6 *
     7 * File FMTABLE.CPP
     8 *
     9 * Modification History:
    10 *
    11 *   Date        Name        Description
    12 *   03/25/97    clhuang     Initial Implementation.
    13 ********************************************************************************
    14 */
    16 #include "unicode/utypes.h"
    18 #if !UCONFIG_NO_FORMATTING && !UCONFIG_NO_CONVERSION
    20 #include "unicode/fmtable.h"
    22 // *****************************************************************************
    23 // class Formattable
    24 // *****************************************************************************
    26 U_NAMESPACE_BEGIN
    28 // -------------------------------------
    29 // Creates a formattable object with a char* string.
    30 // This API is useless. The API that takes a UnicodeString is actually just as good.
    31 // This is just a grandfathered API.
    33 Formattable::Formattable(const char* stringToCopy)
    34 {
    35     init();
    36     fType = kString;
    37     fValue.fString = new UnicodeString(stringToCopy);
    38 }
    40 U_NAMESPACE_END
    42 #endif /* #if !UCONFIG_NO_FORMATTING || !UCONFIG_NO_CONVERSION */
    44 //eof

mercurial