Function

JSStringGetLength(_:)

Returns the number of Unicode characters in a JavaScript string.

Declaration

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

Parameters

string

The JSString whose length (in Unicode characters) you want to know.

Return Value

The number of Unicode characters stored in string.