C# Class Commencement.Controllers.Helpers.StringExtension

Show file Open project: ucdavis/Commencement

Public Methods

Method 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 method

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
return IEnumerable

IsNullOrEmpty() public static method

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].
return bool

UpperFirstLetter() public static method

public static UpperFirstLetter ( this source, UpperFirstLetterOptions options ) : string
source this
options UpperFirstLetterOptions
return string