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:
22
bitchx-docs/6_Functions/numwords
Normal file
22
bitchx-docs/6_Functions/numwords
Normal file
@@ -0,0 +1,22 @@
|
||||
Synopsis:
|
||||
$numwords(<word list>)
|
||||
|
||||
Technical:
|
||||
This function serves as a replacement for the $#var notation when you
|
||||
want to count the words in a string not held in a variable.
|
||||
|
||||
Practical:
|
||||
This function is used to count the number of words in an arbitrary
|
||||
string. Normally, you could get this value with the $#var form, but
|
||||
that doesn't work for parameter expandos or function return values.
|
||||
|
||||
Returns:
|
||||
number of words in given string
|
||||
|
||||
Examples:
|
||||
$numwords(hello there bob) returns 3
|
||||
$numwords() returns 0
|
||||
|
||||
See Also:
|
||||
Special_Vars(7); strlen(6)
|
||||
|
||||
Reference in New Issue
Block a user