1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00
therubyracer/ext/v8/rr_string.h

23 lines
540 B
C
Raw Normal View History

#ifndef RR_STRING
#define RR_STRING
namespace rr {
class String: public Ref<v8::String> {
public:
static void Init();
static VALUE NewFromUtf8(VALUE self, VALUE isolate, VALUE value);
static VALUE Utf8Value(VALUE self);
static VALUE Concat(VALUE self, VALUE left, VALUE right);
inline String(VALUE value) : Ref<v8::String>(value) {}
inline String(v8::Isolate* isolate, v8::Handle<v8::String> string) : Ref<v8::String>(isolate, string) {}
virtual operator v8::Handle<v8::String>() const;
};
}
#endif