mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
crafting system!
This commit is contained in:
parent
2e41a5e304
commit
3de176cc58
22 changed files with 703 additions and 143 deletions
|
@ -22,7 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
|
||||
#include <string>
|
||||
|
||||
std::string trim(std::string str);
|
||||
std::string trim(const std::string &str);
|
||||
|
||||
class Strfnd{
|
||||
std::string tek;
|
||||
|
@ -74,8 +74,9 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
inline std::string trim(std::string str)
|
||||
inline std::string trim(const std::string &s)
|
||||
{
|
||||
std::string str = s;
|
||||
while(
|
||||
str.length()>0
|
||||
&&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue