Added String::substring() method

Based on pull request #355 from abodelot
This commit is contained in:
Jan Haller 2014-02-09 22:18:34 +01:00
parent aeed9dddac
commit 09860f7a02
2 changed files with 24 additions and 0 deletions

View file

@ -304,6 +304,13 @@ void String::replace(const String& searchFor, const String& replaceWith)
}
////////////////////////////////////////////////////////////
String String::substring(std::size_t position, std::size_t length) const
{
return m_string.substr(position, length);
}
////////////////////////////////////////////////////////////
const Uint32* String::getData() const
{