unrarsrc  6.1.7
About: unrar extracts, views and tests the contents of archives created with the RAR archiver.
  Fossies Dox: unrarsrc-6.1.7.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

StringList Class Reference

#include <strlist.hpp>

Collaboration diagram for StringList:
[legend]

Public Member Functions

 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)
 
wcharGetString ()
 
bool GetString (wchar **Str)
 
void Rewind ()
 
size_t ItemsCount ()
 
size_t GetCharCount ()
 
bool Search (const wchar *Str, bool CaseSensitive)
 
void SavePosition ()
 
void RestorePosition ()
 

Private Attributes

Array< wcharStringData
 
size_t CurPos
 
size_t StringsCount
 
size_t SaveCurPos [16]
 
size_t SavePosNumber
 

Detailed Description

Definition at line 4 of file strlist.hpp.

Constructor & Destructor Documentation

◆ StringList()

StringList::StringList ( )

Definition at line 3 of file strlist.cpp.

References Reset().

Member Function Documentation

◆ AddString()

◆ AddStringA()

void StringList::AddStringA ( const char *  Str)

Definition at line 18 of file strlist.cpp.

References AddString(), CharToWide(), and Array< T >::Size().

◆ GetCharCount()

size_t StringList::GetCharCount ( )
inline

Definition at line 25 of file strlist.hpp.

References Array< T >::Size(), and StringData.

◆ GetString() [1/4]

wchar * StringList::GetString ( )

Definition at line 77 of file strlist.cpp.

References GetString().

Referenced by GetString(), GetStringA(), and Search().

◆ GetString() [2/4]

bool StringList::GetString ( wchar **  Str)

Definition at line 85 of file strlist.cpp.

References CurPos, Array< T >::Size(), and StringData.

◆ GetString() [3/4]

◆ GetString() [4/4]

bool StringList::GetString ( wchar Str,
size_t  MaxLength,
int  StringNum 
)

Definition at line 60 of file strlist.cpp.

References GetString(), RestorePosition(), Rewind(), and SavePosition().

◆ GetStringA()

bool StringList::GetStringA ( char *  Str,
size_t  MaxLength 
)

Definition at line 39 of file strlist.cpp.

References GetString(), Array< T >::Size(), and WideToChar().

◆ ItemsCount()

◆ Reset()

void StringList::Reset ( )

◆ RestorePosition()

void StringList::RestorePosition ( )

Definition at line 143 of file strlist.cpp.

References CurPos, SaveCurPos, and SavePosNumber.

Referenced by GetString(), and Search().

◆ Rewind()

void StringList::Rewind ( )

◆ SavePosition()

void StringList::SavePosition ( )

Definition at line 131 of file strlist.cpp.

References ASIZE, CurPos, SaveCurPos, and SavePosNumber.

Referenced by GetString(), and Search().

◆ Search()

bool StringList::Search ( const wchar Str,
bool  CaseSensitive 
)

Definition at line 110 of file strlist.cpp.

References GetString(), RestorePosition(), Rewind(), SavePosition(), and wcsicomp().

Referenced by CmdExtract::ExtractArchive().

Member Data Documentation

◆ CurPos

size_t StringList::CurPos
private

Definition at line 8 of file strlist.hpp.

Referenced by GetString(), RestorePosition(), Rewind(), and SavePosition().

◆ SaveCurPos

size_t StringList::SaveCurPos[16]
private

Definition at line 12 of file strlist.hpp.

Referenced by RestorePosition(), and SavePosition().

◆ SavePosNumber

size_t StringList::SavePosNumber
private

Definition at line 12 of file strlist.hpp.

Referenced by Reset(), RestorePosition(), and SavePosition().

◆ StringData

Array<wchar> StringList::StringData
private

Definition at line 7 of file strlist.hpp.

Referenced by AddString(), GetCharCount(), GetString(), and Reset().

◆ StringsCount

size_t StringList::StringsCount
private

Definition at line 10 of file strlist.hpp.

Referenced by AddString(), ItemsCount(), and Reset().


The documentation for this class was generated from the following files: