fmtable_cnv.cpp 1.4 KB

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