1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:47:34 +00:00

Add String::substring().

This commit is contained in:
Andreas Kling 2018-10-16 11:42:39 +02:00
parent 9cd0a34b5c
commit 0c1a4e8de3
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;