C# 클래스 LumiSoft.Net.TextUtils

This class provides usefull text methods.
파일 보기 프로젝트 열기: jeske/StepsDB-alpha 1 사용 예제들

공개 메소드들

메소드 설명
QuoteString ( string text ) : string

Quotes specified string. Note: Quotes inside text will be escaped to \".

QuotedIndexOf ( string text, char indexChar ) : int

Gets first index of specified char. The specified char in quoted string is skipped. Returns -1 if specified char doesn't exist.

RemoveQuotes ( string text ) : string

Removes start and end quote from string, if its quouted string. For example: "text" will be text.

SplitQuotedString ( string text, char splitChar ) : string[]

Splits string into string arrays. This split method won't split qouted strings, but only text outside of qouted string. For example: '"text1, text2",text3' will be 2 parts: "text1, text2" and text3.

SplitString ( string text, char splitChar ) : string[]

Splits string into string arrays.

메소드 상세

QuoteString() 공개 정적인 메소드

Quotes specified string. Note: Quotes inside text will be escaped to \".
public static QuoteString ( string text ) : string
text string String to quote.
리턴 string

QuotedIndexOf() 공개 정적인 메소드

Gets first index of specified char. The specified char in quoted string is skipped. Returns -1 if specified char doesn't exist.
public static QuotedIndexOf ( string text, char indexChar ) : int
text string Text in what to check.
indexChar char Char what index to get.
리턴 int

RemoveQuotes() 공개 정적인 메소드

Removes start and end quote from string, if its quouted string. For example: "text" will be text.
public static RemoveQuotes ( string text ) : string
text string Text from where to remove quotes.
리턴 string

SplitQuotedString() 공개 정적인 메소드

Splits string into string arrays. This split method won't split qouted strings, but only text outside of qouted string. For example: '"text1, text2",text3' will be 2 parts: "text1, text2" and text3.
public static SplitQuotedString ( string text, char splitChar ) : string[]
text string Text to split.
splitChar char Char that splits text.
리턴 string[]

SplitString() 공개 정적인 메소드

Splits string into string arrays.
public static SplitString ( string text, char splitChar ) : string[]
text string Text to split.
splitChar char Char Char that splits text.
리턴 string[]