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