40#if !defined(_NATIVE_WCHAR_T_DEFINED) \
41 && (!defined(__WCHAR_MAX__) || (__WCHAR_MAX__ > 0xffffU)) \
42 && (!defined(WCHAR_MAX) || (WCHAR_MAX > 0xffffU))
struct OpaqueJSString * JSStringRef
Definition JSBase.h:49
#define JS_EXPORT
Definition JSBase.h:93
const JSChar * JSStringGetCharactersPtr(JSStringRef string)
Returns a pointer to the Unicode character buffer that serves as the backing store for a JavaScript s...
JSStringRef JSStringCreateWithCharacters(const JSChar *chars, size_t numChars)
Creates a JavaScript string from a buffer of Unicode characters.
bool JSStringIsEqualToUTF8CString(JSStringRef a, const char *b)
Tests whether a JavaScript string matches a null-terminated UTF8 string.
void JSStringRelease(JSStringRef string)
Releases a JavaScript string.
unsigned short JSChar
A UTF-16 code unit. One, or a sequence of two, can encode any Unicode character. As with all scalar t...
Definition JSStringRef.h:49
size_t JSStringGetMaximumUTF8CStringSize(JSStringRef string)
Returns the maximum number of bytes a JavaScript string will take up if converted into a null-termina...
JSStringRef JSStringCreateWithUTF8CString(const char *string)
Creates a JavaScript string from a null-terminated UTF8 string.
size_t JSStringGetUTF8CString(JSStringRef string, char *buffer, size_t bufferSize)
Converts a JavaScript string into a null-terminated UTF8 string, and copies the result into an extern...
size_t JSStringGetLength(JSStringRef string)
Returns the number of Unicode characters in a JavaScript string.
bool JSStringIsEqual(JSStringRef a, JSStringRef b)
Tests whether two JavaScript strings match.
JSStringRef JSStringRetain(JSStringRef string)
Retains a JavaScript string.