Проверка шаблона шины для iOS
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 달 전
123456789101112131415
  1. class Mode:
  2. def __init__(self):
  3. self.reset()
  4. def parseLine(self, line):
  5. if line.startswith("src:"):
  6. self.reset()
  7. self.isSource = True
  8. elif line.startswith("replace:"):
  9. self.reset()
  10. self.isReplacement = True
  11. def reset(self):
  12. self.isSource = False
  13. self.isReplacement = False