C# Class PicklesDoc.Pickles.Extensions.StringExtensions

Afficher le fichier Open project: picklesdoc/pickles

Méthodes publiques

Méthode Description
ComparisonNormalize ( this text ) : string

Takes a string and lowercases it, removing newline characters and replacing tabs with spaces

ExpandWikiWord ( this word ) : string
ToSlug ( this text ) : string

Takes a string and returns a url-friendly version of the string (slug) with all special characters and extra spaces stripped out, with words seperated by dashes.

Method Details

ComparisonNormalize() public static méthode

Takes a string and lowercases it, removing newline characters and replacing tabs with spaces
public static ComparisonNormalize ( this text ) : string
text this The string that will be normalized for comparison.
Résultat string

ExpandWikiWord() public static méthode

public static ExpandWikiWord ( this word ) : string
word this
Résultat string

ToSlug() public static méthode

Takes a string and returns a url-friendly version of the string (slug) with all special characters and extra spaces stripped out, with words seperated by dashes.
public static ToSlug ( this text ) : string
text this The string that will be used to create the slug.
Résultat string