Contents

JSStringGetLength(_:)

Returns the number of Unicode characters in a JavaScript string.

Declaration

func JSStringGetLength(_ string: JSStringRef!) -> Int

Parameters

  • string:

    The Jsstringref with the length (in Unicode characters) you want to know.

Return Value

The number of Unicode characters in string.

See Also

Accessing JavaScript String Information