forked from TypeScriptToLua/TypeScriptToLua
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstring.d.ts
More file actions
23 lines (22 loc) · 764 Bytes
/
string.d.ts
File metadata and controls
23 lines (22 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/** @noSelf */
declare namespace string {
function byte(s: string, i?: number): number | undefined;
/** @tupleReturn */
function byte(s: string, i?: number, j?: number): number[];
/** @tupleReturn */
function gsub(
source: string,
searchValue: string,
replaceValue: string | ((...groups: string[]) => string),
n?: number
): [string, number];
function sub(s: string, i: number, j?: number): string;
function format(formatstring: string, ...args: any[]): string;
function match(string: string, pattern: string): string;
function find(
string: string,
pattern: string,
start?: number,
plainflag?: boolean
): LuaMultiReturn<[number, number] | [undefined]>;
}