1 #ifndef TEXTCUTTER_H
2 #define TEXTCUTTER_H
3 
4 #include "tokenizerf.h"
5 
6 class TextCutter
7 {
8 	public:
9         TextCutter(const wxString& allText, FortranSourceForm fsForm);
10         ~TextCutter();
11 
12         void GetChunk(wxString& chunk, bool& isWord);
13 
14     private:
15         bool SkipWhiteSpace();
16         bool MoveToNextChar();
17         void AdjustColumn();
18         wxChar CurrentChar();
19         wxChar NextChar();
IsEOF()20         bool IsEOF(){ return m_CurIdx >= m_TextLen; };
21         void SkipUnwanted();
22         void SkipToChar(const wxChar& ch);
23         bool CharInString(const char ch, const char* chars);
24         void SkipToEOL();
25 
26         wxString m_Text;
27         unsigned int m_TextLen;
28         FortranSourceForm m_CurSourceForm;
29         unsigned int m_CurIdx;
30         unsigned int m_CurColumn;
31 };
32 
33 #endif // TEXTCUTTER_H
34