@@ -1316,10 +1316,13 @@ jerry_get_utf8_string_length (const jerry_value_t value);
1316
1316
1317
1317
**Summary**
1318
1318
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.
1323
1326
1324
1327
**Prototype**
1325
1328
@@ -1362,9 +1365,12 @@ jerry_string_to_char_buffer (const jerry_value_t value,
1362
1365
1363
1366
Copy the characters of a string into a specified utf-8 buffer.
1364
1367
The '\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
1366
1369
large enough for the whole string.
1367
1370
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
+
1368
1374
**Prototype**
1369
1375
1370
1376
```c
@@ -1410,6 +1416,9 @@ parameter is not a string. It will extract the substring between the
1410
1416
specified start position and the end position (or the end of the string,
1411
1417
whichever comes first).
1412
1418
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
+
1413
1422
**Prototype**
1414
1423
1415
1424
```c
@@ -1462,6 +1471,9 @@ parameter is not a string. It will extract the substring between the specified
1462
1471
start position and the end position (or the end of the string, whichever
1463
1472
comes first).
1464
1473
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
+
1465
1477
**Prototype**
1466
1478
1467
1479
```c
0 commit comments