Implement String#padStart/padEnd; Refactor internal string copy, compare and repeat (#171)

This commit is contained in:
Max Graey
2018-07-25 17:25:53 +03:00
committed by Daniel Wirtz
parent 298a8f1688
commit 671121bf70
15 changed files with 6385 additions and 3983 deletions

View File

@ -489,6 +489,8 @@ declare class String {
trim(): string;
trimLeft(): string;
trimRight(): string;
padStart(targetLength: i32, padString?: string): string;
padEnd(targetLength: i32, padString?: string): string;
repeat(count?: i32): string;
toString(): string;
toUTF8(): usize;