3939// and ? is used to denote a single wildcard character.
4040static Bool SearchStringMatches (AsciiString str, AsciiString searchString)
4141{
42- if (str.getLength () == 0 ) {
43- if (searchString.getLength () == 0 ) {
42+ if (str.isEmpty () ) {
43+ if (searchString.isEmpty () ) {
4444 return TRUE ;
4545 }
4646 return FALSE ;
4747 }
48- if (searchString.getLength () == 0 ) {
48+ if (searchString.isEmpty () ) {
4949 return FALSE ;
5050 }
5151
@@ -103,7 +103,7 @@ void ArchiveFile::addFile(const AsciiString& path, const ArchivedFileInfo *fileI
103103 tokenizer.toLower ();
104104 tokenizer.nextToken (&token, " \\ /" );
105105
106- while (token.getLength () > 0 )
106+ while (! token.isEmpty () )
107107 {
108108 DetailedArchivedDirectoryInfoMap::iterator tempiter = dirInfo->m_directories .find (token);
109109 if (tempiter == dirInfo->m_directories .end ())
@@ -131,7 +131,7 @@ void ArchiveFile::getFileListInDirectory(const AsciiString& currentDirectory, co
131131 tokenizer.toLower ();
132132 tokenizer.nextToken (&token, " \\ /" );
133133
134- while (token.getLength () > 0 ) {
134+ while (! token.isEmpty () ) {
135135
136136 DetailedArchivedDirectoryInfoMap::const_iterator it = dirInfo->m_directories .find (token);
137137 if (it != dirInfo->m_directories .end ())
@@ -157,7 +157,7 @@ void ArchiveFile::getFileListInDirectory(const DetailedArchivedDirectoryInfo *di
157157 const DetailedArchivedDirectoryInfo *tempDirInfo = &(diriter->second );
158158 AsciiString tempdirname;
159159 tempdirname = currentDirectory;
160- if ((tempdirname.getLength () > 0 ) && (!tempdirname.endsWith (" \\ " ))) {
160+ if ((! tempdirname.isEmpty () ) && (!tempdirname.endsWith (" \\ " ))) {
161161 tempdirname.concat (' \\ ' );
162162 }
163163 tempdirname.concat (tempDirInfo->m_directoryName );
@@ -170,7 +170,7 @@ void ArchiveFile::getFileListInDirectory(const DetailedArchivedDirectoryInfo *di
170170 if (SearchStringMatches (fileiter->second .m_filename , searchName)) {
171171 AsciiString tempfilename;
172172 tempfilename = currentDirectory;
173- if ((tempfilename.getLength () > 0 ) && (!tempfilename.endsWith (" \\ " ))) {
173+ if ((! tempfilename.isEmpty () ) && (!tempfilename.endsWith (" \\ " ))) {
174174 tempfilename.concat (' \\ ' );
175175 }
176176 tempfilename.concat (fileiter->second .m_filename );
0 commit comments