C# 클래스 Commencement.Controllers.Helpers.StringExtension

파일 보기 프로젝트 열기: ucdavis/Commencement

공개 메소드들

메소드 설명
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

메소드 상세

IndexOfAll() 공개 정적인 메소드

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
리턴 IEnumerable

IsNullOrEmpty() 공개 정적인 메소드

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].
리턴 bool

UpperFirstLetter() 공개 정적인 메소드

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