C# Class Commencement.Controllers.Helpers.StringExtension

Afficher le fichier Open project: ucdavis/Commencement

Méthodes publiques

Méthode Description
IndexOfAll ( this source, string searchTerm ) : IEnumerable

Returns the index of all occurances of a specific string

Code taken from: http://www.dijksterhuis.org/manipulating-strings-in-csharp-finding-all-occurrences-of-a-string-within-another-string/

IsNullOrEmpty ( this source, bool checkForSpacesOnly ) : bool

Determines whether [is null or empty] [the specified source].

UpperFirstLetter ( this source, UpperFirstLetterOptions options ) : string

Method Details

IndexOfAll() public static méthode

Returns the index of all occurances of a specific string
Code taken from: http://www.dijksterhuis.org/manipulating-strings-in-csharp-finding-all-occurrences-of-a-string-within-another-string/
public static IndexOfAll ( this source, string searchTerm ) : IEnumerable
source this
searchTerm string
Résultat IEnumerable

IsNullOrEmpty() public static méthode

Determines whether [is null or empty] [the specified source].
public static IsNullOrEmpty ( this source, bool checkForSpacesOnly ) : bool
source this The source.
checkForSpacesOnly bool if set to true [check for spaces only].
Résultat bool

UpperFirstLetter() public static méthode

public static UpperFirstLetter ( this source, UpperFirstLetterOptions options ) : string
source this
options UpperFirstLetterOptions
Résultat string