C# Class MoreInternals.Model.Selector

Inheritance: IPosition, IWritable
Show file Open project: kevin-montrose/More Class Usage Examples

Public Methods

Method Description
Equals ( object obj ) : bool
GetHashCode ( ) : int
Parse ( string raw, int start, int stop, string filePath ) : Selector
Write ( ICssWriter output ) : void
Write ( TextWriter output ) : void

Private Methods

Method Description
ApplyEscapeMap ( Selector sel, string>.Dictionary map ) : Selector

Reverses the transformation applied by BuildEscapeMap on a selector.

ApplyEscapeMap ( string str, string>.Dictionary map ) : string
BuildEscapeMap ( string &rawSelector ) : string>.Dictionary

Determines which string sequences in a selector are escape sequences, and replaces them with characters that have no meaning in CSS (and don't appear elsewhere in the selector). Returns a dictionary[char, string] that can be used to reverse this transformation.

NextSpecialChar ( IEnumerable alreadyUsed, IEnumerable cantBeIn ) : char
ParseRawChildSelector ( string parts, int start, int stop, string filePath ) : Selector
ParseRawCommaDelimittedSelector ( string parts, int start, int stop, string filePath ) : Selector
ParseRawCompoundSelector ( string raw, int start, int stop, string filePath ) : Selector
ParseRawSelector ( string raw, int start, int stop, string filePath ) : Selector
ParseRawSiblingSelector ( string parts, int start, int stop, string filePath ) : Selector
_NextIndexOf ( string raw, int start ) : int

Method Details

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

Parse() public static method

public static Parse ( string raw, int start, int stop, string filePath ) : Selector
raw string
start int
stop int
filePath string
return Selector

Write() public method

public Write ( ICssWriter output ) : void
output ICssWriter
return void

Write() public method

public Write ( TextWriter output ) : void
output System.IO.TextWriter
return void