C# Class splitter.Slugger

Afficher le fichier Open project: nhsevidence/ld-bnf

Méthodes publiques

Méthode Description
For ( string toSlug, IEnumerable slugs ) : string
For ( string toSlug, bool unique = true ) : string

Private Methods

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

Method Details

For() public méthode

public For ( string toSlug, IEnumerable slugs ) : string
toSlug string
slugs IEnumerable
Résultat string

For() public méthode

public For ( string toSlug, bool unique = true ) : string
toSlug string
unique bool
Résultat string