A UTF16 character buffer that is the fundamental string representation in JavaScript.
Framework
- JavaScriptCore
A UTF16 character buffer that is the fundamental string representation in JavaScript.
Framework
func JSString Create With Characters(Unsafe Pointer<JSChar>!, Int)Creates a JavaScript string from a buffer of Unicode characters.
func JSString Create With UTF8CString(Unsafe Pointer<Int8>!)Creates a JavaScript string from a null-terminated UTF8 string.
func JSString Get Characters Ptr(JSString Ref!)Returns a pointer to the Unicode character buffer that serves as the backing store for a JavaScript string.
func JSString Get Length(JSString Ref!)Returns the number of Unicode characters in a JavaScript string.
func JSString Get Maximum UTF8CString Size(JSString Ref!)Returns the maximum number of bytes a JavaScript string will take up if converted into a null-terminated UTF8 string.
func JSString Get UTF8CString(JSString Ref!, Unsafe Mutable Pointer<Int8>!, Int)Converts a JavaScript string into a null-terminated UTF8 string, and copies the result into an external byte buffer.
func JSString Is Equal(JSString Ref!, JSString Ref!)Tests whether two JavaScript strings match.
func JSString Is Equal To UTF8CString(JSString Ref!, Unsafe Pointer<Int8>!)Tests whether a JavaScript string matches a null-terminated UTF8 string.
func JSString Release(JSString Ref!)Releases a JavaScript string.
func JSString Retain(JSString Ref!)Retains a JavaScript string.
See the Overview section above for header-level documentation.
typealias JSCharA Unicode character.
Defines the JavaScriptCore interface engine
A JavaScript Object
Contains CFString convenience methods.
A JavaScript value that is the base type for all JavaScript values and the polymorphic functions on them.