C# Class TraktPlugin.Extensions.StringExtensions

Afficher le fichier Open project: trakt/Trakt-for-Mediaportal

Méthodes publiques

Méthode Description
IsNumber ( this number ) : bool
RemapHighOrderChars ( this input ) : string
RemoveDiacritics ( this text ) : string
RemoveWhitespace ( this value ) : string
RemoveWhitespaceWith ( this value, string replaceValue ) : string
StripHTML ( this htmlString ) : string
StripYear ( this title, int year ) : string

Strips the title of a year if it exists

SurroundWith ( this text, string ends ) : string
SurroundWithDoubleQuotes ( this text ) : string
ToCountryName ( this twoLetterCode ) : string
ToInt ( this number ) : int
ToLogString ( this text ) : string
ToNullIfEmpty ( this text ) : string
ToNullableInt32 ( this text ) : int?
ToSlug ( this phrase ) : string
Truncate ( this value, int maxChars ) : string

Method Details

IsNumber() public static méthode

public static IsNumber ( this number ) : bool
number this
Résultat bool

RemapHighOrderChars() public static méthode

public static RemapHighOrderChars ( this input ) : string
input this
Résultat string

RemoveDiacritics() public static méthode

public static RemoveDiacritics ( this text ) : string
text this
Résultat string

RemoveWhitespace() public static méthode

public static RemoveWhitespace ( this value ) : string
value this
Résultat string

RemoveWhitespaceWith() public static méthode

public static RemoveWhitespaceWith ( this value, string replaceValue ) : string
value this
replaceValue string
Résultat string

StripHTML() public static méthode

public static StripHTML ( this htmlString ) : string
htmlString this
Résultat string

StripYear() public static méthode

Strips the title of a year if it exists
public static StripYear ( this title, int year ) : string
title this
year int
Résultat string

SurroundWith() public static méthode

public static SurroundWith ( this text, string ends ) : string
text this
ends string
Résultat string

SurroundWithDoubleQuotes() public static méthode

public static SurroundWithDoubleQuotes ( this text ) : string
text this
Résultat string

ToCountryName() public static méthode

public static ToCountryName ( this twoLetterCode ) : string
twoLetterCode this
Résultat string

ToInt() public static méthode

public static ToInt ( this number ) : int
number this
Résultat int

ToLogString() public static méthode

public static ToLogString ( this text ) : string
text this
Résultat string

ToNullIfEmpty() public static méthode

public static ToNullIfEmpty ( this text ) : string
text this
Résultat string

ToNullableInt32() public static méthode

public static ToNullableInt32 ( this text ) : int?
text this
Résultat int?

ToSlug() public static méthode

public static ToSlug ( this phrase ) : string
phrase this
Résultat string

Truncate() public static méthode

public static Truncate ( this value, int maxChars ) : string
value this
maxChars int
Résultat string