#include "StdAfx.h"#include "Wildcard.h"Go to the source code of this file.
Namespaces | |
| namespace | NWildcard |
Functions | |
| static bool | IsCharDirLimiter (wchar_t c) |
| static bool | EnhancedMaskTest (const UString &mask, int maskPos, const UString &name, int namePos) |
| void | SplitPathToParts (const UString &path, UStringVector &pathParts) |
| void | SplitPathToParts (const UString &path, UString &dirPrefix, UString &name) |
| UString | ExtractDirPrefixFromPath (const UString &path) |
| UString | ExtractFileNameFromPath (const UString &path) |
| bool | CompareWildCardWithName (const UString &mask, const UString &name) |
| bool | DoesNameContainWildCard (const UString &path) |
| static int | NWildcard::BoolToIndex (bool value) |
| bool | AreTheFileNamesDirDelimiterEqual (const UString &name1, const UString &name2) |
Variables | |
| static const wchar_t | kPeriodChar = L'.' |
| static const wchar_t | kAnyCharsChar = L'*' |
| static const wchar_t | kAnyCharChar = L'?' |
| static const wchar_t | kDirDelimiter1 = L'\\' |
| static const wchar_t | kDirDelimiter2 = L'/' |
| static const UString | kWildCardCharSet = L"?*" |
| static const UString | kIllegalWildCardFileNameChars |
| static const UString | kIllegalFileNameChars |
Definition at line 391 of file Wildcard.cpp.
References IsCharDirLimiter(), and CStringBase< T >::Length().
Definition at line 118 of file Wildcard.cpp.
References EnhancedMaskTest().
Referenced by NWildcard::CItem::CheckPath().
Definition at line 123 of file Wildcard.cpp.
References CStringBase< T >::FindOneOf().
Referenced by NWildcard::CCensor::AddItem(), and NWildcard::CCensorNode::AddItem().
| static bool EnhancedMaskTest | ( | const UString & | mask, | |
| int | maskPos, | |||
| const UString & | name, | |||
| int | namePos | |||
| ) | [static] |
Definition at line 31 of file Wildcard.cpp.
References c, kAnyCharChar, kAnyCharsChar, CStringBase< T >::Length(), and MyCharUpper().
Referenced by CompareWildCardWithName().
Definition at line 100 of file Wildcard.cpp.
References IsCharDirLimiter(), CStringBase< T >::Left(), and CStringBase< T >::Length().
Definition at line 109 of file Wildcard.cpp.
References IsCharDirLimiter(), CStringBase< T >::Length(), and CStringBase< T >::Mid().
Referenced by OpenArchive().
| static bool IsCharDirLimiter | ( | wchar_t | c | ) | [inline, static] |
Definition at line 26 of file Wildcard.cpp.
References kDirDelimiter1, and kDirDelimiter2.
Referenced by NWildcard::CCensorNode::AddItem2(), AreTheFileNamesDirDelimiterEqual(), ExtractDirPrefixFromPath(), ExtractFileNameFromPath(), and SplitPathToParts().
Definition at line 90 of file Wildcard.cpp.
References IsCharDirLimiter(), CStringBase< T >::Left(), CStringBase< T >::Length(), and CStringBase< T >::Mid().
| void SplitPathToParts | ( | const UString & | path, | |
| UStringVector & | pathParts | |||
| ) |
Definition at line 69 of file Wildcard.cpp.
References CObjectVector< T >::Add(), c, CBaseRecordVector::Clear(), CStringBase< T >::Empty(), IsCharDirLimiter(), and CStringBase< T >::Length().
Referenced by NWildcard::CCensor::AddItem(), NWildcard::CCensorNode::AddItem(), NWildcard::CCensorNode::CheckPath(), CArchiveExtractCallback::GetStream(), and NWindows::NFile::NName::CParsedPath::ParsePath().
const wchar_t kAnyCharChar = L'?' [static] |
const wchar_t kAnyCharsChar = L'*' [static] |
const wchar_t kDirDelimiter1 = L'\\' [static] |
const wchar_t kDirDelimiter2 = L'/' [static] |
const UString kIllegalFileNameChars [static] |
Initial value:
Definition at line 23 of file Wildcard.cpp.
const UString kIllegalWildCardFileNameChars [static] |
Initial value:
L"\x1\x2\x3\x4\x5\x6\x7\x8\x9\xA\xB\xC\xD\xE\xF" L"\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F" L"\"/:<>\\|"
Definition at line 18 of file Wildcard.cpp.
const wchar_t kPeriodChar = L'.' [static] |
Definition at line 9 of file Wildcard.cpp.
const UString kWildCardCharSet = L"?*" [static] |
Definition at line 16 of file Wildcard.cpp.
1.5.6