scworditerator.h (scribus-1.5.6.tar.xz) | : | scworditerator.h (scribus-1.5.6.1.tar.xz) | ||
---|---|---|---|---|
skipping to change at line 19 | skipping to change at line 19 | |||
#define SCWORDITERATOR_H | #define SCWORDITERATOR_H | |||
#include <QString> | #include <QString> | |||
#include <unicode/uversion.h> | #include <unicode/uversion.h> | |||
#include "scribusapi.h" | #include "scribusapi.h" | |||
#include "storytext.h" | #include "storytext.h" | |||
U_NAMESPACE_BEGIN | U_NAMESPACE_BEGIN | |||
class BreakIterator; | class BreakIterator; | |||
class UnicodeString; | ||||
U_NAMESPACE_END | U_NAMESPACE_END | |||
class SCRIBUS_API ScWordIterator | class SCRIBUS_API ScWordIterator | |||
{ | { | |||
public: | public: | |||
ScWordIterator(StoryText& story); | ScWordIterator(StoryText& story); | |||
~ScWordIterator(); | ~ScWordIterator(); | |||
int firstWord(); | int firstWord(); | |||
int nextWord(int pos); | int nextWord(int pos); | |||
int prevWord(int pos); | int prevWord(int pos); | |||
int endOfWord(int pos); | int endOfWord(int pos); | |||
QString word(int pos); | QString word(int pos); | |||
private: | private: | |||
icu::UnicodeString* m_unicodeString { nullptr }; | ||||
icu::BreakIterator* m_wordIterator { nullptr }; | icu::BreakIterator* m_wordIterator { nullptr }; | |||
StoryText& m_story; | StoryText& m_story; | |||
icu::BreakIterator* getWordIterator(); | icu::BreakIterator* getWordIterator(); | |||
}; | }; | |||
#endif | #endif | |||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 2 lines changed or added |