Diffstat (limited to 'noncore/net/mailit/textparser.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mailit/textparser.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/net/mailit/textparser.h b/noncore/net/mailit/textparser.h index c5e88a0..03bb6d5 100644 --- a/noncore/net/mailit/textparser.h +++ b/noncore/net/mailit/textparser.h | |||
@@ -40,27 +40,27 @@ struct t_splitLine | |||
40 | { | 40 | { |
41 | t_lineType lineType; | 41 | t_lineType lineType; |
42 | QString str; //a bit redundant... | 42 | QString str; //a bit redundant... |
43 | t_splitElm elm[MAX_ELEMENTS]; | 43 | t_splitElm elm[MAX_ELEMENTS]; |
44 | int elmCount; | 44 | int elmCount; |
45 | }; | 45 | }; |
46 | 46 | ||
47 | class TextParser: public QObject | 47 | class TextParser: public QObject |
48 | { | 48 | { |
49 | Q_OBJECT | 49 | Q_OBJECT |
50 | 50 | ||
51 | public: | 51 | public: |
52 | TextParser(QString in, QString lineBreak); | 52 | TextParser(const QString &in, const QString &lineBreak); |
53 | TextParser(QString in, QString lineBreak, QString sep); | 53 | TextParser(const QString &in, const QString &lineBreak, const QString &sep); |
54 | int find(QString target, QChar sep, int pos, bool upperCase); | 54 | int find(const QString &target, QChar sep, int pos, bool upperCase); |
55 | int elmCount(); | 55 | int elmCount(); |
56 | QChar separatorAt(int pos); | 56 | QChar separatorAt(int pos); |
57 | QChar nextSeparator(); | 57 | QChar nextSeparator(); |
58 | bool hasNextSeparator(); | 58 | bool hasNextSeparator(); |
59 | QString wordAt(int pos); | 59 | QString wordAt(int pos); |
60 | QString nextWord(); | 60 | QString nextWord(); |
61 | bool hasNextWord(); | 61 | bool hasNextWord(); |
62 | QString getString(int *pos, QChar stop, bool lineEnd); | 62 | QString getString(int *pos, QChar stop, bool lineEnd); |
63 | QString getNextLine(); | 63 | QString getNextLine(); |
64 | bool hasNextLine(); | 64 | bool hasNextLine(); |
65 | int endLinePos(int pos); | 65 | int endLinePos(int pos); |
66 | 66 | ||