aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/str/libkvistr.cpp
diff options
context:
space:
mode:
authorGravatar Fabio Bas2013-10-13 20:20:16 +0000
committerGravatar Fabio Bas2013-10-13 20:20:16 +0000
commit53730bef06e3d33873e93f9182e76d144c77e55a (patch)
tree19ef78ecbe0efea3b86f5db317a9443d42c02b9c /src/modules/str/libkvistr.cpp
parentdocumentation fix for #1418 (diff)
downloadKVIrc-53730bef06e3d33873e93f9182e76d144c77e55a.tar.gz
KVIrc-53730bef06e3d33873e93f9182e76d144c77e55a.tar.bz2
KVIrc-53730bef06e3d33873e93f9182e76d144c77e55a.zip
Fix previous commit
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@6365 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/str/libkvistr.cpp')
-rw-r--r--src/modules/str/libkvistr.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/str/libkvistr.cpp b/src/modules/str/libkvistr.cpp
index af55a1e7e..3f520ecd9 100644
--- a/src/modules/str/libkvistr.cpp
+++ b/src/modules/str/libkvistr.cpp
@@ -1037,7 +1037,7 @@ static bool str_kvs_fnc_lefttolast(KviKvsModuleFunctionCall * c)
%test = "Hello! My nickname is Pragma, my name is Szymon"
echo $str.rightfromfirst(%test, my); // " nickname is Pragma, my name is Szymon"
echo $str.rightfromfirst(%test, my, true); // " name is Szymon"
- echo $str.rightfromfirst(%test, invalid); // "Hello! My nickname is Pragma, my name is Szymon"
+ echo $str.rightfromfirst(%test, invalid); // ""
[/example]
*/
static bool str_kvs_fnc_rightfromfirst(KviKvsModuleFunctionCall * c)
@@ -1069,13 +1069,14 @@ static bool str_kvs_fnc_rightfromfirst(KviKvsModuleFunctionCall * c)
This function returns the right part of the string given as the first parameter
from the position where the last occurrence of the string given as the second parameter
is found. It doesn't include the substring of the second parameter in the returned value.
- If the second parameter is not found, an empty string is returned.
+ If the substring is not found, an empty string is returned.
If the third parameter is set to true, then the search is case sensitive; it defaults to false.
@examples:
[example]
%test = "Hello! My nickname is Pragma, my name is Szymon"
echo $str.rightfromlast(%test, My); // " name is Szymon"
echo $str.rightfromlast(%test, My, true); // " nickname is Pragma, my name is Szymon"
+ echo $str.rightfromlast(%test, invalid); // ""
[/example]
*/
static bool str_kvs_fnc_rightfromlast(KviKvsModuleFunctionCall * c)