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__(< | ||
+ | |||
+ | ======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' | ||
+ | |||
+ | ======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: | ||
+ | < | ||
+ | $afterw(foobar one two foobar my shoe) returns "my shoe" | ||
+ | $afterw(booya one two foobar my shoe) | ||
+ | </ | ||
+ | |||
+ | ======History: | ||
+ | This function first appeared in "plus 2" (post-ircII, | ||
+ | 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