"Fossies" - the Fresh Open Source Software Archive

Member "unrar/strlist.hpp" (4 May 2022, 770 Bytes) of package /linux/misc/unrarsrc-6.1.7.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "strlist.hpp" see the Fossies "Dox" file reference documentation.

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