C# 클래스 UtilityExtensions.Util

파일 보기 프로젝트 열기: bvcms/bvcms 1 사용 예제들

공개 메소드들

메소드 설명
AppendNewLine ( this sb, string s ) : void
AppendNext ( this sb, string sep, string s ) : void
AppendSpace ( this sb, string s ) : void
Contains ( this s, string c, bool ignoreCase ) : bool
Decode64 ( this s ) : string
DefaultTo ( this s, string defaultstr ) : string
Encode64 ( this s ) : string
GetAttr ( this e, string n, string def = null ) : string
GetChars ( this s ) : string
GetCsvToken ( this s, int n = 1, int ntokens = 1000, string sep = "," ) : string
GetDigits ( this zip, int maxlen = 99 ) : string
Last ( this source, int stringLength ) : string

Given a source string, return the last stringLength characters from the string.

MaxString ( this s, int length ) : string
NameSplit ( string name, string &first, string &last ) : void
NoLeadZeros ( this s ) : string
RandomPassword ( int length ) : string
RemoveGrammarly ( this s ) : string
Replace ( this str, string oldValue, string newValue, bool ignoreCase = false ) : string
SpaceCamelCase ( this name ) : string
SplitLines ( this source, bool noblanks = false ) : string[]
SplitStr ( this s, string delimiter ) : string[]
SplitStr ( this s, string delimiter, int nitems ) : string[]
SplitUpperCase ( this source ) : string[]
SplitUpperCaseToString ( this source ) : string
Truncate ( this source, int length ) : string
URLCombine ( string baseUrl, string relativeUrl ) : string
trim ( this source ) : string

메소드 상세

AppendNewLine() 공개 정적인 메소드

public static AppendNewLine ( this sb, string s ) : void
sb this
s string
리턴 void

AppendNext() 공개 정적인 메소드

public static AppendNext ( this sb, string sep, string s ) : void
sb this
sep string
s string
리턴 void

AppendSpace() 공개 정적인 메소드

public static AppendSpace ( this sb, string s ) : void
sb this
s string
리턴 void

Contains() 공개 정적인 메소드

public static Contains ( this s, string c, bool ignoreCase ) : bool
s this
c string
ignoreCase bool
리턴 bool

Decode64() 공개 정적인 메소드

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

DefaultTo() 공개 정적인 메소드

public static DefaultTo ( this s, string defaultstr ) : string
s this
defaultstr string
리턴 string

Encode64() 공개 정적인 메소드

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

GetAttr() 공개 정적인 메소드

public static GetAttr ( this e, string n, string def = null ) : string
e this
n string
def string
리턴 string

GetChars() 공개 정적인 메소드

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

GetCsvToken() 공개 정적인 메소드

public static GetCsvToken ( this s, int n = 1, int ntokens = 1000, string sep = "," ) : string
s this
n int
ntokens int
sep string
리턴 string

GetDigits() 공개 정적인 메소드

public static GetDigits ( this zip, int maxlen = 99 ) : string
zip this
maxlen int
리턴 string

Last() 공개 정적인 메소드

Given a source string, return the last stringLength characters from the string.
public static Last ( this source, int stringLength ) : string
source this
stringLength int
리턴 string

MaxString() 공개 정적인 메소드

public static MaxString ( this s, int length ) : string
s this
length int
리턴 string

NameSplit() 공개 정적인 메소드

public static NameSplit ( string name, string &first, string &last ) : void
name string
first string
last string
리턴 void

NoLeadZeros() 공개 정적인 메소드

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

RandomPassword() 공개 정적인 메소드

public static RandomPassword ( int length ) : string
length int
리턴 string

RemoveGrammarly() 공개 정적인 메소드

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

Replace() 공개 정적인 메소드

public static Replace ( this str, string oldValue, string newValue, bool ignoreCase = false ) : string
str this
oldValue string
newValue string
ignoreCase bool
리턴 string

SpaceCamelCase() 공개 정적인 메소드

public static SpaceCamelCase ( this name ) : string
name this
리턴 string

SplitLines() 공개 정적인 메소드

public static SplitLines ( this source, bool noblanks = false ) : string[]
source this
noblanks bool
리턴 string[]

SplitStr() 공개 정적인 메소드

public static SplitStr ( this s, string delimiter ) : string[]
s this
delimiter string
리턴 string[]

SplitStr() 공개 정적인 메소드

public static SplitStr ( this s, string delimiter, int nitems ) : string[]
s this
delimiter string
nitems int
리턴 string[]

SplitUpperCase() 공개 정적인 메소드

public static SplitUpperCase ( this source ) : string[]
source this
리턴 string[]

SplitUpperCaseToString() 공개 정적인 메소드

public static SplitUpperCaseToString ( this source ) : string
source this
리턴 string

Truncate() 공개 정적인 메소드

public static Truncate ( this source, int length ) : string
source this
length int
리턴 string

URLCombine() 공개 정적인 메소드

public static URLCombine ( string baseUrl, string relativeUrl ) : string
baseUrl string
relativeUrl string
리턴 string

trim() 공개 정적인 메소드

public static trim ( this source ) : string
source this
리턴 string