Initial import of the ircii-pana-1.1-final source tree.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/tags/ircii-pana-1.1-final@1 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
20
bitchx-docs/6_Functions/substr
Normal file
20
bitchx-docs/6_Functions/substr
Normal file
@@ -0,0 +1,20 @@
|
||||
Synopsis:
|
||||
$substr(<substring> <search string>)
|
||||
$rsubstr(<substring> <search string>)
|
||||
|
||||
Technical:
|
||||
These functions search for <substring> in <search string> and return the
|
||||
index to it. rsubstr is identical to substr, except it searches from
|
||||
the end to the beginning.
|
||||
|
||||
Practical:
|
||||
They can be used to search for specific things in output from a server,
|
||||
or as an alternative to $match(*substring* searchstring).
|
||||
|
||||
Returns:
|
||||
-1 if <substring> not found in <search string>
|
||||
index to <substring> in <search string> if found
|
||||
|
||||
See Also:
|
||||
match(6); rmatch(6)
|
||||
|
||||
Reference in New Issue
Block a user