From f1ba68bd61d35f084bf42db123c6667e170b981d Mon Sep 17 00:00:00 2001 From: egor-tensin Date: Tue, 4 Jul 2023 00:23:27 +0000 Subject: =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20egor-tensin/wina?= =?UTF-8?q?pi-utf8@5df6c58501383d82eff71e89e02957837258481c=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 98 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 index.html (limited to 'index.html') diff --git a/index.html b/index.html new file mode 100644 index 0000000..41b4683 --- /dev/null +++ b/index.html @@ -0,0 +1,98 @@ + + + + + + + +winapi_utf8: winapi-utf8 + + + + + + + + + +
+
+ + + + + + +
+
winapi_utf8 +
+
+
+ + + + + + + +
+ +
+
+ + +
+ +
+ +
+
+
winapi-utf8
+
+
+

+

CI

+

UTF-8 <-> UTF-16 conversion functions, mainly to be used with WinAPI.

+

+Usage

+

Include it in your CMake project and link to the winapi_utf8 target. Use the narrow() and widen() functions to convert to UTF-8 and UTF-16 respectively:

#include <winapi/utf8.hpp>
+
+winapi::narrow(u"Привет"); // Returns the UTF-8 representation
+winapi::widen(u8"Привет"); // Returns the UTF-16 representation
+

See the various convenience overloads of these function in the online documentation.

+

+Development

+

Build using CMake. Depends on Boost.Test. The project is Windows-only, so building with either MSVC or MinGW-w64 is required.

+

There's a Makefile with useful shortcuts to build the project in the build/ directory (defaults to building with MinGW-w64):

make deps
+make build
+make test
+

+Documentation

+

Build & display the documentation using

make docs
+

View the online documentation at https://egor-tensin.github.io/winapi-utf8/.

+

+License

+

Distributed under the MIT License. See LICENSE.txt for details.

+
+
+ + + + -- cgit v1.2.3