C# 클래스 GitHub.Extensions.StringExtensions

파일 보기 프로젝트 열기: github/VisualStudio

공개 메소드들

메소드 설명
Contains ( this s, string expectedSubstring, System.StringComparison comparison ) : bool
ContainsAny ( this s, IEnumerable characters ) : bool
DebugRepresentation ( [ s ) : string
RemoveSurroundingQuotes ( this s ) : string
StartsWith ( [ s, char c ) : bool
ToInt32 ( this s ) : Int32
ToUriSafe ( this url ) : Uri
Wrap ( this text, int maxLength = 72 ) : string

Wrap a string to the specified length.

비공개 메소드들

메소드 설명
EnsureEndsWith ( [ s, char c ) : string
EnsureStartsWith ( [ s, char c ) : string
LeftBeforeLast ( [ s, string search ) : string
NormalizePath ( [ path ) : string
ParseFileName ( [ path ) : string
ParseParentDirectory ( [ path ) : string
RightAfter ( [ s, string search ) : string
RightAfterLast ( this s, string search ) : string
ToNullIfEmpty ( [ s ) : string
TrimEnd ( [ s, string suffix ) : string

메소드 상세

Contains() 공개 정적인 메소드

public static Contains ( this s, string expectedSubstring, System.StringComparison comparison ) : bool
s this
expectedSubstring string
comparison System.StringComparison
리턴 bool

ContainsAny() 공개 정적인 메소드

public static ContainsAny ( this s, IEnumerable characters ) : bool
s this
characters IEnumerable
리턴 bool

DebugRepresentation() 공개 정적인 메소드

public static DebugRepresentation ( [ s ) : string
s [
리턴 string

RemoveSurroundingQuotes() 공개 정적인 메소드

public static RemoveSurroundingQuotes ( this s ) : string
s this
리턴 string

StartsWith() 공개 정적인 메소드

public static StartsWith ( [ s, char c ) : bool
s [
c char
리턴 bool

ToInt32() 공개 정적인 메소드

public static ToInt32 ( this s ) : Int32
s this
리턴 System.Int32

ToUriSafe() 공개 정적인 메소드

public static ToUriSafe ( this url ) : Uri
url this
리턴 System.Uri

Wrap() 공개 정적인 메소드

Wrap a string to the specified length.
public static Wrap ( this text, int maxLength = 72 ) : string
text this The text string to wrap
maxLength int The character length to wrap at
리턴 string