Sfoglia il codice sorgente

fix various typos and incompletely apply very lightweight formatting normalization; clarify sq_getbyhandle applies to class or instance

zeromus 9 anni fa
parent
commit
b35c9e827c

+ 1 - 1
doc/source/reference/api/bytecode_serialization.rst

@@ -29,4 +29,4 @@ serialize (read) a closure and pushes it on top of the stack, the source is user
     :returns: a SQRESULT
     :remarks: closures with free variables cannot be serialized
 
-serializes(writes) the closure on top of the stack, the desination is user defined through a write callback.
+serializes(writes) the closure on top of the stack, the destination is user defined through a write callback.

+ 4 - 4
doc/source/reference/api/garbage_collector.rst

@@ -9,9 +9,9 @@ Garbage Collector
 .. c:function:: SQInteger sq_collectgarbage(HSQUIRRELVM v)
 
     :param HSQUIRRELVM v: the target VM
-    :remarks: this api only works with gabage collector builds (NO_GARBAGE_COLLECTOR is not defined)
+    :remarks: this api only works with garbage collector builds (NO_GARBAGE_COLLECTOR is not defined)
 
-runs the garbage collector and returns the number of reference cycles found(and deleted)
+runs the garbage collector and returns the number of reference cycles found (and deleted)
 
 
 
@@ -22,6 +22,6 @@ runs the garbage collector and returns the number of reference cycles found(and
 .. c:function:: SQRESULT sq_resurrectunreachable(HSQUIRRELVM v)
 
     :param HSQUIRRELVM v: the target VM
-    :remarks: this api only works with gabage collector builds (NO_GARBAGE_COLLECTOR is not defined)
+    :remarks: this api only works with garbage collector builds (NO_GARBAGE_COLLECTOR is not defined)
 
-runs the garbage collector and pushes an array in the stack containing all unreachable object found. If no unreachable object is found, null is pushed instead. This function is meant to help debugging reference cycles.
+runs the garbage collector and pushes an array in the stack containing all unreachable object found. If no unreachable object is found, null is pushed instead. This function is meant to help debug reference cycles.

File diff suppressed because it is too large
+ 14 - 14
doc/source/reference/api/object_creation_and_handling.rst


File diff suppressed because it is too large
+ 7 - 7
doc/source/reference/api/object_manipulation.rst


+ 2 - 2
doc/source/reference/api/raw_object_handling.rst

@@ -24,7 +24,7 @@ adds a reference to an object handler.
     :param HSQOBJECT* o: pointer to an object handler
     :param SQUserPointer* typetag: a pointer to the variable that will store the tag
     :returns: a SQRESULT
-    :remarks: the function works also with instances. if the taget object is an instance, the typetag of it's base class is fetched.
+    :remarks: the function works also with instances. if the target object is an instance, the typetag of it's base class is fetched.
 
 gets the typetag of a raw object reference(userdata or class).
 
@@ -145,7 +145,7 @@ push an object referenced by an object handler into the stack.
     :param HSQUIRRELVM v: the target VM
     :param HSQOBJECT* po: pointer to an object handler
     :returns: SQTrue if the object handler released has lost all is references(the ones added with sq_addref). SQFalse otherwise.
-    :remarks: the function will reset the object handler to null when it losts all references.
+    :remarks: the function will reset the object handler to null when it loses all references.
 
 remove a reference from an object handler.
 

+ 2 - 2
doc/source/reference/api/stack_operations.rst

@@ -91,7 +91,7 @@ removes an element from an arbitrary position in the stack
     :param SQInteger nsize: required stack size
     :returns: a SQRESULT
 
-ensure that the stack space left is at least of a specified size.If the stack is smaller it will automatically grow. if there's a metamethod currently running the function will fail and the stack will not be resized, this situatuation has to be considered a "stack overflow".
+ensure that the stack space left is at least of a specified size.If the stack is smaller it will automatically grow. If there's a metamethod currently running the function will fail and the stack will not be resized, this situation has to be considered a "stack overflow".
 
 
 
@@ -104,4 +104,4 @@ ensure that the stack space left is at least of a specified size.If the stack is
     :param HSQUIRRELVM v: the target VM
     :param SQInteger v: the new top index
 
-resize the stack, if new top is bigger then the current top the function will push nulls.
+resize the stack. If new top is bigger then the current top the function will push nulls.

+ 7 - 7
doc/source/reference/api/virtual_machine.rst

@@ -63,7 +63,7 @@ returns the current print function of the given Virtual machine. (see sq_setprin
     :param HSQUIRRELVM v: the target VM
     :returns: the current VMs shared foreign pointer
 
-Returns the shared foreign pointer of a group of friend VMs .
+Returns the shared foreign pointer of a group of friend VMs
 
 
 
@@ -76,7 +76,7 @@ Returns the shared foreign pointer of a group of friend VMs .
     :param HSQUIRRELVM v: the target VM
     :returns: the current VMs release hook.
 
-Returns the shared release hook of a group of friend VMs .
+Returns the shared release hook of a group of friend VMs
 
 
 
@@ -88,7 +88,7 @@ Returns the shared release hook of a group of friend VMs .
 
     :returns: version number of the vm(as in SQUIRREL_VERSION_NUMBER).
 
-returns the version number of the vm.
+returns the version number of the vm
 
 
 
@@ -101,7 +101,7 @@ returns the version number of the vm.
     :param HSQUIRRELVM v: the target VM
     :returns: the current VMs release hook.
 
-Returns the release hook of a VM instance.
+Returns the release hook of a VM instance
 
 
 
@@ -128,7 +128,7 @@ returns the execution state of a virtual machine
     :param HSQUIRRELVM src: the source VM
     :param SQInteger idx: the index in the source stack of the value that has to be moved
 
-pushes the object at the position 'idx' of the source vm stack in the destination vm stack.
+pushes the object at the position 'idx' of the source vm stack in the destination vm stack
 
 
 
@@ -297,7 +297,7 @@ Sets the release hook of a certain VM group. The release hook is invoked when th
     :param HSQUIRRELVM v: the target VM
     :param SQRELESEHOOK hook: The hook that has to be set
 
-Sets the release hook of a certain VM instance. The release hook is invoked when the vm is destroyed. The userpointer passed to the function is the vm foreignpointer(see sq_setforeignpointer())
+Sets the release hook of a certain VM instance. The release hook is invoked when the vm is destroyed. The userpointer passed to the function is the vm foreignpointer (see sq_setforeignpointer())
 
 
 
@@ -338,4 +338,4 @@ Suspends the execution of the specified vm.
     :param SQBool throwerror: if true, the vm will thow an exception as soon as is resumed. the exception payload must be set beforehand invoking sq_thowerror().
     :returns: an HRESULT.
 
-Wake up the execution a previously suspended virtual machine.
+wake up the execution a previously suspended virtual machine

+ 2 - 2
doc/source/reference/embedding/build_configuration.rst

@@ -37,13 +37,13 @@ Userdata Alignment
 .. index:: single: Userdata Alignment
 
 Both class instances and userdatas can have a buffer associated to them.
-Squirrel specifies the alignment(in bytes) through the peroprocessor defining 'SQ_ALIGNMENT'.
+Squirrel specifies the alignment(in bytes) through the preprocessor defining 'SQ_ALIGNMENT'.
 By default SQ_ALIGNMENT is defined as 4 for 32 bits builds and 8 for 64bits builds and builds that use 64bits floats.
 It is possible to override the value of SQ_ALIGNMENT respecting the following rules.
 SQ_ALIGNMENT shall be less than or equal to SQ_MALLOC alignments, and it shall be power of 2.
 
 .. note:: This only applies for userdata allocated by the VM, specified via sq_setclassudsize() or belonging to a userdata object.
-        userpointers specified by the user are not affected by alignemnt rules.
+        userpointers specified by the user are not affected by alignment rules.
 
 .. _standalone_vm:
 

+ 1 - 1
doc/source/reference/embedding/creating_a_c_function.rst

@@ -23,7 +23,7 @@ When the function is called, the stackbase is the first parameter of the functio
 top is the last. In order to return a value the function has to push it in the stack and
 return 1.
 
-Function parameters are in the stack from postion 1 ('this') to *n*.
+Function parameters are in the stack from position 1 ('this') to *n*.
 *sq_gettop()* can be used to determinate the number of parameters.
 
 If the function has free variables, those will be in the stack after the explicit parameters

+ 1 - 1
doc/source/reference/embedding/the_stack.rst

@@ -65,7 +65,7 @@ To force the stack to a certain size you can call *sq_settop* ::
 
     void sq_settop(HSQUIRRELVM v,SQInteger newtop);
 
-If the newtop is bigger than the previous one, the new posistions in the stack will be
+If the newtop is bigger than the previous one, the new positions in the stack will be
 filled with null values.
 
 The following function pushes a C value into the stack::

File diff suppressed because it is too large
+ 13 - 13
doc/source/reference/language/builtin_functions.rst


+ 4 - 4
doc/source/reference/language/classes.rst

@@ -214,7 +214,7 @@ class declaration. The values are copied verbatim, *no cloning is performed* eve
 
 .. note:: FOR C# and Java programmers:
 
-            Squirrel doesn't clone member's default values nor executes the member declaration for each instace(as C# or java).
+            Squirrel doesn't clone member's default values nor executes the member declaration for each instance(as C# or java).
 
             So consider this example: ::
 
@@ -226,8 +226,8 @@ class declaration. The values are copied verbatim, *no cloning is performed* eve
                 local a = Foo();
                 local b = Foo();
 
-            In the snippet above both instances will refer to the same array and same table.To archieve what a C# or Java programmer would
-            exepect, the following approach should be taken. ::
+            In the snippet above both instances will refer to the same array and same table.To achieve what a C# or Java programmer would
+            expect, the following approach should be taken. ::
 
                 class Foo {
                   myarray = null
@@ -327,7 +327,7 @@ Here an example: ::
         }
     }
 
-Same rule apply to the constructor. The constructor is a regular function (apart from being automatically invoked on contruction).::
+Same rule apply to the constructor. The constructor is a regular function (apart from being automatically invoked on construction).::
 
     class BaseClass {
         constructor()

+ 6 - 6
doc/source/reference/language/constants_and_enumerations.rst

@@ -2,16 +2,16 @@
 
 
 ========================
-Constants & Enumarations
+Constants & Enumerations
 ========================
 
 .. index::
-    single: Constants & Enumarations
+    single: Constants & Enumerations
 
 
 
 Squirrel allows to bind constant values to an identifier that will be evaluated compile-time.
-This is archieved though constants and enumarations.
+This is achieved though constants and Enumerations.
 
 ---------------
 Constants
@@ -20,7 +20,7 @@ Constants
 .. index::
     single: Constants
 
-Constants bind a specific value to an indentifier. Constants are similar to
+Constants bind a specific value to an identifier. Constants are similar to
 global values, except that they are evaluated compile time and their value cannot be changed.
 
 constants values can only be integers, floats or string literals. No expression are allowed.
@@ -28,7 +28,7 @@ are declared with the following syntax.::
 
     const foobar = 100;
     const floatbar = 1.2;
-    const stringbar = "I'm a contant string";
+    const stringbar = "I'm a constant string";
 
 constants are always globally scoped, from the moment they are declared, any following code
 can reference them.
@@ -73,7 +73,7 @@ Enumerations will shadow any global slot with the same name( the global slot wil
 Implementation notes
 --------------------
 
-Enumerations and Contants are a compile-time feature. Only integers, string and floats can be declared as const/enum;
+Enumerations and Constants are a compile-time feature. Only integers, string and floats can be declared as const/enum;
 No expressions are allowed(because they would have to be evaluated compile time).
 When a const or an enum is declared, it is added compile time to the ``consttable``. This table is stored in the VM shared state
 and is shared by the VM and all its threads.

+ 2 - 3
doc/source/reference/language/datatypes.rst

@@ -122,8 +122,7 @@ Class Instance
 --------------
 
 Class instances are created by calling a *class object*. Instances, as tables, are
-implemented as pair of key/value. Instances members cannot be dyncamically added or removed however
-the value of the members can be changed.
+implemented as pair of key/value. Instances members cannot be dynamically added or removed; however the value of the members can be changed.
 
 
 
@@ -152,7 +151,7 @@ Threads are objects that represents a cooperative thread of execution, also know
 Weak Reference
 --------------
 
-Weak References are objects that point to another(non scalar) object but do not own a strong reference to it.
+Weak References are objects that point to another (non-scalar) object but do not own a strong reference to it.
 (See :ref:`Weak References <weak_references>`).
 
 

+ 1 - 1
doc/source/reference/language/execution_context.rst

@@ -50,7 +50,7 @@ with tables we can also use the '.' syntax::
     _table.foo
 
 Squirrel first checks if an identifier is a local variable (function arguments are local
-variables) if not looks up the environment object (this) and finally looksup
+variables) if not looks up the environment object (this) and finally looks up
 to the closure root.
 
 For instance:::

+ 3 - 3
doc/source/reference/language/metamethods.rst

@@ -172,7 +172,7 @@ _tyoeof
 
     _tyoeof()
 
-invoked by the typeof operator on tables ,userdata and class instances
+invoked by the typeof operator on tables, userdata and class instances
 
 returns the type of ``this`` as string
 
@@ -206,7 +206,7 @@ _call
 
     _call(other)
 
-invoked when a table, userdata or class instance is called
+invoked when a table, userdata, or class instance is called
 
 ^^^^^^^^^^^^^^^^^^^^^^^^
 _cloned
@@ -239,7 +239,7 @@ _tostring
 
     _tostring(previdx)
 
-invoked when during string conacatenation or when the ``print`` function prints a table, instance or userdata.
+invoked when during string conacatenation or when the ``print`` function prints a table, instance, or userdata.
 The method is also invoked by the sq_tostring() api
 
 must return a string representation of the object.

+ 2 - 2
doc/source/reference/language/statements.rst

@@ -52,7 +52,7 @@ true and false
     single: true
     single: false
 
-Squirrel has a boolean type(bool) however like C++ it considers null, 0(integer) and 0.0(float)
+Squirrel has a boolean type (bool) however like C++ it considers null, 0(integer) and 0.0(float)
 as *false*, any other value is considered *true*.
 
 ^^^^^^^^^^^^^^^^^
@@ -326,7 +326,7 @@ try/catch
     stat:= 'try' stat 'catch' '(' id ')' stat
 
 The try statement encloses a block of code in which an exceptional condition can occur,
-such as a runtime error or a throw statement. The catch clause provides the exceptionhandling
+such as a runtime error or a throw statement. The catch clause provides the exception-handling
 code. When a catch clause catches an exception, its id is bound to that
 exception.
 

+ 1 - 1
doc/source/reference/language/tables.rst

@@ -18,7 +18,7 @@ through this type; even the environment, where "global" variables are stored, is
 Construction
 ------------------
 
-Tables are created through the table constructor (see :ref:`Table constructor <table_contructor>`)
+Tables are created through the table constructor (see :ref:`Table constructor <table_constructor>`)
 
 ------------------
 Slot creation

+ 4 - 4
doc/source/reference/language/threads.rst

@@ -22,17 +22,17 @@ Using threads
 ------------------
 
 .. index::
-    single: Usign Threads
+    single: Using Threads
 
 Threads are created through the built-in function 'newthread(func)'; this function
-gets as parameter a squirrel function and bind it to the new thread objecs(will be the thread body).
+gets as parameter a squirrel function and bind it to the new thread objects (will be the thread body).
 The returned thread object is initially in 'idle' state. the thread can be started with the function
 'threadobj.call()'; the parameters passed to 'call' are passed to the thread function.
 
 A thread can be be suspended calling the function suspend(), when this happens the function
-that wokeup(or started) the thread returns (If a parametrer is passed to suspend() it will
+that wokeup(or started) the thread returns (If a parameter is passed to suspend() it will
 be the return value of the wakeup function , if no parameter is passed the return value will be null).
-A suspended thread can be resumed calling the funtion 'threadobj.wakeup', when this happens
+A suspended thread can be resumed calling the function 'threadobj.wakeup', when this happens
 the function that suspended the thread will return(if a parameter is passed to wakeup it will
 be the return value of the suspend function, if no parameter is passed the return value will be null).
 

+ 1 - 1
doc/source/reference/language/weak_references.rst

@@ -12,7 +12,7 @@ Weak References
 The weak references allows the programmers to create references to objects without
 influencing the lifetime of the object itself.
 In squirrel Weak references are first-class objects created through the built-in method obj.weakref().
-All types except null implement the weakref() method; however in bools,integers and float the method
+All types except null implement the weakref() method; however in bools, integers, and floats the method
 simply returns the object itself(this because this types are always passed by value).
 When a weak references is assigned to a container (table slot,array,class or
 instance) is treated differently than other objects; When a container slot that hold a weak

+ 6 - 6
doc/source/stdlib/stdbloblib.rst

@@ -4,7 +4,7 @@
 The Blob library
 ==================
 The blob library implements binary data manipulations routines. The library is
-based on `blob objects` that rapresent a buffer of arbitrary
+based on `blob objects` that represent a buffer of arbitrary
 binary data.
 
 ---------------
@@ -66,20 +66,20 @@ A blob can also be accessed byte by byte through the `[]` operator.
 
     :param int size: number of bytes to read
 
-    read n bytes from the stream and retuns them as blob
+    read n bytes from the stream and returns them as blob
 
 .. js:function:: blob.readn(type)
 
     :param int type: type of the number to read
 
-    reads a number from the stream according to the type pameter.
+    reads a number from the stream according to the type parameter.
 
     `type` can have the following values:
 
 +--------------+--------------------------------------------------------------------------------+----------------------+
 | parameter    | return description                                                             |  return type         |
 +==============+================================================================================+======================+
-| 'l'          | processor dependent, 32bits on 32bits processors, 64bits on 64bits prcessors   |  integer             |
+| 'l'          | processor dependent, 32bits on 32bits processors, 64bits on 64bits processors  |  integer             |
 +--------------+--------------------------------------------------------------------------------+----------------------+
 | 'i'          | 32bits number                                                                  |  integer             |
 +--------------+--------------------------------------------------------------------------------+----------------------+
@@ -98,7 +98,7 @@ A blob can also be accessed byte by byte through the `[]` operator.
 
 .. js:function:: blob.resize(size)
 
-    :param int size: the new size of the blobl in bytes
+    :param int size: the new size of the blob in bytes
 
     resizes the blob to the specified `size`
 
@@ -142,7 +142,7 @@ A blob can also be accessed byte by byte through the `[]` operator.
     :param number n: the value to be written
     :param int type: type of the number to write
 
-    writes a number in the stream formatted according to the `type` pameter
+    writes a number in the stream formatted according to the `type` parameter
 
     `type` can have the following values:
 

+ 13 - 13
doc/source/stdlib/stdiolib.rst

@@ -22,7 +22,7 @@ Global Symbols
     if the optional parameter 'raiseerror' is true, the compiler error handler is invoked
     in case of a syntax error. If raiseerror is omitted or set to false, the compiler
     error handler is not invoked.
-    When squirrel is compiled in unicode mode the function can handle different character encodings,
+    When squirrel is compiled in Unicode mode the function can handle different character encodings,
     UTF8 with and without prefix and UCS-2 prefixed(both big endian an little endian).
     If the source stream is not prefixed UTF8 encoding is used as default.
 
@@ -32,7 +32,7 @@ Global Symbols
     if the optional parameter 'raiseerror' is true, the compiler error handler is invoked
     in case of a syntax error. If raiseerror is omitted or set to false, the compiler
     error handler is not invoked.
-    When squirrel is compiled in unicode mode the function can handle different character encodings,
+    When squirrel is compiled in Unicode mode the function can handle different character encodings,
     UTF8 with and without prefix and UCS-2 prefixed(both big endian an little endian).
     If the source stream is not prefixed UTF8 encoding is used as default.
 
@@ -63,7 +63,7 @@ The file class
 
 .. js:class:: file(path, patten)
 
-    It's contructor imitates the behaviour of the C runtime function fopen for eg. ::
+    It's constructor imitates the behaviour of the C runtime function fopen for eg. ::
 
         local myfile = file("test.xxx","wb+");
 
@@ -79,7 +79,7 @@ The file class
 
 .. js:function:: file.flush()
 
-    flushes the stream.return a value != null if succeded, otherwise returns null
+    flushes the stream.return a value != null if succeeded, otherwise returns null
 
 .. js:function:: file.len()
 
@@ -89,20 +89,20 @@ The file class
 
     :param int size: number of bytes to read
 
-    read n bytes from the stream and retuns them as blob
+    read n bytes from the stream and returns them as blob
 
 .. js:function:: file.readn(type)
 
     :param int type: type of the number to read
 
-    reads a number from the stream according to the type pameter.
+    reads a number from the stream according to the type parameter.
 
     `type` can have the following values:
 
 +--------------+--------------------------------------------------------------------------------+----------------------+
 | parameter    | return description                                                             |  return type         |
 +==============+================================================================================+======================+
-| 'l'          | processor dependent, 32bits on 32bits processors, 64bits on 64bits prcessors   |  integer             |
+| 'l'          | processor dependent, 32bits on 32bits processors, 64bits on 64bits processors  |  integer             |
 +--------------+--------------------------------------------------------------------------------+----------------------+
 | 'i'          | 32bits number                                                                  |  integer             |
 +--------------+--------------------------------------------------------------------------------+----------------------+
@@ -121,7 +121,7 @@ The file class
 
 .. js:function:: file.resize(size)
 
-    :param int size: the new size of the blobl in bytes
+    :param int size: the new size of the blob in bytes
 
     resizes the blob to the specified `size`
 
@@ -157,7 +157,7 @@ The file class
     :param number n: the value to be written
     :param int type: type of the number to write
 
-    writes a number in the stream formatted according to the `type` pameter
+    writes a number in the stream formatted according to the `type` pamraeter
 
     `type` can have the following values:
 
@@ -230,7 +230,7 @@ Script loading and serialization
     :returns: an SQRESULT
 
     Compiles a squirrel script or loads a precompiled one an pushes it as closure in the stack.
-    When squirrel is compiled in unicode mode the function can handle different character encodings,
+    When squirrel is compiled in Unicode mode the function can handle different character encodings,
     UTF8 with and without prefix and UCS-2 prefixed(both big endian an little endian).
     If the source stream is not prefixed UTF8 encoding is used as default.
 
@@ -241,13 +241,13 @@ Script loading and serialization
     :param SQBool retval: if true the function will push the return value of the executed script in the stack.
     :param SQBool printerror: if true the compiler error handler will be called if a error occurs
     :returns: an SQRESULT
-    :remarks: the function aspects a table on top of the stack that will be used as 'this' for the execution of the script. The 'this' parameter is left untouched in the stack.
+    :remarks: the function expects a table on top of the stack that will be used as 'this' for the execution of the script. The 'this' parameter is left untouched in the stack.
 
     Compiles a squirrel script or loads a precompiled one and executes it.
     Optionally pushes the return value of the executed script in the stack.
     When squirrel is compiled in unicode mode the function can handle different character encodings,
     UTF8 with and without prefix and UCS-2 prefixed(both big endian an little endian).
-    If the source stream is not prefixed UTF8 encoding is used as default. ::
+    If the source stream is not prefixed, UTF8 encoding is used as default. ::
 
         sq_pushroottable(v); //push the root table(were the globals of the script will are stored)
         sqstd_dofile(v, _SC("test.nut"), SQFalse, SQTrue);// also prints syntax errors if any
@@ -259,6 +259,6 @@ Script loading and serialization
     :returns: an SQRESULT
 
     serializes the closure at the top position in the stack as bytecode in
-    the file specified by the paremeter filename. If a file with the
+    the file specified by the parameter filename. If a file with the
     same name already exists, it will be overwritten.
 

+ 11 - 11
doc/source/stdlib/stdstringlib.rst

@@ -42,7 +42,7 @@ Global Symbols
     Strips white-space-only characters that might appear at the end of the given string
     and returns the new stripped string.
 
-.. js:function:: split(str, separtators)
+.. js:function:: split(str, separators)
 
     returns an array of strings split at each point where a separator character occurs in `str`.
     The separator is not returned as part of any array element.
@@ -69,7 +69,7 @@ The regexp class
 
 .. js:class:: regexp(pattern)
 
-    The regexp object rapresent a precompiled regular experssion pattern. The object is created
+    The regexp object represent a precompiled regular expression pattern. The object is created
     trough `regexp(patern)`.
 
 
@@ -140,19 +140,19 @@ The regexp class
 +---------------------+--------------------------------------+
 |      `\\d`          |  digits                              |
 +---------------------+--------------------------------------+
-|      `\\D`          |  non nondigits                       |
+|      `\\D`          |  non digits                          |
 +---------------------+--------------------------------------+
-|      `\\x`          |  exadecimal digits                   |
+|      `\\x`          |  hexadecimal digits                  |
 +---------------------+--------------------------------------+
-|      `\\X`          |  non exadecimal digits               |
+|      `\\X`          |  non hexadecimal digits              |
 +---------------------+--------------------------------------+
 |      `\\c`          |  control characters                  |
 +---------------------+--------------------------------------+
 |      `\\C`          |  non control characters              |
 +---------------------+--------------------------------------+
-|      `\\p`          |  punctation                          |
+|      `\\p`          |  punctuation                          |
 +---------------------+--------------------------------------+
-|      `\\P`          |  non punctation                      |
+|      `\\P`          |  non punctuation                      |
 +---------------------+--------------------------------------+
 |      `\\b`          |  word boundary                       |
 +---------------------+--------------------------------------+
@@ -195,7 +195,7 @@ The regexp class
 
 .. js:function:: regexp.search(str [, start])
 
-    returns a table containing two indexs("begin" and "end") of the first match of the regular expression in
+    returns a table containing two indexes ("begin" and "end") of the first match of the regular expression in
     the string `str`, otherwise if no match occurs returns null. The search starts from the index `start`
     of the string, if `start` is omitted the search starts from the beginning of the string.
 
@@ -275,7 +275,7 @@ Regular Expessions
     :param SQChar** out_end: a pointer to a string pointer that will be set with the end of the match
     :returns: SQTrue if successful otherwise SQFalse
 
-    searches the first match of the expressin in the string specified in the parameter text.
+    searches the first match of the expression in the string specified in the parameter text.
     if the match is found returns SQTrue and the sets out_begin to the beginning of the
     match and out_end at the end of the match; otherwise returns SQFalse.
 
@@ -288,7 +288,7 @@ Regular Expessions
     :param SQChar** out_end: a pointer to a string pointer that will be set with the end of the match
     :returns: SQTrue if successful otherwise SQFalse
 
-    searches the first match of the expressin in the string delimited
+    searches the first match of the expression in the string delimited
     by the parameter text_begin and text_end.
     if the match is found returns SQTrue and the sets out_begin to the beginning of the
     match and out_end at the end of the match; otherwise returns SQFalse.
@@ -308,4 +308,4 @@ Regular Expessions
     :returns: the function returns SQTrue if n is valid index otherwise SQFalse.
 
     retrieve the begin and and pointer to the length of the sub expression indexed
-    by n. The result is passed trhough the struct SQRexMatch.
+    by n. The result is passed through the struct SQRexMatch.

+ 1 - 1
doc/source/stdlib/stdsystemlib.rst

@@ -21,7 +21,7 @@ Global Symbols
 
 .. js:function:: date([time [, format]])
 
-    returns a table containing a date/time splitted in the slots:
+    returns a table containing a date/time split into the slots:
 
 +-------------+----------------------------------------+
 | sec         | Seconds after minute (0 - 59).         |

Some files were not shown because too many files changed in this diff