/** * Determines if two Unicode strings are equal * * @access public * @param I18N_UnicodeString $unicode The string to compare to. * @return boolean True if they are equal, false otherwise. */ function equals(&$unicode) { if ($this->length() != $unicode->length()) { // if they arn't even the same length no need to even check return false; } return $this->_unicode == $unicode->_unicode; }