mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:47:34 +00:00
Add String::substring().
This commit is contained in:
parent
9cd0a34b5c
commit
0c1a4e8de3
3 changed files with 33 additions and 14 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue