C# 클래스 FubuCore.StringExtensions

파일 보기 프로젝트 열기: jmarnold/fubumvc-testrunner

공개 메소드들

메소드 설명
AppendPath ( this path ) : string

Equivalent of FileSystem.Combine( [Union of path, parts] )

Capitalize ( this stringValue ) : string

Converts the string to Title Case

CombineToPath ( this path, string root ) : string

If the path is rooted, just returns the path. Otherwise, combines root & path

ConvertCRLFToBreaks ( this plainText ) : string

Formats a multi-line string for display on the web

DirectoryPath ( this path ) : string
EqualsIgnoreCase ( this thisString, string otherString ) : bool

Performs a case-insensitive comparison of strings

HtmlAttributeEncode ( this unEncoded ) : string
HtmlDecode ( this encoded ) : string
HtmlEncode ( this unEncoded ) : string
IfNotNull ( this target, Action continuation ) : void
IsEmpty ( this stringValue ) : bool
IsNotEmpty ( this stringValue ) : bool
IsNotEmpty ( this stringValue, Action action ) : void
IsValidNumber ( this number ) : bool
IsValidNumber ( this number, CultureInfo culture ) : bool
ParentDirectory ( this path ) : string

Retrieve the parent directory of a directory or file Shortcut to Path.GetDirectoryName(path)

PathRelativeTo ( this path, string root ) : string
ReadLines ( this text ) : IEnumerable

Reads text and returns an enumerable of strings for each line

ReadLines ( this text, Action callback ) : void

Reads text and calls back for each line of text

ToBool ( this stringValue ) : bool
ToDateTime ( this dateTimeValue ) : System.DateTime

Returns a DateTime value parsed from the dateTimeValue parameter.

ToDelimitedArray ( this content ) : string[]
ToDelimitedArray ( this content, char delimiter ) : string[]
ToFormat ( this stringFormat ) : string
ToFullPath ( this path ) : string
ToGmtFormattedDate ( this date ) : string
UrlDecode ( this encoded ) : string
UrlEncode ( this unEncoded ) : string
getPathParts ( this path ) : IList

메소드 상세

AppendPath() 공개 정적인 메소드

Equivalent of FileSystem.Combine( [Union of path, parts] )
public static AppendPath ( this path ) : string
path this
리턴 string

Capitalize() 공개 정적인 메소드

Converts the string to Title Case
public static Capitalize ( this stringValue ) : string
stringValue this
리턴 string

CombineToPath() 공개 정적인 메소드

If the path is rooted, just returns the path. Otherwise, combines root & path
public static CombineToPath ( this path, string root ) : string
path this
root string
리턴 string

ConvertCRLFToBreaks() 공개 정적인 메소드

Formats a multi-line string for display on the web
public static ConvertCRLFToBreaks ( this plainText ) : string
plainText this
리턴 string

DirectoryPath() 공개 정적인 메소드

public static DirectoryPath ( this path ) : string
path this
리턴 string

EqualsIgnoreCase() 공개 정적인 메소드

Performs a case-insensitive comparison of strings
public static EqualsIgnoreCase ( this thisString, string otherString ) : bool
thisString this
otherString string
리턴 bool

HtmlAttributeEncode() 공개 정적인 메소드

public static HtmlAttributeEncode ( this unEncoded ) : string
unEncoded this
리턴 string

HtmlDecode() 공개 정적인 메소드

public static HtmlDecode ( this encoded ) : string
encoded this
리턴 string

HtmlEncode() 공개 정적인 메소드

public static HtmlEncode ( this unEncoded ) : string
unEncoded this
리턴 string

IfNotNull() 공개 정적인 메소드

public static IfNotNull ( this target, Action continuation ) : void
target this
continuation Action
리턴 void

IsEmpty() 공개 정적인 메소드

public static IsEmpty ( this stringValue ) : bool
stringValue this
리턴 bool

IsNotEmpty() 공개 정적인 메소드

public static IsNotEmpty ( this stringValue ) : bool
stringValue this
리턴 bool

IsNotEmpty() 공개 정적인 메소드

public static IsNotEmpty ( this stringValue, Action action ) : void
stringValue this
action Action
리턴 void

IsValidNumber() 공개 정적인 메소드

public static IsValidNumber ( this number ) : bool
number this
리턴 bool

IsValidNumber() 공개 정적인 메소드

public static IsValidNumber ( this number, CultureInfo culture ) : bool
number this
culture System.Globalization.CultureInfo
리턴 bool

ParentDirectory() 공개 정적인 메소드

Retrieve the parent directory of a directory or file Shortcut to Path.GetDirectoryName(path)
public static ParentDirectory ( this path ) : string
path this
리턴 string

PathRelativeTo() 공개 정적인 메소드

public static PathRelativeTo ( this path, string root ) : string
path this
root string
리턴 string

ReadLines() 공개 정적인 메소드

Reads text and returns an enumerable of strings for each line
public static ReadLines ( this text ) : IEnumerable
text this
리턴 IEnumerable

ReadLines() 공개 정적인 메소드

Reads text and calls back for each line of text
public static ReadLines ( this text, Action callback ) : void
text this
callback Action
리턴 void

ToBool() 공개 정적인 메소드

public static ToBool ( this stringValue ) : bool
stringValue this
리턴 bool

ToDateTime() 공개 정적인 메소드

Returns a DateTime value parsed from the dateTimeValue parameter.
public static ToDateTime ( this dateTimeValue ) : System.DateTime
dateTimeValue this A valid, parseable DateTime value
리턴 System.DateTime

ToDelimitedArray() 공개 정적인 메소드

public static ToDelimitedArray ( this content ) : string[]
content this
리턴 string[]

ToDelimitedArray() 공개 정적인 메소드

public static ToDelimitedArray ( this content, char delimiter ) : string[]
content this
delimiter char
리턴 string[]

ToFormat() 공개 정적인 메소드

public static ToFormat ( this stringFormat ) : string
stringFormat this
리턴 string

ToFullPath() 공개 정적인 메소드

public static ToFullPath ( this path ) : string
path this
리턴 string

ToGmtFormattedDate() 공개 정적인 메소드

public static ToGmtFormattedDate ( this date ) : string
date this
리턴 string

UrlDecode() 공개 정적인 메소드

public static UrlDecode ( this encoded ) : string
encoded this
리턴 string

UrlEncode() 공개 정적인 메소드

public static UrlEncode ( this unEncoded ) : string
unEncoded this
리턴 string

getPathParts() 공개 정적인 메소드

public static getPathParts ( this path ) : IList
path this
리턴 IList