Site Tools


afterw
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


afterw [2016/07/19 19:47] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +======Synopsis:======
 +$__afterw__(<word> <word list>)
 +
 +======Defined behaviors:======
 +   * __afterw__() == []
 +   * __afterw__(word) == []
 +   * __afterw__(word some list) == []
 +   * __afterw__(word a word list) == [list]
 +   * __afterw__(WORD a WoRd list) == [list]
 +   * For any __$x__: __afterw__(word __$x__) == __restw__(__findw__(word __$x__) __$x__)
 +   * The same as findw(), afterw() honors __/xdebug dword__
 +   * The same as findw(), all string comparisons are case insensitive
 +   * The same as findw(), afterw() honors your locale's collation rules
 +
 +======Practical:======
 +  * This function returns the part of a word list that occurs after a given word.
 +  * If the given word is not in the word list, the empty string will be returned
 +  * If there are not enough parameters, the empty string will be returned
 +
 +======Examples:======
 +<file>
 +$afterw(foobar one two foobar my shoe)    returns "my shoe"
 +$afterw(booya one two foobar my shoe)     returns ""  (empty string)
 +</file>
 +
 +======History:======
 +This function first appeared in "plus 2" (post-ircII, pre-EPIC)
 +Long ago, this function used to do wildcard matching instead of literal string compares.
  
afterw.txt · Last modified: 2016/07/19 19:47 by 127.0.0.1