C# Class VsTeXProject.VisualStudio.Project.TokenProcessor

Show file Open project: mimura1133/vstex

Public Methods

Method Description
AddDelete ( string tokenToDelete ) : void

Add a deletion entry

AddReplace ( string token, string replacement ) : void

Add a replacement type entry

DeleteTokens ( string &buffer, DeleteToken tokenToDelete ) : void

Deletes the token from the buffer

ReplaceBetweenTokens ( string &buffer, ReplaceBetweenPairToken rpBetweenToken ) : void

Replaces the token from the buffer between the provided tokens

ReplaceTokens ( string &buffer, ReplacePairToken tokenToReplace ) : void

Replaces the tokens in a buffer with the replacement string

Reset ( ) : void

Reset list of TokenReplacer entries

TokenProcessor ( ) : System

Constructor

Private Methods

Method Description
AddReplaceBetween ( string tokenid, string tokenStart, string tokenEnd, string replacement ) : void
GetFileNamespace ( string fileFullPath, ProjectNode node ) : string
GuidToForm1 ( System.Guid value ) : string
IsValidIdentifierChar ( char c ) : bool
IsValidIdentifierStartChar ( char c ) : bool
UntokenFile ( string source, string destination ) : void

Method Details

AddDelete() public method

Add a deletion entry
public AddDelete ( string tokenToDelete ) : void
tokenToDelete string Token to delete
return void

AddReplace() public method

Add a replacement type entry
public AddReplace ( string token, string replacement ) : void
token string token to replace
replacement string replacement string
return void

DeleteTokens() public method

Deletes the token from the buffer
public DeleteTokens ( string &buffer, DeleteToken tokenToDelete ) : void
buffer string Buffer to update
tokenToDelete DeleteToken token to delete
return void

ReplaceBetweenTokens() public method

Replaces the token from the buffer between the provided tokens
public ReplaceBetweenTokens ( string &buffer, ReplaceBetweenPairToken rpBetweenToken ) : void
buffer string Buffer to update
rpBetweenToken ReplaceBetweenPairToken replacement token
return void

ReplaceTokens() public method

Replaces the tokens in a buffer with the replacement string
public ReplaceTokens ( string &buffer, ReplacePairToken tokenToReplace ) : void
buffer string Buffer to update
tokenToReplace ReplacePairToken replacement data
return void

Reset() public method

Reset list of TokenReplacer entries
public Reset ( ) : void
return void

TokenProcessor() public method

Constructor
public TokenProcessor ( ) : System
return System