mingodad
|
75b03f6d50
Added global function "getdefaultdelegate" and fix all other "getdelegate" exposed in SquiLu.
|
13 роки тому |
mingodad
|
8f80ca9b1d
Added new function "gettypetag", and expose more delegates.
|
13 роки тому |
mingodad
|
325272f49f
Small code cleanup.
|
13 роки тому |
mingodad
|
4bb28b62f4
Added a split function to string that uses a char as delimiter, the original split function that uses strtok was renamed to split_by_strtok.
|
13 роки тому |
mingodad
|
f889b29cc5
Add new function "atexithandler" to register a function to be called at scripting exit.
|
13 роки тому |
mingodad
|
b83a9aac54
Added method "empty" to array
|
13 роки тому |
mingodad
|
ad3e5f5c6c
Added two new api functions "sq_setfenv" and "sq_getfenv" the first sets a function environment with optionally cloning it, the second gets (push on stack) a function env with the option to push the roottable when the env is null.
|
13 роки тому |
mingodad
|
d3e269f179
Added new string function "match" with almost the same functionality as the Lua string.match except it do not return multiple values.
|
13 роки тому |
mingodad
|
ea9f897ddb
Added a "bsearch" method to array.
|
13 роки тому |
mingodad
|
6292263419
Add new api to push lasterror_stackinfo.
|
13 роки тому |
mingodad
|
7ab0496f93
Added new string functions:
|
13 роки тому |
mingodad
|
5477147187
Moved string functions from string lib to string delegate also add alias "size" for "len".
|
13 роки тому |
mingodad
|
8107e1ac97
Moved macro to header file and added a check to the value returned by sq_size.
|
13 роки тому |
mingodad
|
8c2ae4887e
Fixed a mistake of referencing the container in the wrong position in the stack on functions container_rawget and container_get
|
13 роки тому |
mingodad
|
2b3881c277
Added 2 new functions to string "startswith" and "endswith", also changed find lua to accept only the pattern matching to make it easy to use when we only need to know if the match exists.
|
13 роки тому |
mingodad
|
ded4631ac8
Add new function to string delegate find_close_quote will find a single quote on a string starting at the given start point default to 0, any adjacent double quotes are skipped.
|
13 роки тому |
mingodad
|
ec90a6c201
Added new function to strings replace that do not use regular expressions.
|
13 роки тому |
mingodad
|
3ce65dde6a
Added a new container function "get" that accepts a default parameter to return in case of key not found, rawget was extended to accept a default parameter as well.
|
13 роки тому |
mingodad
|
b43f799998
On the implementation of string.gsub make checks on the result of sq_get to not go forward if it doesn't succeed.
|
13 роки тому |
mingodad
|
1829e76e0f
Add a vector to SharedState where to store release hooks to be called when is safe to work with the vm, right now I'm calling it after calls to closures and whe finalizing the vm.
|
13 роки тому |
mingodad
|
61e2976d78
Add new string function "find_lua" that uses the same code as in lua and has the same functionalities but uses a function to get the results.
|
13 роки тому |
mingodad
|
3f4c6ef785
Changed the functions added by me to gemetatable of str/class/number/array to use a call to sq_getdelegate.
|
13 роки тому |
mingodad
|
1142e5f27e
Added the my port of Lua regex and expose to strings as two new functions "gsub","gmatch" with near same functionality of string.gsub and string.gmatch from Lua.
|
13 роки тому |
mingodad
|
585a4be4de
Expose getdelegate for string,array, class, numbers
|
13 роки тому |
mingodad
|
a7a6ba69e5
Added new array function "concat" similar to Lua table.concat this makes squirrel dependent on sqstdlib because it uses SQBlob.
|
13 роки тому |
mingodad
|
8954705b85
Added new function "str_from_chars" with the same functionality of Lua string.chars.
|
13 роки тому |
mingodad
|
b6c3870b09
Added two functions to help debug scripts getstacktop, get_last_error
|
13 роки тому |
mingodad
|
e0e098e406
Changed the print function to behave like the Lua print, accepting multiple parameters, printing then tab separated and adding a new line, the original print is now called "print1" because it only prints one element.
|
13 роки тому |
mingodad
|
173b7280f7
Add the possibility to specify the numeric base of the string to be converted to integer, so now we can convert strings from base 2 to 36.
|
13 роки тому |
mingodad
|
09cfbe61ca
Start git repository for squilu, squirrel language enhanced with lua goods.
|
13 роки тому |