A simple string comparator.

Compares two strings for eqiality in a binary safe manner. Implements the condition interface specification.

author Andreas Aderhold
copyright 2001,2002 THYRELL. All rights reserved
version $Id: 9827cf0156c85ef453f99b60353c474650b4dc5f $
access public
package phing.tasks.system.condition

 Methods

evaluate()

evaluate() : boolean

Exceptions

\BuildException

Returns

boolean

setArg1()

setArg1($a1) 

Parameters

$a1

setArg2()

setArg2($a2) 

Parameters

$a2

Should the comparison be case sensitive?

setCaseSensitive(boolean $b) 

Parameters

$b

boolean

Should we want to trim the arguments before comparing them?

setTrim(boolean $b) 

Parameters

$b

boolean

 Properties

 

$arg1 
 

$arg2 
 

$caseSensitive 
 

$trim