Ultralight C++ API 1.3.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_ |
ultralight::JSString::JSString | ( | ) |
Create empty string.
ultralight::JSString::JSString | ( | const char * | str | ) |
Create from C-string.
ultralight::JSString::JSString | ( | JSStringRef | str | ) |
Create from existing JSStringRef.
ultralight::JSString::JSString | ( | const JSString & | other | ) |
Copy constructor.
ultralight::JSString::~JSString | ( | ) |
Destructor.
|
inline |
Cast to underlying JSStringRef.
|
protected |