diff --git a/config/docs.cfg b/config/docs.cfg index 0beba62f..791551b5 100644 --- a/config/docs.cfg +++ b/config/docs.cfg @@ -237,6 +237,15 @@ docargument [C] [the character to test] [] [0]; docargument [N] [type of test to run] [min 0/max 7/default 0] [0]; docexample [echo (testchar 1)] [Output: 1 "(because it is a 0-9 digit)"]; docremark [See /docs/reference.xml for more information about the usage of this command.]; +docident [testlist] [Tests a list argument for various things.]; +docargument [L] [the list to test] [] [0]; +docargument [N] [the type of test to run] [min 0/max 2/default 0] [0]; +docremark [See /docs/reference.xml for more information about the usage of this command.]; +docident [replacestr] [Returns a string, with a portion of it replaced with a new sub-string.]; +docargument [S] [the original string to modify] [] [0]; +docargument [T] [the target sub-string to replace] [] [0]; +docargument [N] [the new sub-string to replace the target] [] [0]; +docexample [echo (replacestr "Hello cruel world" cruel "")] [Output: Hello world]; docsection [General] docident [addserver] [Adds a server to the list of server to query in the server list menu.]; docargument [S] [the address of the server (hostname or IP)] [] [0]; diff --git a/docs/reference.xml b/docs/reference.xml index 225573dc..83699c9f 100644 --- a/docs/reference.xml +++ b/docs/reference.xml @@ -455,6 +455,7 @@ + @@ -522,6 +523,8 @@ + + @@ -1011,7 +1014,56 @@ See the following c++ functions for more information about the usage of this command: isalpha(), isalnum(), isdigit(), islower(), isprint(), ispunct(), isupper(), and isspace() + + + + + + Tests a list argument for various things. + + + + Output: 1 // It is a valid list of numbers (supports ints and floats) + + + + Output: 1 // It is a valid list of alpha-characters a-z or A-Z only + + + + Output: 1 // It is a valid list of alpha-characters a-z or A-Z or whitespace only + + + + + + + + + + + + + Returns a string, with a portion of it replaced with a new sub-string. + + + + Output: Hello world + + + + + + + + + + + + + +