C# 클래스 Duplicity.Filtering.IgnoredFiles.FnMatch.FileNameMatcher

This class can be used to match filenames against fnmatch like patterns. It is not thread save. Supported are the wildcard characters * and ? and groups with:
  • characters e.g. [abc]
  • ranges e.g. [a-z]
  • the following character classes
    • [:alnum:]
    • [:alpha:]
    • [:blank:]
    • [:cntrl:]
    • [:digit:]
    • [:graph:]
    • [:lower:]
    • [:print:]
    • [:punct:]
    • [:space:]
    • [:upper:]
    • [:word:]
    • [:xdigit:]
    e. g. [[:xdigit:]]
파일 보기 프로젝트 열기: slashdotdash/Duplicity 1 사용 예제들

공개 메소드들

메소드 설명
Append ( string stringToMatch ) : void

CanAppendMatch ( ) : bool

CreateMatcherForSuffix ( ) : FileNameMatcher

FileNameMatcher ( FileNameMatcher other ) : System.Collections.Generic

A copy constructor which creates a new FileNameMatcher with the same state and Reset point like other.

FileNameMatcher ( string patternString, char invalidWildgetCharacter ) : System.Collections.Generic

IsMatch ( ) : bool

Reset ( ) : void

Resets this matcher to it's state right After construction.

비공개 메소드들

메소드 설명
CreateHeadsStartValues ( string patternString, char invalidWildgetCharacter ) : IList
CreateSimpleHeads ( string patternPart, char invalidWildgetCharacter ) : IList
CreateWildCardHead ( char invalidWildgetCharacter, bool star ) : AbstractHead
ExtendStringToMatchByOneCharacter ( char c ) : void
FileNameMatcher ( IList headsStartValue ) : System.Collections.Generic

FileNameMatcher ( IList headsStartValue, ICollection heads ) : System.Collections.Generic

FindGroupEnd ( int indexOfStartBracket, string pattern ) : int
ParseHeads ( string pattern, char invalidWildgetCharacter ) : IList

메소드 상세

Append() 공개 메소드

public Append ( string stringToMatch ) : void
stringToMatch string /// Extends the string which is matched against the patterns of this class. ///
리턴 void

CanAppendMatch() 공개 메소드

public CanAppendMatch ( ) : bool
리턴 bool

CreateMatcherForSuffix() 공개 메소드

public CreateMatcherForSuffix ( ) : FileNameMatcher
리턴 FileNameMatcher

FileNameMatcher() 공개 메소드

A copy constructor which creates a new FileNameMatcher with the same state and Reset point like other.
public FileNameMatcher ( FileNameMatcher other ) : System.Collections.Generic
other FileNameMatcher /// another instance. ///
리턴 System.Collections.Generic

FileNameMatcher() 공개 메소드

/// if the patternString contains a invalid fnmatch pattern. ///
public FileNameMatcher ( string patternString, char invalidWildgetCharacter ) : System.Collections.Generic
patternString string must contain a pattern which fnmatch would accept.
invalidWildgetCharacter char /// if this parameter isn't null then this character will not /// match at wildcards(* and ? are wildcards). ///
리턴 System.Collections.Generic

IsMatch() 공개 메소드

public IsMatch ( ) : bool
리턴 bool

Reset() 공개 메소드

Resets this matcher to it's state right After construction.
public Reset ( ) : void
리턴 void