mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
23 lines
494 B
C
23 lines
494 B
C
|
#ifndef RR_STRING
|
||
|
#define RR_STRING
|
||
|
|
||
|
namespace rr {
|
||
|
|
||
|
class String: public Ref<v8::String> {
|
||
|
public:
|
||
|
static void Init();
|
||
|
|
||
|
static VALUE NewFromUtf8(VALUE self, 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::Handle<v8::String> string) : Ref<v8::String>(string) {}
|
||
|
|
||
|
virtual operator v8::Handle<v8::String>() const;
|
||
|
};
|
||
|
|
||
|
}
|
||
|
|
||
|
#endif
|