@@ -1316,10 +1316,13 @@ jerry_get_utf8_string_length (const jerry_value_t value);
13161316
13171317**Summary**
13181318
1319- Copy the characters of a string into a specified buffer. The
1320- '\0' character could occur in character buffer. Returns 0,
1321- if the value parameter is not a string or the buffer is
1322- not large enough for the whole string.
1319+ Copy the characters of a string into a specified cesu-8 buffer.
1320+ The '\0' character could occur in the character buffer. Returns 0,
1321+ if the value parameter is not a string or the buffer is not large
1322+ enough for the whole string.
1323+
1324+ *Note*: Does not put '\0' to the end of string, the return value identifies
1325+ the number of valid bytes in the output buffer.
13231326
13241327**Prototype**
13251328
@@ -1362,9 +1365,12 @@ jerry_string_to_char_buffer (const jerry_value_t value,
13621365
13631366Copy the characters of a string into a specified utf-8 buffer.
13641367The '\0' character could occur in character buffer. Returns 0,
1365- if the value parameter is not a string or the buffer isn't
1368+ if the value parameter is not a string or the buffer is not
13661369large enough for the whole string.
13671370
1371+ *Note*: Does not put '\0' to the end of string, the return value identifies
1372+ the number of valid bytes in the output buffer.
1373+
13681374**Prototype**
13691375
13701376```c
@@ -1410,6 +1416,9 @@ parameter is not a string. It will extract the substring between the
14101416specified start position and the end position (or the end of the string,
14111417whichever comes first).
14121418
1419+ *Note*: Does not put '\0' to the end of string, the return value identifies
1420+ the number of valid bytes in the output buffer.
1421+
14131422**Prototype**
14141423
14151424```c
@@ -1462,6 +1471,9 @@ parameter is not a string. It will extract the substring between the specified
14621471start position and the end position (or the end of the string, whichever
14631472comes first).
14641473
1474+ *Note*: Does not put '\0' to the end of string, the return value identifies
1475+ the number of valid bytes in the output buffer.
1476+
14651477**Prototype**
14661478
14671479```c
0 commit comments