Python-like string methods
The TNL::String
class should be expanded to include methods inspired by the Python str
class. Without that, there is no reason to keep using TNL::String
instead of std::string
.
Most important methods:
-
replace -
strip -
lstrip -
rstrip -
startswith -
endswith -
count -
find -
rfind -
join -
substr (Python does it with the string[start:end+1]
syntax)