Ultralight C++ API 1.4.0
|
#include <AppCore/JSHelpers.h>
JavaScript String wrapper that automatically manages JSStringRef lifetime and provides helpful conversions.
Public Member Functions | |
JSString () | |
Create empty string. | |
JSString (const char *str) | |
Create from C-string. | |
JSString (const String &str) | |
Create from Ultralight String. | |
JSString (JSStringRef str) | |
Create from existing JSStringRef. | |
JSString (const JSString &other) | |
Copy constructor. | |
~JSString () | |
Destructor. | |
JSString & | operator= (const JSString &other) |
Assignment operator. | |
operator String () | |
Cast to String. | |
operator JSStringRef () const | |
Cast to underlying JSStringRef. | |
Protected Attributes | |
JSStringRef | instance_ |
JSString | ( | ) |
Create empty string.
JSString | ( | const char * | str | ) |
Create from C-string.
JSString | ( | JSStringRef | str | ) |
Create from existing JSStringRef.
~JSString | ( | ) |
Destructor.
|
inline |
Cast to underlying JSStringRef.
|
protected |