#include <String.h>
Public Member Functions | |
| CStringBase () | |
| CStringBase (T c) | |
| CStringBase (const T *chars) | |
| CStringBase (const CStringBase &s) | |
| ~CStringBase () | |
| operator const T * () const | |
| T * | GetBuffer (int minBufLength) |
| void | ReleaseBuffer () |
| void | ReleaseBuffer (int newLength) |
| CStringBase & | operator= (T c) |
| CStringBase & | operator= (const T *chars) |
| CStringBase & | operator= (const CStringBase &s) |
| CStringBase & | operator+= (T c) |
| CStringBase & | operator+= (const T *s) |
| CStringBase & | operator+= (const CStringBase &s) |
| void | Empty () |
| int | Length () const |
| bool | IsEmpty () const |
| CStringBase | Mid (int startIndex) const |
| CStringBase | Mid (int startIndex, int count) const |
| CStringBase | Left (int count) const |
| CStringBase | Right (int count) const |
| void | MakeUpper () |
| void | MakeLower () |
| int | Compare (const CStringBase &s) const |
| int | CompareNoCase (const CStringBase &s) const |
| int | Find (T c) const |
| int | Find (T c, int startIndex) const |
| int | Find (const CStringBase &s) const |
| int | Find (const CStringBase &s, int startIndex) const |
| int | ReverseFind (T c) const |
| int | FindOneOf (const CStringBase &s) const |
| void | TrimLeft (T c) |
| void | TrimLeft () |
| void | TrimRight () |
| void | TrimRight (T c) |
| void | Trim () |
| int | Insert (int index, T c) |
| int | Insert (int index, const CStringBase &s) |
| int | Replace (T oldChar, T newChar) |
| int | Replace (const CStringBase &oldString, const CStringBase &newString) |
| int | Delete (int index, int count=1) |
Protected Member Functions | |
| void | SetCapacity (int newCapacity) |
| void | GrowLength (int n) |
| void | CorrectIndex (int &index) const |
Protected Attributes | |
| T * | _chars |
| int | _length |
| int | _capacity |
Private Member Functions | |
| void | TrimLeftWithCharSet (const CStringBase &charSet) |
| void | TrimRightWithCharSet (const CStringBase &charSet) |
| void | MoveItems (int destIndex, int srcIndex) |
| void | InsertSpace (int &index, int size) |
| CStringBase | GetTrimDefaultCharSet () |
Static Private Member Functions | |
| static T * | GetNextCharPointer (T *p) |
| static const T * | GetNextCharPointer (const T *p) |
| static T * | GetPrevCharPointer (T *base, T *p) |
| static const T * | GetPrevCharPointer (const T *base, const T *p) |
Definition at line 101 of file String.h.
| CStringBase< T >::CStringBase | ( | ) | [inline] |
| CStringBase< T >::CStringBase | ( | T | c | ) | [inline] |
| CStringBase< T >::CStringBase | ( | const T * | chars | ) | [inline] |
| CStringBase< T >::CStringBase | ( | const CStringBase< T > & | s | ) | [inline] |
| CStringBase< T >::~CStringBase | ( | ) | [inline] |
| void CStringBase< T >::TrimLeftWithCharSet | ( | const CStringBase< T > & | charSet | ) | [inline, private] |
| void CStringBase< T >::TrimRightWithCharSet | ( | const CStringBase< T > & | charSet | ) | [inline, private] |
| void CStringBase< T >::MoveItems | ( | int | destIndex, | |
| int | srcIndex | |||
| ) | [inline, private] |
Definition at line 132 of file String.h.
Referenced by CStringBase< wchar_t >::Delete(), and CStringBase< wchar_t >::InsertSpace().
| void CStringBase< T >::InsertSpace | ( | int & | index, | |
| int | size | |||
| ) | [inline, private] |
| static T* CStringBase< T >::GetNextCharPointer | ( | T * | p | ) | [inline, static, private] |
Definition at line 145 of file String.h.
Referenced by CStringBase< wchar_t >::Find(), CStringBase< wchar_t >::TrimLeft(), CStringBase< wchar_t >::TrimLeftWithCharSet(), CStringBase< wchar_t >::TrimRight(), and CStringBase< wchar_t >::TrimRightWithCharSet().
| static const T* CStringBase< T >::GetNextCharPointer | ( | const T * | p | ) | [inline, static, private] |
| static T* CStringBase< T >::GetPrevCharPointer | ( | T * | base, | |
| T * | p | |||
| ) | [inline, static, private] |
| static const T* CStringBase< T >::GetPrevCharPointer | ( | const T * | base, | |
| const T * | p | |||
| ) | [inline, static, private] |
| void CStringBase< T >::SetCapacity | ( | int | newCapacity | ) | [inline, protected] |
Definition at line 158 of file String.h.
Referenced by CStringBase< wchar_t >::CStringBase(), CStringBase< wchar_t >::GetBuffer(), CStringBase< wchar_t >::GrowLength(), CStringBase< wchar_t >::Mid(), and CStringBase< wchar_t >::operator=().
| void CStringBase< T >::GrowLength | ( | int | n | ) | [inline, protected] |
Definition at line 180 of file String.h.
Referenced by CStringBase< wchar_t >::InsertSpace(), and CStringBase< wchar_t >::operator+=().
| void CStringBase< T >::CorrectIndex | ( | int & | index | ) | const [inline, protected] |
Definition at line 197 of file String.h.
Referenced by CStringBase< wchar_t >::Insert(), and CStringBase< wchar_t >::InsertSpace().
| CStringBase< T >::operator const T * | ( | ) | const [inline] |
| T* CStringBase< T >::GetBuffer | ( | int | minBufLength | ) | [inline] |
Definition at line 232 of file String.h.
Referenced by NWindows::NFile::NDirectory::MyGetCurrentDirectory(), NWindows::NFile::NDirectory::MyGetFullPathName(), NWindows::NFile::NFind::MyGetLogicalDriveStrings(), NWindows::NFile::NDirectory::MyGetShortPathName(), NWindows::NFile::NDirectory::MyGetSystemDirectory(), NWindows::NFile::NDirectory::MyGetTempFileName(), NWindows::NFile::NDirectory::MyGetTempPath(), NWindows::NFile::NDirectory::MyGetWindowsDirectory(), and NWindows::NFile::NDirectory::MySearchPath().
| void CStringBase< T >::ReleaseBuffer | ( | ) | [inline] |
Definition at line 238 of file String.h.
Referenced by NWindows::NFile::NDirectory::MyGetCurrentDirectory(), NWindows::NFile::NDirectory::MyGetFullPathName(), NWindows::NFile::NDirectory::MyGetShortPathName(), NWindows::NFile::NDirectory::MyGetSystemDirectory(), NWindows::NFile::NDirectory::MyGetTempFileName(), NWindows::NFile::NDirectory::MyGetTempPath(), NWindows::NFile::NDirectory::MyGetWindowsDirectory(), NWindows::NFile::NDirectory::MySearchPath(), and CStringBase< wchar_t >::ReleaseBuffer().
| void CStringBase< T >::ReleaseBuffer | ( | int | newLength | ) | [inline] |
| CStringBase& CStringBase< T >::operator= | ( | T | c | ) | [inline] |
| CStringBase& CStringBase< T >::operator= | ( | const T * | chars | ) | [inline] |
| CStringBase& CStringBase< T >::operator= | ( | const CStringBase< T > & | s | ) | [inline] |
| CStringBase& CStringBase< T >::operator+= | ( | T | c | ) | [inline] |
| CStringBase& CStringBase< T >::operator+= | ( | const T * | s | ) | [inline] |
| CStringBase& CStringBase< T >::operator+= | ( | const CStringBase< T > & | s | ) | [inline] |
| void CStringBase< T >::Empty | ( | ) | [inline] |
Definition at line 297 of file String.h.
Referenced by GetArchiveItemPath(), NWindows::NFile::NDirectory::MyGetFullPathName(), CStringBase< wchar_t >::operator=(), ReadArchiverInfoList(), NWindows::NFile::NName::SplitNameToPureNameAndExtension(), and SplitPathToParts().
| int CStringBase< T >::Length | ( | ) | const [inline] |
Definition at line 302 of file String.h.
Referenced by NWildcard::CCensor::AddItem(), NWildcard::CCensorNode::AddItem2(), AreTheFileNamesDirDelimiterEqual(), NWindows::NFile::NDirectory::CreateComplexDirectory(), EnhancedMaskTest(), ExtractDirPrefixFromPath(), ExtractFileNameFromPath(), NWindows::NFile::NName::NPathType::GetPathType(), CStringBase< wchar_t >::Insert(), NWindows::NFile::NFind::CFileInfoW::IsDots(), NWindows::NFile::NFind::CFileInfo::IsDots(), MakeDefaultName(), MultiByteToUnicodeString(), NWindows::NFile::NDirectory::MyGetFullPathName(), NWindows::NFile::NDirectory::MySearchPath(), NWindows::NFile::NName::NormalizeDirPathPrefix(), NWindows::NFile::NName::CParsedPath::ParsePath(), CStringBase< wchar_t >::Replace(), SplitPathToParts(), SplitString(), UnicodeStringToMultiByte(), and vms7zipArchiveExtractCallback::vms7zipArchiveExtractCallback().
| bool CStringBase< T >::IsEmpty | ( | ) | const [inline] |
Definition at line 303 of file String.h.
Referenced by NWildcard::CCensor::AddItem(), NWildcard::CCensorNode::AddItem2(), DecompressArchive(), DecompressArchives(), CStringBase< wchar_t >::Find(), GetArchiveItemPath(), CStringBase< wchar_t >::Insert(), NWindows::NFile::NFind::CFileInfoW::IsDots(), NWindows::NFile::NFind::CFileInfo::IsDots(), MakeDefaultName(), NWindows::NFile::NName::NormalizeDirPathPrefix(), OpenArchive(), and CStringBase< wchar_t >::Replace().
| CStringBase CStringBase< T >::Mid | ( | int | startIndex | ) | const [inline] |
Definition at line 305 of file String.h.
Referenced by ExtractFileNameFromPath(), NWindows::NFile::NDirectory::GetOnlyName(), CStringBase< wchar_t >::Left(), MakeDefaultName(), CStringBase< wchar_t >::Mid(), NWindows::NFile::NDirectory::MyGetFullPathName(), MyOpenArchive(), NWindows::NFile::NDirectory::MySearchPath(), OpenArchive(), NWindows::NFile::NName::CParsedPath::ParsePath(), CStringBase< wchar_t >::Right(), NWindows::NFile::NName::SplitNameToPureNameAndExtension(), and SplitPathToParts().
| CStringBase CStringBase< T >::Mid | ( | int | startIndex, | |
| int | count | |||
| ) | const [inline] |
| CStringBase CStringBase< T >::Left | ( | int | count | ) | const [inline] |
Definition at line 324 of file String.h.
Referenced by NWindows::NFile::NDirectory::CreateComplexDirectory(), ExtractDirPrefixFromPath(), GetModuleFolderPrefix(), NWindows::NFile::NDirectory::GetOnlyDirPrefix(), MakeDefaultName(), NWindows::NFile::NDirectory::MyGetFullPathName(), MyOpenArchive(), NWindows::NFile::NDirectory::MySearchPath(), NWindows::NFile::NName::CParsedPath::ParsePath(), NWindows::NFile::NName::SplitNameToPureNameAndExtension(), and SplitPathToParts().
| CStringBase CStringBase< T >::Right | ( | int | count | ) | const [inline] |
| void CStringBase< T >::MakeUpper | ( | ) | [inline] |
| void CStringBase< T >::MakeLower | ( | ) | [inline] |
| int CStringBase< T >::Compare | ( | const CStringBase< T > & | s | ) | const [inline] |
| int CStringBase< T >::CompareNoCase | ( | const CStringBase< T > & | s | ) | const [inline] |
Definition at line 341 of file String.h.
Referenced by CArchiverInfo::FindExtension(), NWildcard::CCensorNode::FindSubNode(), and OpenArchive().
| int CStringBase< T >::Find | ( | T | c | ) | const [inline] |
Definition at line 345 of file String.h.
Referenced by NWindows::NFile::NDirectory::CreateComplexDirectory(), CStringBase< wchar_t >::Find(), CStringBase< wchar_t >::FindOneOf(), NWindows::NFile::NName::CParsedPath::ParsePath(), CStringBase< wchar_t >::Replace(), CStringBase< wchar_t >::TrimLeftWithCharSet(), and CStringBase< wchar_t >::TrimRightWithCharSet().
| int CStringBase< T >::Find | ( | T | c, | |
| int | startIndex | |||
| ) | const [inline] |
| int CStringBase< T >::Find | ( | const CStringBase< T > & | s | ) | const [inline] |
| int CStringBase< T >::Find | ( | const CStringBase< T > & | s, | |
| int | startIndex | |||
| ) | const [inline] |
| int CStringBase< T >::ReverseFind | ( | T | c | ) | const [inline] |
Definition at line 374 of file String.h.
Referenced by NWindows::NFile::NDirectory::CreateComplexDirectory(), GetModuleFolderPrefix(), MakeDefaultName(), NWindows::NFile::NName::NormalizeDirPathPrefix(), OpenArchive(), and NWindows::NFile::NName::SplitNameToPureNameAndExtension().
| int CStringBase< T >::FindOneOf | ( | const CStringBase< T > & | s | ) | const [inline] |
| void CStringBase< T >::TrimLeft | ( | T | c | ) | [inline] |
| CStringBase CStringBase< T >::GetTrimDefaultCharSet | ( | ) | [inline, private] |
Definition at line 404 of file String.h.
Referenced by CStringBase< wchar_t >::TrimLeft(), and CStringBase< wchar_t >::TrimRight().
| void CStringBase< T >::TrimLeft | ( | ) | [inline] |
| void CStringBase< T >::TrimRight | ( | ) | [inline] |
| void CStringBase< T >::TrimRight | ( | T | c | ) | [inline] |
| void CStringBase< T >::Trim | ( | ) | [inline] |
| int CStringBase< T >::Insert | ( | int | index, | |
| T | c | |||
| ) | [inline] |
| int CStringBase< T >::Insert | ( | int | index, | |
| const CStringBase< T > & | s | |||
| ) | [inline] |
| int CStringBase< T >::Replace | ( | T | oldChar, | |
| T | newChar | |||
| ) | [inline] |
| int CStringBase< T >::Replace | ( | const CStringBase< T > & | oldString, | |
| const CStringBase< T > & | newString | |||
| ) | [inline] |
| int CStringBase< T >::Delete | ( | int | index, | |
| int | count = 1 | |||
| ) | [inline] |
Definition at line 509 of file String.h.
Referenced by NWildcard::CCensorNode::AddItem2(), NWindows::NFile::NDirectory::CreateComplexDirectory(), CStringBase< wchar_t >::Replace(), CStringBase< wchar_t >::TrimLeft(), CStringBase< wchar_t >::TrimLeftWithCharSet(), CStringBase< wchar_t >::TrimRight(), and CStringBase< wchar_t >::TrimRightWithCharSet().
T* CStringBase< T >::_chars [protected] |
Definition at line 154 of file String.h.
Referenced by CStringBase< wchar_t >::Compare(), CStringBase< wchar_t >::CompareNoCase(), CStringBase< wchar_t >::CStringBase(), CStringBase< wchar_t >::Empty(), CStringBase< wchar_t >::Find(), CStringBase< wchar_t >::FindOneOf(), CStringBase< wchar_t >::GetBuffer(), CStringBase< wchar_t >::Insert(), CStringBase< wchar_t >::MakeLower(), CStringBase< wchar_t >::MakeUpper(), CStringBase< wchar_t >::Mid(), CStringBase< wchar_t >::MoveItems(), CStringBase< wchar_t >::operator const wchar_t *(), CStringBase< wchar_t >::operator+=(), CStringBase< wchar_t >::operator=(), CStringBase< wchar_t >::ReleaseBuffer(), CStringBase< wchar_t >::Replace(), CStringBase< wchar_t >::ReverseFind(), CStringBase< wchar_t >::SetCapacity(), CStringBase< wchar_t >::TrimLeft(), CStringBase< wchar_t >::TrimLeftWithCharSet(), CStringBase< wchar_t >::TrimRight(), CStringBase< wchar_t >::TrimRightWithCharSet(), and CStringBase< wchar_t >::~CStringBase().
int CStringBase< T >::_length [protected] |
Definition at line 155 of file String.h.
Referenced by CStringBase< wchar_t >::CorrectIndex(), CStringBase< wchar_t >::CStringBase(), CStringBase< wchar_t >::Delete(), CStringBase< wchar_t >::Empty(), CStringBase< wchar_t >::Find(), CStringBase< wchar_t >::FindOneOf(), CStringBase< wchar_t >::GrowLength(), CStringBase< wchar_t >::Insert(), CStringBase< wchar_t >::IsEmpty(), CStringBase< wchar_t >::Length(), CStringBase< wchar_t >::Mid(), CStringBase< wchar_t >::MoveItems(), CStringBase< wchar_t >::operator+=(), CStringBase< wchar_t >::operator=(), CStringBase< wchar_t >::ReleaseBuffer(), CStringBase< wchar_t >::Replace(), CStringBase< wchar_t >::ReverseFind(), CStringBase< wchar_t >::Right(), CStringBase< wchar_t >::SetCapacity(), CStringBase< wchar_t >::TrimRight(), and CStringBase< wchar_t >::TrimRightWithCharSet().
int CStringBase< T >::_capacity [protected] |
Definition at line 156 of file String.h.
Referenced by CStringBase< wchar_t >::GetBuffer(), CStringBase< wchar_t >::GrowLength(), and CStringBase< wchar_t >::SetCapacity().
1.5.6