Contents

JSStringIsEqualToUTF8CString(_:_:)

Tests whether a JavaScript string matches a null-terminated UTF-8 string.

Declaration

func JSStringIsEqualToUTF8CString(_ a: JSStringRef!, _ b: UnsafePointer<CChar>!) -> Bool

Parameters

  • a:

    The Jsstringref to test.

  • b:

    The null-terminated UTF-8 string to test.

Return Value

true if the two strings match; otherwise, false.

See Also

Comparing JavaScript Strings