#ifndef __rf_string_ih__ #define __rf_string_ih__ #include "pxx_string.ih" #include "rf_string.hh" #include "rf_object.ih" #include "rf_types.ih" #include "rf_static_object.hh" #include "rf_common.ih" namespace rftype { using namespace rfrt ; inline String::String(size_t _len) : Object(), pxx::WString(_len) {} inline String::String (pxx::WString const& _s) : Object(), pxx::WString(_s) {} inline String::String (String const& _s) : Object(), pxx::WString(_s) {} inline String::String(size_t _len, wchar_t _fill) : Object(), pxx::WString(_len) { for (size_t i = 0; i < _len; i++) (*this)[i] = _fill; } inline String& String::operator = (String const& _s) { if (this != &_s) { pxx::WString::operator=(_s); } return self; } inline unsigned String::get_type () const { return reg.get_type(); } inline pxx::WString String::to_string () const { return pxx::WString(this->get_data()); } template <> inline pxx::WString StaticObject::to_string() const { return String::to_string(); } inline uint32_t String::hash () const { return 0; } } #endif // __rf_string_ih__