Implement String#split (#301)

This commit is contained in:
Max Graey
2018-10-18 20:05:35 +03:00
committed by Daniel Wirtz
parent 086d96b299
commit 711f73b15d
13 changed files with 7436 additions and 3257 deletions

View File

@ -491,6 +491,7 @@ declare class String {
padStart(targetLength: i32, padString?: string): string;
padEnd(targetLength: i32, padString?: string): string;
repeat(count?: i32): string;
split(separator?: string, limit?: i32): string[];
toString(): string;
static fromUTF8(ptr: usize, len: usize): string;
toUTF8(): usize;