JavaScript-1.5 Reference

JS_GetStringLength Function

Summary

Determines the length, in characters, of a JS string.

Syntax

size_t JS_GetStringLength(JSString *str);

Description

JS_GetStringLength reports the length, in characters, of a specified JS string, str. Note that JS strings are stored in Unicode format, so JS_GetStringLength does not report the number of bytes allocated to a string, but the number of characters in the string.

See Also

Groups [ Function ]
Documents [ LXR ID Search ]
Entries [ JS_CompareStrings | JS_ConvertValue | JS_GetEmptyStringValue | JS_GetStringBytes | JS_InternString | JS_NewArrayObject | JS_NewDouble | JS_NewFunction | JS_NewObject | JS_NewString | JS_NewStringCopyN | JS_NewStringCopyZ | JS_ValueToString ]

This page was generated by APIDOC