C# Класс GitHub.Extensions.StringExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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