Site Tools


snip
no way to compare when less than two revisions

Differences

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


snip [2007/02/27 04:57] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +# $EPIC: snip.txt,v 1.3 2007/02/27 04:57:37 jnelson Exp $
 +======Synopsis:======
 +[[load]] snip \\
 +$_snippy(//<end>// "//<what>//" //<string>//) \\
 +$snip(//<string>//) \\
 +$rsnip(//<string>//) \\
 +$lsnip(//<string>//) \\
 +$bsnip(//<string>//) \\
 +
 +======Description:======
 +The $_snippy() function returns the //<string>// after all instances of the
 +substring //<what>// have been removed ("snipped") from either the start or
 +the end of the string.  If //<end>// is **l**, then it is removed from the
 +start ("left") of the string, and if it is **r**, then it is removed from the
 +end ("right") of the string.
 +
 +The $snip() and $rsnip() functions returns the //<string>// with all of the
 +spaces on the end removed.
 +
 +The $lsnip() function returns the //<string>// with all of the spaces at the
 +beginning removed.
 +
 +The $bsnip() function returns the //<string>// with all of the spaces at the
 +beginning and at the end removed.
 +
 +======History:======
 +This function was written by Xavier and first appeared in epic5-0.3.2.
 +
  
snip.txt · Last modified: 2007/02/27 04:57 by 127.0.0.1