C# Class splitter.Slugger

Mostrar archivo Open project: nhsevidence/ld-bnf

Public Methods

Method Description
For ( string toSlug, IEnumerable slugs ) : string
For ( string toSlug, bool unique = true ) : 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 method

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

For() public method

public For ( string toSlug, bool unique = true ) : string
toSlug string
unique bool
return string