mirror of
https://github.com/glfw/glfw.git
synced 2026-09-22 16:52:57 +00:00
Add note on C++11/C11 UTF-8 literals
This commit is contained in:
@@ -587,6 +587,12 @@ characters directly in the source.
|
|||||||
glfwSetWindowTitle(window, "星を追う子ども");
|
glfwSetWindowTitle(window, "星を追う子ども");
|
||||||
@endcode
|
@endcode
|
||||||
|
|
||||||
|
If you are using C++11 or C11, you can use a UTF-8 string literal.
|
||||||
|
|
||||||
|
@code
|
||||||
|
glfwSetWindowTitle(window, u8"This is always a UTF-8 string");
|
||||||
|
@endcode
|
||||||
|
|
||||||
|
|
||||||
@subsection window_monitor Window monitor
|
@subsection window_monitor Window monitor
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user