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 12 #include <unicode/uversion.h> 13 #include <unicode/locid.h> 14 #include <unicode/utypes.h> 15 #include <unicode/uchar.h> 16 #include <unicode/coll.h> 17 18 #if defined(_MSC_VER) && !defined(_DLL) 19 #error "Mixing ICU with a static runtime doesn't work" 20 #endif 21 main()22int main() 23 { 24 icu::Locale loc; 25 UErrorCode err = U_ZERO_ERROR; 26 UChar32 c = ::u_charFromName(U_UNICODE_CHAR_NAME, "GREEK SMALL LETTER ALPHA", &err); 27 return err; 28 } 29 30