C# Class Subtext.Framework.Util.KeyWords

Afficher le fichier Open project: ayende/Subtext

Méthodes publiques

Méthode Description
CreateKeyWord ( KeyWord kw ) : int
DeleteKeyWord ( int KeyWordID ) : bool
Format ( Entry entry ) : void
GetKeyWord ( int KeyWordID ) : KeyWord
GetKeyWords ( ) : IList
GetPagedKeyWords ( int pageIndex, int pageSize ) : IPagedCollection
Replace ( string source, string oldValue, string newValue ) : string
Replace ( string source, string oldValue, string newValue, bool onlyFirstMatch ) : string
ReplaceFormat ( string source, string oldValue, string formatString ) : string

Preforms a forward scan and replace for a given pattern. Replaces all finds and preforms a case sensitive search

ReplaceFormat ( string source, string oldValue, string formatString, bool onlyFirstMatch ) : string

Preforms a forward scan and replace for a given pattern. Can specify only to match first fine and if the pattern is CaseSensitive

UpdateKeyWord ( KeyWord kw ) : void

Private Methods

Méthode Description
CharIsWordBoundary ( char value ) : bool
Scan ( string source, string oldValue, string newValue, bool isFormat, bool onlyFirstMatch ) : string

Method Details

CreateKeyWord() public static méthode

public static CreateKeyWord ( KeyWord kw ) : int
kw Subtext.Framework.Components.KeyWord
Résultat int

DeleteKeyWord() public static méthode

public static DeleteKeyWord ( int KeyWordID ) : bool
KeyWordID int
Résultat bool

Format() public static méthode

public static Format ( Entry entry ) : void
entry Subtext.Framework.Components.Entry
Résultat void

GetKeyWord() public static méthode

public static GetKeyWord ( int KeyWordID ) : KeyWord
KeyWordID int
Résultat Subtext.Framework.Components.KeyWord

GetKeyWords() public static méthode

public static GetKeyWords ( ) : IList
Résultat IList

GetPagedKeyWords() public static méthode

public static GetPagedKeyWords ( int pageIndex, int pageSize ) : IPagedCollection
pageIndex int
pageSize int
Résultat IPagedCollection

Replace() public static méthode

public static Replace ( string source, string oldValue, string newValue ) : string
source string
oldValue string
newValue string
Résultat string

Replace() public static méthode

public static Replace ( string source, string oldValue, string newValue, bool onlyFirstMatch ) : string
source string
oldValue string
newValue string
onlyFirstMatch bool
Résultat string

ReplaceFormat() public static méthode

Preforms a forward scan and replace for a given pattern. Replaces all finds and preforms a case sensitive search
public static ReplaceFormat ( string source, string oldValue, string formatString ) : string
source string Text to search
oldValue string Pattern to search for
formatString string Replaced Pattern
Résultat string

ReplaceFormat() public static méthode

Preforms a forward scan and replace for a given pattern. Can specify only to match first fine and if the pattern is CaseSensitive
public static ReplaceFormat ( string source, string oldValue, string formatString, bool onlyFirstMatch ) : string
source string Text to search
oldValue string Pattern to search for
formatString string Replaced Pattern
onlyFirstMatch bool Match First Only
Résultat string

UpdateKeyWord() public static méthode

public static UpdateKeyWord ( KeyWord kw ) : void
kw Subtext.Framework.Components.KeyWord
Résultat void