DI-Guy Lua AI SDK
 All Classes Files Functions Variables Groups Pages
string Class Reference

Lua's built in string library. More...

Static Public Member Functions

static byte (s[, i])
 returns numerical code, nil if index out of range, default i=1 More...
 
static char (i1, i2,...)
 returns a string built from 0 or more integers More...
 
static dump (function)
 returns binary representation of function, used with loadstring More...
 
static find (s, pattern[, init[, plain]])
 matches pattern in s, returns start,end indices, else nil More...
 
static format (formatstring, e1, e2,...)
 returns formatted string, printf-style More...
 
static gfind (s, pat)
 returns iterator function that returns next captures from pattern pat on s More...
 
static gsub (s, pat, repl[, n])
 returns copy of s with pat replaced by repl, and substitutions made More...
 
static len (s)
 returns string length More...
 
static lower (s)
 returns string with letters in lower case More...
 
static rep (s, n)
 returns string with n copies of string s More...
 
static sub (s, i[, j])
 returns substring from index i to j of s, default j=-1 (string length) More...
 
static upper (s)
 returns string with letters in upper case More...
 
static split (str, pat)
 
static split_lines (str)
 

Detailed Description

Lua's built in string library.

Member Function Documentation

static string::byte ( s  [, i])
static

returns numerical code, nil if index out of range, default i=1

static string::char ( i1  ,
i2  ,
  ... 
)
static

returns a string built from 0 or more integers

static string::dump ( function  )
static

returns binary representation of function, used with loadstring

static string::find ( s  ,
pattern]  [, init[, plain] 
)
static

matches pattern in s, returns start,end indices, else nil

static string::format ( formatstring  ,
e1  ,
e2  ,
  ... 
)
static

returns formatted string, printf-style

static string::gfind ( s  ,
pat   
)
static

returns iterator function that returns next captures from pattern pat on s

static string::gsub ( s  ,
pat  ,
repl  [, n] 
)
static

returns copy of s with pat replaced by repl, and substitutions made

static string::len ( s  )
static

returns string length

static string::lower ( s  )
static

returns string with letters in lower case

static string::rep ( s  ,
 
)
static

returns string with n copies of string s

static string::split ( str  ,
pat   
)
static
static string::split_lines ( str  )
static
static string::sub ( s  ,
i  [, j] 
)
static

returns substring from index i to j of s, default j=-1 (string length)

static string::upper ( s  )
static

returns string with letters in upper case


The documentation for this class was generated from the following files: