has_icu_test.cpp 660 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. *
  3. * Copyright (c) 2010
  4. * John Maddock
  5. *
  6. * Use, modification and distribution are subject to the
  7. * Boost Software License, Version 1.0. (See accompanying file
  8. * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  9. *
  10. */
  11. #include <unicode/uversion.h>
  12. #include <unicode/locid.h>
  13. #include <unicode/utypes.h>
  14. #include <unicode/uchar.h>
  15. #include <unicode/coll.h>
  16. #if defined(_MSC_VER) && !defined(_DLL)
  17. #error "Mixing ICU with a static runtime doesn't work"
  18. #endif
  19. int main()
  20. {
  21. icu::Locale loc;
  22. UErrorCode err = U_ZERO_ERROR;
  23. UChar32 c = ::u_charFromName(U_UNICODE_CHAR_NAME, "GREEK SMALL LETTER ALPHA", &err);
  24. return err;
  25. }