Update to new librexy
This commit is contained in:
parent
a3ea13fc03
commit
5c261ed7ed
@ -52,8 +52,8 @@ namespace rjp{
|
||||
member& operator=(const member&) = default;
|
||||
member& operator=(member&&) = default;
|
||||
|
||||
rexy::string_view<char> key(void)const{
|
||||
return rexy::string_view<char>(member_key(this->m_value)->value, member_key(this->m_value)->length);
|
||||
rexy::string_view key(void)const{
|
||||
return rexy::string_view(member_key(this->m_value)->value, member_key(this->m_value)->length);
|
||||
}
|
||||
string steal_key(void){
|
||||
return string(this->m_value);
|
||||
@ -76,8 +76,8 @@ namespace rjp{
|
||||
member& operator=(const member&) = default;
|
||||
member& operator=(member&&) = default;
|
||||
|
||||
rexy::string_view<char> key(void)const{
|
||||
return rexy::string_view<char>(member_key(m_value)->value, member_key(m_value)->length);
|
||||
rexy::string_view key(void)const{
|
||||
return rexy::string_view(member_key(m_value)->value, member_key(m_value)->length);
|
||||
}
|
||||
string steal_key(void){
|
||||
return string(m_value);
|
||||
|
||||
@ -48,7 +48,7 @@ namespace rjp{
|
||||
string_val& operator=(const string_val&) = default;
|
||||
string_val& operator=(string_val&&) = default;
|
||||
|
||||
rexy::string_view<char> get(void)const;
|
||||
rexy::string_view get(void)const;
|
||||
string steal(void);
|
||||
void set(const rexy::string_base<char>& str);
|
||||
void set(string&& str);
|
||||
|
||||
@ -35,7 +35,7 @@ namespace rjp{
|
||||
vget_proxy(const rjp::value* v);
|
||||
operator int(void)const;
|
||||
operator bool(void)const;
|
||||
operator rexy::string_view<char>(void)const;
|
||||
operator rexy::string_view(void)const;
|
||||
operator double(void)const;
|
||||
};
|
||||
}
|
||||
|
||||
@ -70,9 +70,9 @@ namespace rjp{
|
||||
rjp_set_string_steal(m_value, i.release(), length);
|
||||
}
|
||||
|
||||
rexy::string_view<char> string_val::get(void)const{
|
||||
rexy::string_view string_val::get(void)const{
|
||||
const RJP_string* str = rjp_get_cstring(m_value);
|
||||
return rexy::string_view<char>(str->value, str->length);
|
||||
return rexy::string_view(str->value, str->length);
|
||||
}
|
||||
string string_val::steal(void){
|
||||
return string(m_value);
|
||||
|
||||
@ -32,7 +32,7 @@ namespace rjp::detail{
|
||||
vget_proxy::operator bool(void)const{
|
||||
return rjp::borrow_as<rjp::boolean>(*m_value).get();
|
||||
}
|
||||
vget_proxy::operator rexy::string_view<char>(void)const{
|
||||
vget_proxy::operator rexy::string_view(void)const{
|
||||
return rjp::borrow_as<rjp::string_val>(*m_value).get();
|
||||
}
|
||||
vget_proxy::operator double(void)const{
|
||||
|
||||
@ -123,7 +123,7 @@ rjp::value case_19(void){
|
||||
arr.add<rjp::integer>(5);
|
||||
rjp::object subobj = arr.add<rjp::object>();
|
||||
for(int i = 0;i < 10;++i){
|
||||
subobj.add<rjp::boolean>(rexy::string_view<char>(c), i % 2 == 0);
|
||||
subobj.add<rjp::boolean>(rexy::string_view(c), i % 2 == 0);
|
||||
c[3] += 1;
|
||||
}
|
||||
return rjp::steal_as<rjp::value>(arr);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user