#include "String.hpp"
extern JSStringRef Array_s;
+extern JSStringRef constructor_s;
extern JSStringRef cy_s;
extern JSStringRef cyi_s;
extern JSStringRef cyt_s;
extern "C" void CYSetupContext(JSGlobalContextRef context);
const char *CYExecute(JSContextRef context, CYPool &pool, CYUTF8String code);
+
+#ifndef __ANDROID__
void CYCancel();
+#endif
void CYSetArgs(int argc, const char *argv[]);
}
public:
+ CYJSString() :
+ string_(NULL)
+ {
+ }
+
CYJSString(const CYJSString &rhs) :
string_(CYCopyJSString(rhs.string_))
{
return *this;
}
+ CYJSString &operator =(CYJSString &&rhs) {
+ std::swap(string_, rhs.string_);
+ return *this;
+ }
+
~CYJSString() {
Clear_();
}