diff options
| author | 2013-05-19 19:20:31 +0000 | |
|---|---|---|
| committer | 2013-05-19 19:20:31 +0000 | |
| commit | 99e4570d60fb878c34e1b3b8a7507de072d299d4 (patch) | |
| tree | efa6c011657c2315151b3299f959d6ec4a5fe771 /src | |
| parent | Add FurryLand network (diff) | |
| download | KVIrc-99e4570d60fb878c34e1b3b8a7507de072d299d4.tar.gz KVIrc-99e4570d60fb878c34e1b3b8a7507de072d299d4.tar.bz2 KVIrc-99e4570d60fb878c34e1b3b8a7507de072d299d4.zip | |
documentation fixes by Omega Weapon
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@6337 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src')
| -rw-r--r-- | src/kvirc/kvs/parser/KviKvsParser_specialCommands.cpp | 3 | ||||
| -rw-r--r-- | src/modules/str/libkvistr.cpp | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/kvirc/kvs/parser/KviKvsParser_specialCommands.cpp b/src/kvirc/kvs/parser/KviKvsParser_specialCommands.cpp index e56861086..6caa6ade4 100644 --- a/src/kvirc/kvs/parser/KviKvsParser_specialCommands.cpp +++ b/src/kvirc/kvs/parser/KviKvsParser_specialCommands.cpp @@ -1185,7 +1185,8 @@ KviKvsTreeNodeCommand * KviKvsParser::parseSpecialCommandForeach() If <item> is an array, a dictionary or a function that returns a dictionary or array reference the iteration is done through all the dictionary/array items.[br] Please note that the iteration order of dictionary items is undefined.[br] - You can always break from the loop by using the [cmd]break[/cmd] command.[br] + You can always break from the loop by using the [cmd]break[/cmd] command, + or skip to the next item with continue.[br] foreach doesn't iterate over empty scalar variables (i.e. the ones set to [fnc]$nothing[/fnc]) unless you use the -a switch. (Note that an array with *some* empty entries is NOT empty so the iteration is in fact done). diff --git a/src/modules/str/libkvistr.cpp b/src/modules/str/libkvistr.cpp index 84f5c6f9e..fd6fe0394 100644 --- a/src/modules/str/libkvistr.cpp +++ b/src/modules/str/libkvistr.cpp @@ -1517,11 +1517,11 @@ static bool str_kvs_fnc_join(KviKvsModuleFunctionCall * c) If the flag 'p' is specified the returned array will contain at its index 0 the text that matched the full pattern, and in the following array indexes the captured texts that matched each parenthesized subpattern.[br] - The 'p' flag has effect only if used toghether with the 'r' flag.[br] + The 'p' flag has effect only if used together with the 'r' flag.[br] If the offset is specified attempts to find a match in from position offset in every array's item. [br] If offset is -1, the search starts at the last character; if -2, at the next to last character; etc. [br] Note that since almost any other variable type can be automatically cast - to an array, then you can use this function also on scalars or hashes. + to an array, you can also use this function on scalars or hashes. @examples: [example] [comment]# Find all the nicknames starting with the letter A or a[/comment] |
