diff --git a/HISTORY b/HISTORY index c179331..ab0c92a 100644 --- a/HISTORY +++ b/HISTORY @@ -12,6 +12,7 @@ -fixed optimizer bug in compound arith oprators(+=,-= etc...) -fixed sq_getrefvmcount() (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 compiler bug(thx Peter) -fixed some error in the documentation(thx Alexander) diff --git a/doc/source/_static/nut.ico b/doc/source/_static/nut.ico new file mode 100644 index 0000000..c28977b Binary files /dev/null and b/doc/source/_static/nut.ico differ diff --git a/doc/source/_static/simple_nut.png b/doc/source/_static/simple_nut.png new file mode 100644 index 0000000..4c0e8a2 Binary files /dev/null and b/doc/source/_static/simple_nut.png differ diff --git a/doc/source/conf.py b/doc/source/conf.py index 2cca3e4..dc534ad 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -129,12 +129,12 @@ html_theme = 'sphinx_rtd_theme' # The name of an image file (relative to this directory) to place at the top # 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 # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 # pixels large. -#html_favicon = None +html_favicon = 'nut.ico' # 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, diff --git a/doc/source/stdlib/stdstringlib.rst b/doc/source/stdlib/stdstringlib.rst index 4d8a73f..39b2853 100644 --- a/doc/source/stdlib/stdstringlib.rst +++ b/doc/source/stdlib/stdstringlib.rst @@ -14,6 +14,10 @@ Squirrel API 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) 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",".-/;"); // 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) Strips white-space-only characters that might appear at the beginning or end of the given string and returns the new stripped string.