Ignore:
Timestamp:
06/13/15 11:47:09 (10 years ago)
Author:
epyon
Message:
  • naming cleanup
  • string_ref -> string_view (compatible with C++17 standard!)
  • *_ref and const_*_ref, renamed to _ref and _view for consistency
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lua/lua_values.cc

    r395 r399  
    7575}
    7676
    77 void nv::lua::detail::push_string_ref( lua_State *L, string_ref s )
     77void nv::lua::detail::push_string_view( lua_State *L, string_view s )
    7878{
    7979        lua_pushlstring( L, s.data(), s.size() );
     
    123123}
    124124
    125 nv::string_ref nv::lua::detail::to_string_ref( lua_State *L, int index )
     125nv::string_view nv::lua::detail::to_string_view( lua_State *L, int index )
    126126{
    127127        size_t length = 0;
    128128        const char* result = lua_tolstring( L, index, &length );
    129         return string_ref( result, length );
     129        return string_view( result, length );
    130130}
    131131
Note: See TracChangeset for help on using the changeset viewer.