/third_party/boost/libs/nowide/test/ |
D | test_iostream.cpp | 19 using namespace boost::nowide::utf; in isValidUTF8() 38 if(boost::nowide::cin.rdbuf() == std::cin.rdbuf()) in test_main() 45 TEST(boost::nowide::cin.putback(c)); in test_main() 47 TEST(boost::nowide::cin.get() == ci); in test_main() 55 TEST(boost::nowide::cin.putback(c)); in test_main() 60 TEST(boost::nowide::cin.get() == c); in test_main() 63 boost::nowide::cout << "Normal I/O:" << std::endl; in test_main() 64 boost::nowide::cout << example << std::endl; in test_main() 65 boost::nowide::cerr << example << std::endl; in test_main() 67 boost::nowide::cout << "Flushing each character:" << std::endl; in test_main() [all …]
|
D | test_convert.cpp | 22 TEST(boost::nowide::widen(buf, 50, s.c_str()) == buf); in widen_buf_ptr() 29 TEST(boost::nowide::narrow(buf, 50, s.c_str()) == buf); in narrow_buf_ptr() 36 TEST(boost::nowide::widen(buf, 50, s.c_str(), s.c_str() + s.size()) == buf); in widen_buf_range() 43 TEST(boost::nowide::narrow(buf, 50, s.c_str(), s.c_str() + s.size()) == buf); in narrow_buf_range() 49 return boost::nowide::widen(s.c_str()); in widen_raw_string() 54 return boost::nowide::narrow(s.c_str()); in narrow_raw_string() 61 return boost::nowide::widen(s2.c_str(), s.size()); in widen_raw_string_and_size() 68 return boost::nowide::narrow(s2.c_str(), s.size()); in narrow_raw_string_and_size() 83 TEST(boost::nowide::widen(buf, 5, b, e) == buf); in test_main() 86 TEST(boost::nowide::widen(buf, 4, b, e) == 0); in test_main() [all …]
|
D | test_env.cpp | 36 TEST(boost::nowide::setenv("BOOST_TEST1", example.c_str(), 1) == 0); in test_main() 37 TEST(boost::nowide::getenv("BOOST_TEST1")); in test_main() 38 TEST(boost::nowide::getenv("BOOST_TEST1") == example); in test_main() 39 TEST(boost::nowide::setenv("BOOST_TEST1", "xx", 0) == 0); in test_main() 40 TEST(boost::nowide::getenv("BOOST_TEST1") == example); in test_main() 41 TEST(boost::nowide::putenv(penv) == 0); in test_main() 42 TEST(boost::nowide::getenv("BOOST_TEST2")); in test_main() 43 TEST(boost::nowide::getenv("BOOST_TEST_INVALID") == 0); in test_main() 44 TEST(boost::nowide::getenv("BOOST_TEST2") == example + "x"); in test_main() 53 TEST(boost::nowide::putenv(penv2) == -1); in test_main() [all …]
|
D | test_stdio.cpp | 22 FILE* f = boost::nowide::detail::wfopen(boost::nowide::widen(filename).c_str(), L"r"); in file_exists() 38 FILE* f = boost::nowide::detail::wfopen(boost::nowide::widen(filename).c_str(), L"w"); in create_test_file() 65 FILE* f = boost::nowide::fopen(filename.c_str(), "r"); in test_main() 76 TEST(boost::nowide::remove(filename.c_str()) == 0); in test_main() 81 boost::nowide::remove(filename.c_str()); in test_main() 83 TEST(boost::nowide::fopen(filename.c_str(), "r") == NULL); in test_main() 89 FILE* f = boost::nowide::fopen(filename.c_str(), "r+"); in test_main() 102 FILE* f2 = boost::nowide::freopen(NULL, "r", f); in test_main() 104 f2 = boost::nowide::freopen(filename.c_str(), "r", f); in test_main() 118 TEST(boost::nowide::freopen(filename2.c_str(), "w", f) == f); in test_main() [all …]
|
D | test_system.cpp | 39 namespace utf = boost::nowide::utf; in replace_non_ascii() 87 const char* bnw_value = boost::nowide::getenv(key.c_str()); in compare_getenv() 110 TEST(boost::nowide::getenv("BOOST_NOWIDE_TEST")); in run_child() 111 TEST_EQ(boost::nowide::getenv("BOOST_NOWIDE_TEST"), example); in run_child() 112 TEST(boost::nowide::getenv("BOOST_NOWIDE_TEST_NONE") == 0); in run_child() 115 TEST(boost::nowide::getenv("BOOST_NOWIDE_EMPTY")); in run_child() 116 TEST_EQ(boost::nowide::getenv("BOOST_NOWIDE_EMPTY"), std::string()); in run_child() 135 TEST(boost::nowide::setenv("BOOST_NOWIDE_TEST", example.c_str(), 1) == 0); in run_parent() 136 TEST(boost::nowide::setenv("BOOST_NOWIDE_TEST_NONE", example.c_str(), 1) == 0); in run_parent() 137 TEST(boost::nowide::unsetenv("BOOST_NOWIDE_TEST_NONE") == 0); in run_parent() [all …]
|
D | test_stat.cpp | 23 boost::nowide::remove(filename.c_str()); in test_main() 32 TEST(boost::nowide::stat(filename.c_str(), &stdStat) != 0); in test_main() 33 boost::nowide::stat_t boostStat; in test_main() 34 TEST(boost::nowide::stat(filename.c_str(), &boostStat) != 0); in test_main() 38 FILE* f = boost::nowide::fopen(filename.c_str(), "wb"); in test_main() 50 TEST(boost::nowide::stat(filename.c_str(), &stdStat) == 0); in test_main() 52 boost::nowide::stat_t boostStat; in test_main() 53 TEST(boost::nowide::stat(filename.c_str(), &boostStat) == 0); in test_main() 63 … TEST(boost::nowide::detail::stat(filename.c_str(), &stdStat, sizeof(stdStat) - 4u) == EINVAL); in test_main() 68 boost::nowide::remove(filename.c_str()); in test_main()
|
D | test_fs.cpp | 20 boost::nowide::nowide_filesystem(); in test_main() 26 boost::nowide::ofstream f(utf8_name.c_str()); in test_main() 31 TEST(boost::filesystem::is_regular_file(boost::nowide::widen(utf8_name))); in test_main() 34 TEST(boost::nowide::remove(utf8_name.c_str()) == 0); in test_main() 36 TEST(!boost::filesystem::is_regular_file(boost::nowide::widen(utf8_name))); in test_main() 41 boost::nowide::ofstream f(path); in test_main() 47 boost::nowide::ifstream f(path); in test_main() 54 boost::nowide::fstream f(path); in test_main()
|
D | test_stackstring.cpp | 22 class test_basic_stackstring : public boost::nowide::basic_stackstring<CharOut, CharIn, BufferSize> 25 typedef boost::nowide::basic_stackstring<CharOut, CharIn, BufferSize> parent; 69 std::wstring whello = boost::nowide::widen(hello); in test_main() 74 const boost::nowide::short_stackstring s; in test_main() 79 const boost::nowide::short_stackstring s(NULL); in test_main() 81 const boost::nowide::short_stackstring s2(NULL, NULL); in test_main() 86 boost::nowide::short_stackstring s(L"foo"); in test_main() 90 boost::nowide::short_stackstring s2(L"foo"); in test_main() 97 const boost::nowide::short_stackstring s(wempty); in test_main() 100 const boost::nowide::short_stackstring s2(wempty, wempty); in test_main() [all …]
|
D | test_codecvt.cpp | 23 static const std::wstring wide_name_str = boost::nowide::widen(utf8_name); 149 std::locale l(std::locale::classic(), new boost::nowide::utf8_codecvt<wchar_t>()); in test_codecvt_conv() 175 std::locale l(std::locale::classic(), new boost::nowide::utf8_codecvt<wchar_t>()); in test_codecvt_err() 194 TEST(std::wstring(to, to_end) == boost::nowide::widen(err_utf)); in test_codecvt_err() 237 TEST(std::string(to, to_next) == boost::nowide::narrow(wreplacement_str)); in test_codecvt_err() 258 TEST(std::string(to, to_next) == "1" + boost::nowide::narrow(wreplacement_str)); in test_codecvt_err() 265 std::locale l(std::locale::classic(), new boost::nowide::utf8_codecvt<wchar_t>()); in codecvt_to_wide() 292 std::locale l(std::locale::classic(), new boost::nowide::utf8_codecvt<wchar_t>()); in codecvt_to_narrow() 310 return std::string(to, to_next) + boost::nowide::narrow(wreplacement_str); in codecvt_to_narrow()
|
D | test.hpp | 22 namespace nowide { namespace 41 inline boost::nowide::test_monitor& test_mon() in test_mon() 43 static boost::nowide::test_monitor instance; in test_mon()
|
D | Jamfile.v2 | 9 # See library home page at http://www.boost.org/libs/nowide 28 <library>/boost/nowide//boost_nowide
|
/third_party/boost/libs/nowide/ |
D | README.md | 5 …nowide/tree/master) | [![Build Status](https://travis-ci.com/boostorg/nowide.svg?branch=master)]… 6 …nowide/tree/develop) | [![Build Status](https://travis-ci.com/boostorg/nowide.svg?branch=develop)]… 8 …://scan.coverity.com/projects/20464/badge.svg)](https://scan.coverity.com/projects/boostorg-nowide) 41 …(https://github.com/boostorg/nowide/tree/standalone) keeps track of the [develop branch](https://g… 53 - `std::ifstream -> boost::nowide::ifstream` 54 - `std::fopen -> boost::nowide::fopen` 55 - `std::fclose -> boost::nowide::fclose` 56 - `std::getenv -> boost::nowide::getenv` 57 - `std::putenv -> boost::nowide::putenv` 58 - `std::cout -> boost::nowide::cout` [all …]
|
D | CMakeLists.txt | 12 # Created target: Boost::nowide 48 add_library(Boost::nowide ALIAS boost_nowide) 53 EXPORT_NAME nowide
|
/third_party/boost/libs/nowide/doc/ |
D | main.dox | 106 you simply include \c boost/nowide/cstdio.hpp and use \c boost::nowide::fopen. 156 As a developer you are expected to use \c boost::nowide functions instead of the functions availabl… 190 #include <boost/nowide/args.hpp> 191 #include <boost/nowide/fstream.hpp> 192 #include <boost/nowide/iostream.hpp> 196 boost::nowide::args a(argc,argv); // Fix arguments - make them UTF-8 198 boost::nowide::cerr << "Usage: file_name" << std::endl; // Unicode aware console 202 boost::nowide::ifstream f(argv[1]); // argv[1] - is UTF-8 205 boost::nowide::cerr << "Can't open " << argv[1] << std::endl; 215 boost::nowide::cout << "File " << argv[1] << " has " << total_lines << " lines" << std::endl; [all …]
|
D | changelog.dox | 17 - Generic UTF conversion functions are now available in the boost::nowide::utf namespace 22 - boost::nowide::cin now ignores CR (\r) characters and treats CTRL+Z at the beginning of a line as… 23 - boost::nowide::cin supports sync by flushing the input and console buffer
|
/third_party/boost/boost/nowide/detail/ |
D | convert.hpp | 16 namespace nowide { namespace 18 using boost::nowide::utf::convert_buffer; 19 using boost::nowide::utf::convert_string; 20 using boost::nowide::utf::strlen;
|
D | utf.hpp | 16 namespace nowide { namespace 18 namespace utf = boost::nowide::utf;
|
/third_party/boost/libs/nowide/test/exampleProject/ |
D | example_main.cpp | 14 boost::nowide::args _(argc, argv, env); in main() 17 if(boost::nowide::narrow(boost::nowide::widen(argv[0])) != argv[0]) in main()
|
D | CMakeLists.txt | 8 target_link_libraries(example PRIVATE Boost::nowide)
|
/third_party/boost/boost/nowide/ |
D | filesystem.hpp | 17 namespace nowide { namespace 23 std::locale tmp = std::locale(std::locale(), new boost::nowide::utf8_codecvt<wchar_t>()); in nowide_filesystem()
|
D | cstdlib.hpp | 17 namespace nowide { namespace
|
/third_party/boost/libs/nowide/tools/ |
D | create_standalone.sh | 30 cp -r include/boost/nowide "$targetFolder"/include 32 cp standalone/*.hpp "$targetFolder"/include/nowide
|
/third_party/boost/libs/nowide/build/ |
D | Jamfile.v2 | 9 # See library home page at http://www.boost.org/libs/nowide 22 project boost/nowide
|
/third_party/boost/libs/nowide/src/ |
D | cstdlib.cpp | 23 namespace nowide { namespace 46 namespace nowide { namespace
|
D | stat.cpp | 24 namespace nowide { namespace
|