Changeset 399 for trunk/src/lua/lua_path.cc
- Timestamp:
- 06/13/15 11:47:09 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lua/lua_path.cc
r395 r399 14 14 { 15 15 if ( m_elements[0].length == 0 || m_elements[0].str == nullptr ) return; 16 string_ refspath( m_elements[0].str, m_elements[0].length );16 string_view spath( m_elements[0].str, m_elements[0].length ); 17 17 m_count = 0; 18 18 size_t point = spath.find( '.' ); 19 19 20 while ( point != string_ ref::npos )20 while ( point != string_view::npos ) 21 21 { 22 22 m_elements[m_count].str = spath.data(); … … 39 39 } 40 40 41 void nv::lua::path::push( string_ refp )41 void nv::lua::path::push( string_view p ) 42 42 { 43 43 m_elements[ m_count ].str = p.data();
Note: See TracChangeset
for help on using the changeset viewer.