result=((0==aString.Compare("<<=")) ||(0==aString.Compare(">>=")));
result=(aString.Equals(NS_LITERAL_CSTRING("<<=")) || aString.Equals(NS_LITERAL_CSTRING(">>=")));
bool validOperator(nsCString& aString) {	bool 	result=false;	int   len=aString.Length();  switch(len) {    case 1: return true;    case 3:      result=((0==aString.Compare("<<=")) ||(0==aString.Compare(">>=")));      break;    default:       switch(aString[0]) {          case '+':  case '=':          case '&':  case '|':          case '<':  case '>':             if((aString[1]==aString[0]) || (aString[1]=='='))                result=true;             break;          case '-':             if((aString[1]==aString[0]) || (aString[1]=='>'))                result=true;             break;          case ':':             if((len==2) && (aString[1]==aString[0]))               result=true;             break;          case '*':	case '/':          case '^': 	case '!':          case '~':	case '%':             if((aString[1]=='='))                result=true;             break;          case '(':            result=aString[1]==')'; break;          case '[':            result=aString[1]==']'; break;          default:             break;       }       break;  }  return result;}