Implement String#slice (#404)

This commit is contained in:
LiaoPeng
2019-01-10 19:10:23 +08:00
committed by Daniel Wirtz
parent d82995c686
commit 201bd5f2b1
8 changed files with 3270 additions and 2803 deletions

View File

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