def getOperator(self):
    if self.end:
        return None
    op = None
    if ((self.index + 2) < self.length):
        triple = ((self.current + self.next) + self.chars[(self.index + 2)])
        if (triple in self.mgr.tripleOperators):
            op = triple
    if ((op is None) and ((self.index + 1) < self.length)):
        double = (self.current + self.next)
        if (double in self.mgr.doubleOperators):
            op = double
    if (op is None):
        op = self.current
    self.index += len(op)
    return op
def getOperator(self):
    if self.end:
        return None
    op = None
    if ((self.index + 2) < self.length):
        triple = ((self.current + self.next) + self.chars[(self.index + 2)])
        if (triple in self.mgr.tripleOperators):
            op = triple
    if ((op is None) and ((self.index + 1) < self.length)):
        double = (self.current + self.next)
        if (double in self.mgr.doubleOperators):
            op = double
    if (op is None):
        op = self.current
    self.index += len(op)
    return op