From c52b25d864400197fa4d64c46254d8b1de06c2fa Mon Sep 17 00:00:00 2001 From: albertodemichelis Date: Sun, 27 Mar 2016 19:58:27 +0800 Subject: [PATCH] documentation fixes --- HISTORY | 1 + doc/source/_static/nut.ico | Bin 0 -> 318 bytes doc/source/_static/simple_nut.png | Bin 0 -> 393 bytes doc/source/conf.py | 4 ++-- doc/source/stdlib/stdstringlib.rst | 9 +++++++++ 5 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 doc/source/_static/nut.ico create mode 100644 doc/source/_static/simple_nut.png 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 0000000000000000000000000000000000000000..c28977b0209b7060618d0c6bfb7b25058fc6479e GIT binary patch literal 318 zcmZQzU<5(|0RbS%!l1#(z#zuJz@P!d0zj+)#2|4P5awoJ0AY|E3`9&j#b7t-7Q@CX zpBaQL6Btx{N?}q2=`;+Gz`y_&V^R`i12LGC6rr>-h)z&aQWij^l|XzJ7Z;aMpaK@x z&`=Pa;1U`d08$4O2GMCiPXL91AOTE5iU0qL828OO3_yJh3;@hmN5B98 literal 0 HcmV?d00001 diff --git a/doc/source/_static/simple_nut.png b/doc/source/_static/simple_nut.png new file mode 100644 index 0000000000000000000000000000000000000000..4c0e8a20f4a17c3cee8d723f9749f9977e265d69 GIT binary patch literal 393 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=Y)RhkE)4%caKYZ?lYt_f1s;*b z3=G`DAk4@xYmNj^kiEpy*OmPNvoyDk_?r1rPZ$^&#XMacLn>~)oxPX$kby|c=KwJW zLDnm08eE(m&k9`G(xLexf{87GX_|vmPJ=+shZS$xa{jEYxxTbRsCHMmrFG|utjp=V zv*vL#Fud4#D@I&QP`NfVv;b&VKt9_IS|(>t!om7u$b5^ZtDK`mIdL3=CBcGPd*9YgMs;*bVnj2ksWX z!`HpS{8yg(v5z^$pQ_$H2I^EeU)Qku*y*)18K*1r0r_CCV1isi`THB$%>j4i*?}UZ zYgpG!++`1vKXrzo`aC~K&{Jh&-K?U&->#RwZDeL(XxL=T01^g)Q`gx!U%ACSFNshB OaXnrAT-G@yGywq8bBb#K literal 0 HcmV?d00001 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.