Modules/Objects/public/primitives/stringobject.h
2024-11-24 22:36:45 +03:00

24 lines
No EOL
677 B
C++

#pragma once
#include "core/object.h"
namespace obj {
struct StringObject : Object {
tp::String val;
static ObjectType TypeData;
static void constructor(Object* self);
static void destructor(StringObject* self);
static void copy(Object* self, const Object* in);
static StringObject* create(tp::String in);
static void from_int(StringObject* self, tp::alni in);
static void from_float(StringObject* self, tp::alnf in);
static void from_string(StringObject* self, tp::String in);
static tp::String to_string(StringObject* self);
static tp::alni to_int(StringObject* self);
static tp::alnf to_float(StringObject* self);
};
};