QScintilla/SpellChecker.py

changeset 2965
d133c7edd88a
parent 2302
f29e9405c851
child 3011
18292228c724
equal deleted inserted replaced
2964:84b65fb9e780 2965:d133c7edd88a
356 356
357 self.__checkDocumentPart(startPos, endPos) 357 self.__checkDocumentPart(startPos, endPos)
358 358
359 def checkDocument(self): 359 def checkDocument(self):
360 """ 360 """
361 Public method to check the complete document 361 Public method to check the complete document.
362 """ 362 """
363 self.__checkDocumentPart(0, self.editor.length()) 363 self.__checkDocumentPart(0, self.editor.length())
364 364
365 def checkDocumentIncrementally(self): 365 def checkDocumentIncrementally(self):
366 """ 366 """
487 ################################################################## 487 ##################################################################
488 488
489 def __iter__(self): 489 def __iter__(self):
490 """ 490 """
491 Private method to create an iterator. 491 Private method to create an iterator.
492
493 @return self
492 """ 494 """
493 return self 495 return self
494 496
495 def __next__(self): 497 def __next__(self):
496 """ 498 """
497 Public method to advance to the next error. 499 Public method to advance to the next error.
498 500
499 @return self 501 @return self
502 @exception StopIteration raised to indicate the end of the iteration
500 """ 503 """
501 spell = self._spelling_dict 504 spell = self._spelling_dict
502 if spell: 505 if spell:
503 while self.pos < self.endPos and self.pos >= 0: 506 while self.pos < self.endPos and self.pos >= 0:
504 word, wordStart, wordEnd = self.__getNextWord(self.pos, self.endPos) 507 word, wordStart, wordEnd = self.__getNextWord(self.pos, self.endPos)

eric ide

mercurial