You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CsString is a standalone library which provides unicode aware string support.
The CsBasicString class is a templated class which provides unicode aware string support. The encoding, such
as UTF-8 or UTF-16, is passed to the CsBasicString template. The following typedefs are provided for convenience.
using CsString = CsBasicString<utf8>;
using CsString_utf8 = CsBasicString<utf8>;
using CsString_utf16 = CsBasicString<utf16>;
System Requirements
Building CsString requires a C++20 compiler and a C++20 standard library.
CMake build files are provided with the source distribution to build this library. The unit test binary executable is
an optional part of the build process.
This library has been tested with clang sanitizer and an extensive industry code review.
Running the Catch Tests
To enable unit testing set the BUILD_TESTS in the root CMakeLists.txt file to ON. You can also configure the
setting by passing -DBUILD_TESTS=ON on the CMake command line.
If you do not have the Catch2 library installed the files can be download from our website. This is a header
only library.
Either add the path where the Catch2 files are located or pass the path using -DCMAKE_PREFIX_PATH on the CMake
command line. The following shows how to pass both arguments.
Our YouTube channel contains over 75 videos about C++, programming fundamentals, Unicode/Strings, multithreading,
graphics, CopperSpice, DoxyPress, and other software development topics.