2015-03-21 09:51:17 +00:00
|
|
|
#ifndef RR_STRING
|
|
|
|
#define RR_STRING
|
|
|
|
|
|
|
|
namespace rr {
|
|
|
|
|
|
|
|
class String: public Ref<v8::String> {
|
|
|
|
public:
|
|
|
|
static void Init();
|
|
|
|
|
2015-04-04 14:03:06 +00:00
|
|
|
static VALUE NewFromUtf8(VALUE self, VALUE isolate, VALUE value);
|
2015-03-21 09:51:17 +00:00
|
|
|
static VALUE Utf8Value(VALUE self);
|
|
|
|
static VALUE Concat(VALUE self, VALUE left, VALUE right);
|
|
|
|
|
|
|
|
inline String(VALUE value) : Ref<v8::String>(value) {}
|
2015-04-04 14:03:06 +00:00
|
|
|
inline String(v8::Isolate* isolate, v8::Handle<v8::String> string) : Ref<v8::String>(isolate, string) {}
|
2015-03-21 09:51:17 +00:00
|
|
|
|
|
|
|
virtual operator v8::Handle<v8::String>() const;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|