C# Class TeamCitySiteValidator.Slugger

Show file Open project: nhsevidence/teamcitysitevalidator

Public Methods

Method Description
For ( string toSlug ) : string
For ( string toSlug, IEnumerable slugs ) : string

Private Methods

Method Description
ConcatSpaces ( string toSlug ) : string
CullEntities ( string toSlug ) : string
EnsureSlugUnique ( string newSlug, IEnumerable slugs ) : string
IsEntity ( char ch ) : bool

Method Details

For() public static method

public static For ( string toSlug ) : string
toSlug string
return string

For() public static method

public static For ( string toSlug, IEnumerable slugs ) : string
toSlug string
slugs IEnumerable
return string