aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorGravatar Elvio Basello2007-10-20 20:07:14 +0000
committerGravatar Elvio Basello2007-10-20 20:07:14 +0000
commit25f14a6deb578c8add0326c95f527863ca0a7284 (patch)
treec112daf3d15e87c572a73f5db73d83533e9ef9ff /src/modules
parentOption UseUserListColorsAsNickColors is now true by default (more user (diff)
downloadKVIrc-25f14a6deb578c8add0326c95f527863ca0a7284.tar.gz
KVIrc-25f14a6deb578c8add0326c95f527863ca0a7284.tar.bz2
KVIrc-25f14a6deb578c8add0326c95f527863ca0a7284.zip
fixed a few remaining
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@871 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/objects/libkviobjects.cpp2
-rw-r--r--src/modules/str/libkvistr.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/objects/libkviobjects.cpp b/src/modules/objects/libkviobjects.cpp
index 1c9a2db2b..0ab9cdddf 100644
--- a/src/modules/objects/libkviobjects.cpp
+++ b/src/modules/objects/libkviobjects.cpp
@@ -811,7 +811,7 @@ static bool objects_kvs_fnc_listObjects(KviKvsModuleFunctionCall * cmd)
This function returns the tree of the widgets of the kvirc, if the flag <b> is planned to 1,[br]
will return it on the currente window, if it' is planned to 0 instead it will return it as a string.[br]
ES:
- %A[]=$split("\|",$objects.dump(0))
+ %A[]=$str.split("\|",$objects.dump(0))
%i=0
while (%i != %A[]#)
{
diff --git a/src/modules/str/libkvistr.cpp b/src/modules/str/libkvistr.cpp
index c56d860d1..62e77f084 100644
--- a/src/modules/str/libkvistr.cpp
+++ b/src/modules/str/libkvistr.cpp
@@ -1389,7 +1389,7 @@ static bool str_kvs_fnc_word(KviKvsModuleFunctionCall * c)
[fnc]$str.word[/fnc]() is an optimized function dedicated to the special case
in that <separators> is a string containing all the whitespace characters.[br]
Please note that this function is SLOW. You might want to take a look at [fnc]$str.word[/fnc]()
- or even better to [fnc]$split[/fnc]().[br]
+ or even better to [fnc]$str.split[/fnc]().[br]
This function is case sensitive: you need to specify both cases in the <separators> string
if you want to do a case insensitive tokenization.[br]
@examples:
@@ -1399,7 +1399,7 @@ static bool str_kvs_fnc_word(KviKvsModuleFunctionCall * c)
[/example]
@seealso:
[fnc]$str.word[/fnc]()[br]
- [fnc]$split[/fnc]()[br]
+ [fnc]$str.split[/fnc]()[br]
*/
static bool str_kvs_fnc_token(KviKvsModuleFunctionCall * c)
@@ -1659,7 +1659,7 @@ static bool str_kvs_fnc_join(KviKvsModuleFunctionCall * c)
[comment]# Find all the nicknames starting with the letter A or a[/comment]
[cmd]echo[/cmd] $str.grep("^a",[fnc]$chan.users[/fnc],"r")
[comment]# Find the current CPU speed (on UNIX like machines only)[/comment]
- [cmd]echo[/cmd] $str.grep("MHz",[fnc]$split[/fnc]([fnc]$lf[/fnc],[fnc]$file.read[/fnc]("/proc/cpuinfo")))
+ [cmd]echo[/cmd] $str.grep("MHz",[fnc]$str.split[/fnc]([fnc]$lf[/fnc],[fnc]$file.read[/fnc]("/proc/cpuinfo")))
[comment]# simply check if the specified string matches a regular expression[/comment]
[comment]# (this in fact is a little tricky, but you will probably not notice it :D)[/comment]
[cmd]if[/cmd]($str.grep("[st]+","test string","r"))[cmd]echo[/cmd] "Yeah, it matches!"