'Returns the current position in the partially formatted phone
number of the character which was previously passed in as the
parameter of input_digit(remember_position=True).'

def get_remembered_position(self):

    if (not self._able_to_format):
        return self._original_position
    accrued_input_index = 0
    current_output_index = 0
    while ((accrued_input_index < self._position_to_remember) and (current_output_index < len(self._current_output))):
        if (self._accrued_input_without_formatting[accrued_input_index] == self._current_output[current_output_index]):
            accrued_input_index += 1
        current_output_index += 1
    return current_output_index
