C# 클래스 IdleLandsRedux.Common.StringHelper

파일 보기 프로젝트 열기: IdleLands/IdleLandsRedux

공개 메소드들

메소드 설명
Capitalize ( this @string, int offset ) : string
ContainsAny ( this haystack ) : bool

Contains any of the given needles.

GetGenderPronoun ( string gender, string input ) : string

Gets the gender pronoun.

SanitizeString ( string str, bool punctuation = false ) : string

Sanitizes the string.

비공개 메소드들

메소드 설명
ReplaceGenderPronoun ( this builder, string gender, string input ) : StringBuilder

메소드 상세

Capitalize() 공개 정적인 메소드

public static Capitalize ( this @string, int offset ) : string
@string this
offset int
리턴 string

ContainsAny() 공개 정적인 메소드

Contains any of the given needles.
public static ContainsAny ( this haystack ) : bool
haystack this Haystack.
리턴 bool

GetGenderPronoun() 공개 정적인 메소드

Gets the gender pronoun.
public static GetGenderPronoun ( string gender, string input ) : string
gender string Gender. e.g. 'Male' or 'Female'
input string Input. e.g. '%hisher' or 'she'
리턴 string

SanitizeString() 공개 정적인 메소드

Sanitizes the string.
public static SanitizeString ( string str, bool punctuation = false ) : string
str string Input to be sanitized.
punctuation bool If set to true, allows for punctuation. Otherwise it is also sanitized.
리턴 string