albertodemichelis преди 9 години
родител
ревизия
c52b25d864
променени са 5 файла, в които са добавени 12 реда и са изтрити 2 реда
  1. 1 0
      HISTORY
  2. BIN
      doc/source/_static/nut.ico
  3. BIN
      doc/source/_static/simple_nut.png
  4. 2 2
      doc/source/conf.py
  5. 9 0
      doc/source/stdlib/stdstringlib.rst

+ 1 - 0
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)

BIN
doc/source/_static/nut.ico


BIN
doc/source/_static/simple_nut.png


+ 2 - 2
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,

+ 9 - 0
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.