Ignore:
Timestamp:
05/29/15 12:12:47 (10 years ago)
Author:
epyon
Message:
  • important fix in reverse_iterator operators
  • std::string functions removed or converted to string_ref in string.hh
  • capi.hh - more function forwards and usage of them instead of libc
  • more std removal
  • assert fix
File:
1 edited

Legend:

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

    r374 r378  
    5555        nv::map_area* map_area = nv::lua::detail::to_map_area( L, 3 );
    5656        lua_settop( L, 2 );
    57         std::string code = nv::trimmed( lua_tostring( L, 1 ) );
    58         nv::remove_chars( code, " \r\t" );
     57        std::string code = nv::trimmed( lua_tostring( L, 1 ) ).to_string();
     58        std::string chars( " \r\t" );
     59        code.erase( nv::remove_if( code.begin(), code.end(),
     60                [&chars] ( const char& c )
     61        {
     62                return chars.find( c ) != std::string::npos;
     63        } ), code.end() );
    5964
    6065        map_tile tile;
Note: See TracChangeset for help on using the changeset viewer.