Subversion Repositories tpanel

Rev

Rev 100 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 100 Rev 101
Line 411... Line 411...
411
    }
411
    }
412
 
412
 
413
    return string();
413
    return string();
414
}
414
}
415
 
415
 
416
string TDirectory::getEntryWithPart(const string &part)
416
string TDirectory::getEntryWithPart(const string &part, bool precice)
417
{
417
{
418
    DECL_TRACER("TDirectory::getEntryWithPart(const string &part)");
418
    DECL_TRACER("TDirectory::getEntryWithPart(const string &part, bool precice)");
419
 
419
 
420
    if (entries.size() == 0)
420
    if (entries.size() == 0)
421
        return string();
421
        return string();
422
 
422
 
423
    vector<DFILES_T>::iterator iter;
423
    vector<DFILES_T>::iterator iter;
Line 430... Line 430...
430
            char next = iter->name.at(pos + part.length());
430
            char next = iter->name.at(pos + part.length());
431
 
431
 
432
            if (next == '.')
432
            if (next == '.')
433
                return iter->name;
433
                return iter->name;
434
 
434
 
435
            if ((next >= 'A' && next <= 'Z') || (next >= 'a' && next <= 'z') || next == '_')
435
            if ((next >= 'A' && next <= 'Z') || (next >= 'a' && next <= 'z') || (precice && next == '_'))
436
                continue;
436
                continue;
437
 
437
 
438
            return iter->name;
438
            return iter->name;
439
        }
439
        }
440
    }
440
    }