public function regionCompare( $offseta, $str, $offsetb, $length, $ignoreCase = false ) {
		$a = $this->substring( $offseta );
		$b = new GString( $str );
		$b = $b->substring( $offsetb );
		if ( $ignoreCase == false ) {
			return strncmp( $a, $b, $length );
		} else {
			return strncasecmp( $a, $b, $length );
		}
	}
public function regionCompare( $offseta, $str, $offsetb, $length, $ignoreCase = false ) {
		$a = $this->substring( $offseta );
		$b = new GString( $str );
		$b = $b->substring( $offsetb );
		if ( $ignoreCase == false ) {
			return strncmp( $a, $b, $length );
		} else {
			return strncasecmp( $a, $b, $length );
		}
	}
public function regionCompare ( $ offseta , $ str , $ offsetb , $ length , $ ignoreCase = false ) { $ a = $ this -> substring ( $ offseta ) ; $ b = new GString ( $ str ) ; $ b = $ b -> substring ( $ offsetb ) ; if ( $ ignoreCase == false ) { return strncmp ( $ a , $ b , $ length ) ; } else { return strncasecmp ( $ a , $ b , $ length ) ; } }
Compare two string regions.

@access public

@param int $offseta The starting offset of the subregion in this string
@param string $str The string argument
@param int $offsetb The starting offset of the subregion in the string argument
@param int $length The number of characters to compare
@param boolean $ignoreCase If true, ignore case

@return int the value 0 if regions are equal, 1 or -1.
Compare two string regions .