intl/icu/source/i18n/fmtable_cnv.cpp

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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