Add String::substring().

This commit is contained in:
Andreas Kling 2018-10-16 11:42:39 +02:00
commit 0c1a4e8de3
Notes: sideshowbarker 2024-07-19 18:47:35 +09:00
3 changed files with 33 additions and 14 deletions

View file

@ -14,6 +14,14 @@ static void testWeakPtr();
int main(int, char**)
{
{
String path = "/////abc/def////g/h/i//";
auto parts = path.split('/');
for (auto& part : parts)
printf("<%s>\n", part.characters());
}
String empty = "";
char* buffer;