Subversion Repositories spk

Rev

Rev 111 | Rev 116 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 111 Rev 112
Line 4... Line 4...
4
#include "../lists.h"
4
#include "../lists.h"
-
 
5
#include "List.h"
5
 
6
 
6
namespace Utils {
7
namespace Utils {
7
 
8
 
8
	typedef struct {
9
	typedef struct {
9
		String str;
10
		String str;
10
		String data;
11
		String data;
11
	} SStringList;
12
	} SStringList;
12
 
13
 
13
	typedef CListNode<SStringList> CStringListNode;
14
	typedef CListNode<SStringList> CStringListNode;
-
 
15
	typedef CList<SStringList>::iterator CStringListIterator;
14
 
16
 
15
	class SPKEXPORT CStringList : public CLinkList<SStringList>
17
	class SPKEXPORT CStringList
16
	{
18
	{
-
 
19
	private:
-
 
20
		CList<SStringList> *_lList;
-
 
21
 
17
	public:
22
	public:
-
 
23
		CStringList();
-
 
24
		~CStringList();
-
 
25
 
18
		void pushBack(const String &str, const String &data);
26
		void pushBack(const String &str, const String &data);
19
		void pushBack(const String &str);
27
		void pushBack(const String &str);
20
 
28
 
21
		void clear();
29
		void clear();
22
		void tokenise(const String &str, const String &token);
30
		void tokenise(const String &str, const String &token);
23
 
31
 
24
		Utils::String firstString();
32
		Utils::String firstString();
25
		Utils::String nextString();
33
		Utils::String nextString();
-
 
34
		Utils::SStringList *first();
-
 
35
		Utils::SStringList *next();
-
 
36
		CStringListIterator begin();
-
 
37
		CStringListIterator end();
26
 
38
 
27
		Utils::String findData(const Utils::String &data, bool bIgnoreCase = false) const;
39
		Utils::String findData(const Utils::String &data, bool bIgnoreCase = false) const;
28
		Utils::String findString(const Utils::String &str, bool bIgnoreCase = false) const;
40
		Utils::String findString(const Utils::String &str, bool bIgnoreCase = false) const;
-
 
41
 
-
 
42
		size_t size() const;
-
 
43
		bool empty() const;
29
	};
44
	};
30
} //NAMESPACE
45
} //NAMESPACE
31
 
46