documentation fixes

This commit is contained in:
albertodemichelis 2016-03-27 19:58:27 +08:00
parent 04a4ff5c8d
commit c52b25d864
5 changed files with 12 additions and 2 deletions

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 393 B

View File

@ -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,

View File

@ -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.