blob: cc6bc5d423a4d7915711d60d47a1c57c0327037f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#ifndef _RAR_STRLIST_
#define _RAR_STRLIST_
class StringList
{
private:
Array<wchar> StringData;
size_t CurPos;
uint StringsCount;
size_t SaveCurPos[16],SavePosNumber;
public:
StringList();
void Reset();
void AddStringA(const char *Str);
void AddString(const wchar *Str);
bool GetStringA(char *Str,size_t MaxLength);
bool GetString(wchar *Str,size_t MaxLength);
bool GetString(wchar *Str,size_t MaxLength,int StringNum);
wchar* GetString();
bool GetString(wchar **Str);
void Rewind();
uint ItemsCount() {return StringsCount;};
size_t GetCharCount() {return StringData.Size();}
bool Search(const wchar *Str,bool CaseSensitive);
void SavePosition();
void RestorePosition();
};
#endif
|