• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*=============================================================================
2     Copyright (c) 2020 Nikita Kniazev
3 
4     Use, modification and distribution is subject to the Boost Software
5     License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
6     http://www.boost.org/LICENSE_1_0.txt)
7 =============================================================================*/
8 
9 #include <boost/spirit/home/support/char_encoding/standard_wide.hpp>
10 
11 #include <boost/core/lightweight_test.hpp>
12 
13 #if defined(_MSC_VER) && _MSC_VER < 1700
14 # pragma warning(disable: 4428) // universal-character-name encountered in source
15 #endif
16 
main()17 int main()
18 {
19     {
20         using boost::spirit::char_encoding::standard_wide;
21         BOOST_TEST_EQ(standard_wide::toucs4(L'\uFFFF'), 0xFFFFu);
22         BOOST_TEST_EQ(standard_wide::toucs4(L'\u7FFF'), 0x7FFFu);
23         BOOST_TEST_EQ(standard_wide::toucs4(L'\u0024'), 0x0024u);
24     }
25 
26     return boost::report_errors();
27 }
28