Skip to content

Commit 004719a

Browse files
authored
[Docs] Update embind docs after #16349 string-creation functions (#16514)
1 parent 6abf9a3 commit 004719a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

site/source/docs/api_reference/val.h.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,16 @@ Guide material for this class can be found in :ref:`embind-val-guide`.
8787
Creates and returns a new ``Object``.
8888

8989

90+
.. cpp:function:: static val u8string(const char* s)
91+
92+
Creates a ``val`` from a string literal in UTF-8 encoding.
93+
94+
95+
.. cpp:function:: static val u16string(const char16_t* s)
96+
97+
Creates a ``val`` from a string literal in UTF-16 encoding.
98+
99+
90100
.. cpp:function:: static val undefined()
91101

92102
Creates a ``val`` that represents ``undefined``.

0 commit comments

Comments
 (0)