documentation fixes
This commit is contained in:
parent
04a4ff5c8d
commit
c52b25d864
1
HISTORY
1
HISTORY
@ -12,6 +12,7 @@
|
|||||||
-fixed optimizer bug in compound arith oprators(+=,-= etc...)
|
-fixed optimizer bug in compound arith oprators(+=,-= etc...)
|
||||||
-fixed sq_getrefvmcount() (thx Gerrit)
|
-fixed sq_getrefvmcount() (thx Gerrit)
|
||||||
-fixed sq_getrefcount() when no references were added with sq_addref() (thx Gerrit)
|
-fixed sq_getrefcount() when no references were added with sq_addref() (thx Gerrit)
|
||||||
|
-fixed bug in string.tointeger() (thx Domingo)
|
||||||
-fixed weakref comparison in 32bit builds using doubles(thx Domingo)
|
-fixed weakref comparison in 32bit builds using doubles(thx Domingo)
|
||||||
-fixed compiler bug(thx Peter)
|
-fixed compiler bug(thx Peter)
|
||||||
-fixed some error in the documentation(thx Alexander)
|
-fixed some error in the documentation(thx Alexander)
|
||||||
|
BIN
doc/source/_static/nut.ico
Normal file
BIN
doc/source/_static/nut.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 318 B |
BIN
doc/source/_static/simple_nut.png
Normal file
BIN
doc/source/_static/simple_nut.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 393 B |
@ -129,12 +129,12 @@ html_theme = 'sphinx_rtd_theme'
|
|||||||
|
|
||||||
# The name of an image file (relative to this directory) to place at the top
|
# The name of an image file (relative to this directory) to place at the top
|
||||||
# of the sidebar.
|
# of the sidebar.
|
||||||
#html_logo = None
|
html_logo = 'simple_nut.png'
|
||||||
|
|
||||||
# The name of an image file (within the static path) to use as favicon of the
|
# The name of an image file (within the static path) to use as favicon of the
|
||||||
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
||||||
# pixels large.
|
# pixels large.
|
||||||
#html_favicon = None
|
html_favicon = 'nut.ico'
|
||||||
|
|
||||||
# Add any paths that contain custom static files (such as style sheets) here,
|
# Add any paths that contain custom static files (such as style sheets) here,
|
||||||
# relative to this directory. They are copied after the builtin static files,
|
# relative to this directory. They are copied after the builtin static files,
|
||||||
|
@ -14,6 +14,10 @@ Squirrel API
|
|||||||
Global Symbols
|
Global Symbols
|
||||||
++++++++++++++
|
++++++++++++++
|
||||||
|
|
||||||
|
.. js:function:: endswith(str, cmp)
|
||||||
|
|
||||||
|
returns `true` if the end of the string `str` matches a the string `cmp` otherwise returns `false`
|
||||||
|
|
||||||
.. js:function:: ecape(str)
|
.. js:function:: ecape(str)
|
||||||
|
|
||||||
Returns a string with backslashes before characters that need to be escaped(`\",\a,\b,\t,\n,\v,\f,\r,\\,\",\',\0,\xnn`).
|
Returns a string with backslashes before characters that need to be escaped(`\",\a,\b,\t,\n,\v,\f,\r,\\,\",\',\0,\xnn`).
|
||||||
@ -50,6 +54,11 @@ Global Symbols
|
|||||||
local a = split("1.2-3;4/5",".-/;");
|
local a = split("1.2-3;4/5",".-/;");
|
||||||
// the result will be [1,2,3,4,5]
|
// the result will be [1,2,3,4,5]
|
||||||
|
|
||||||
|
|
||||||
|
.. js:function:: startswith(str, cmp)
|
||||||
|
|
||||||
|
returns `true` if the beginning of the string `str` matches a the string `cmp` otherwise returns `false`
|
||||||
|
|
||||||
.. js:function:: strip(str)
|
.. js:function:: strip(str)
|
||||||
|
|
||||||
Strips white-space-only characters that might appear at the beginning or end of the given string and returns the new stripped string.
|
Strips white-space-only characters that might appear at the beginning or end of the given string and returns the new stripped string.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user