Subversion Repositories spk

Rev

Rev 101 | Rev 112 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
8 cycrow 1
#pragma once
2
 
3
#include "String.h"
4
#include "../lists.h"
5
 
6
namespace Utils {
88 cycrow 7
 
8 cycrow 8
	typedef struct {
9
		String str;
10
		String data;
11
	} SStringList;
12
 
88 cycrow 13
	typedef CListNode<SStringList> CStringListNode;
14
 
8 cycrow 15
	class SPKEXPORT CStringList : public CLinkList<SStringList>
16
	{
17
	public:
18
		void pushBack(const String &str, const String &data);
111 cycrow 19
		void pushBack(const String &str);
20
 
9 cycrow 21
		void clear();
98 cycrow 22
		void tokenise(const String &str, const String &token);
23
 
24
		Utils::String firstString();
25
		Utils::String nextString();
101 cycrow 26
 
27
		Utils::String findData(const Utils::String &data, bool bIgnoreCase = false) const;
28
		Utils::String findString(const Utils::String &str, bool bIgnoreCase = false) const;
8 cycrow 29
	};
30
} //NAMESPACE
31