From 7349b345d5146684ba3c424f08904f5331697cd8 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Sat, 4 Sep 2021 13:53:17 +0800 Subject: [PATCH] added a new example program that it's fix filename test. --- CMakeLists.txt | 3 +++ FixFilenameTest.cpp | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 FixFilenameTest.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt index 39e9e7b..3e92dcf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,3 +19,6 @@ cm_example_project(GetCpuInfo) add_executable(CollectionTest CollectionTest.cpp) cm_example_project(CollectionTest) + +add_executable(FixFilenameTest FixFilenameTest.cpp) +cm_example_project(FixFilenameTest) \ No newline at end of file diff --git a/FixFilenameTest.cpp b/FixFilenameTest.cpp new file mode 100644 index 0000000..9b4ed85 --- /dev/null +++ b/FixFilenameTest.cpp @@ -0,0 +1,16 @@ +#include +#include + +using namespace std; +using namespace hgl; +using namespace hgl::filesystem; + +void main() +{ + constexpr os_char incorrect_filename[]=OS_TEXT("c:/win95\\\\ms-dos"); + + os_out<