C# 클래스 PeterO.DataUtilities

Contains methods useful for reading and writing strings. It is designed to have no dependencies other than the basic runtime class library.
파일 보기 프로젝트 열기: peteroupc/CBOR 1 사용 예제들

공개 메소드들

메소드 설명
CodePointAt ( string str, int index ) : int
CodePointAt ( string str, int index, int surrogateBehavior ) : int
CodePointBefore ( string str, int index ) : int
CodePointBefore ( string str, int index, int surrogateBehavior ) : int
CodePointCompare ( string strA, string strB ) : int
GetUtf8Bytes ( string str, bool replace ) : byte[]
GetUtf8Bytes ( string str, bool replace, bool lenientLineBreaks ) : byte[]
GetUtf8Length ( string str, bool replace ) : long
GetUtf8String ( byte bytes, bool replace ) : string
GetUtf8String ( byte bytes, int offset, int bytesCount, bool replace ) : string
ReadUtf8 ( Stream stream, int bytesCount, StringBuilder builder, bool replace ) : int
ReadUtf8FromBytes ( byte data, int offset, int bytesCount, StringBuilder builder, bool replace ) : int
ReadUtf8ToString ( Stream stream ) : string
ReadUtf8ToString ( Stream stream, int bytesCount, bool replace ) : string
ToLowerCaseAscii ( string str ) : string
WriteUtf8 ( string str, Stream stream, bool replace ) : int
WriteUtf8 ( string str, int offset, int length, Stream stream, bool replace ) : int
WriteUtf8 ( string str, int offset, int length, Stream stream, bool replace, bool lenientLineBreaks ) : int

메소드 상세

CodePointAt() 공개 정적인 메소드

public static CodePointAt ( string str, int index ) : int
str string
index int
리턴 int

CodePointAt() 공개 정적인 메소드

public static CodePointAt ( string str, int index, int surrogateBehavior ) : int
str string
index int
surrogateBehavior int
리턴 int

CodePointBefore() 공개 정적인 메소드

public static CodePointBefore ( string str, int index ) : int
str string
index int
리턴 int

CodePointBefore() 공개 정적인 메소드

public static CodePointBefore ( string str, int index, int surrogateBehavior ) : int
str string
index int
surrogateBehavior int
리턴 int

CodePointCompare() 공개 정적인 메소드

public static CodePointCompare ( string strA, string strB ) : int
strA string
strB string
리턴 int

GetUtf8Bytes() 공개 정적인 메소드

public static GetUtf8Bytes ( string str, bool replace ) : byte[]
str string
replace bool
리턴 byte[]

GetUtf8Bytes() 공개 정적인 메소드

public static GetUtf8Bytes ( string str, bool replace, bool lenientLineBreaks ) : byte[]
str string
replace bool
lenientLineBreaks bool
리턴 byte[]

GetUtf8Length() 공개 정적인 메소드

public static GetUtf8Length ( string str, bool replace ) : long
str string
replace bool
리턴 long

GetUtf8String() 공개 정적인 메소드

public static GetUtf8String ( byte bytes, bool replace ) : string
bytes byte
replace bool
리턴 string

GetUtf8String() 공개 정적인 메소드

public static GetUtf8String ( byte bytes, int offset, int bytesCount, bool replace ) : string
bytes byte
offset int
bytesCount int
replace bool
리턴 string

ReadUtf8() 공개 정적인 메소드

public static ReadUtf8 ( Stream stream, int bytesCount, StringBuilder builder, bool replace ) : int
stream Stream
bytesCount int
builder StringBuilder
replace bool
리턴 int

ReadUtf8FromBytes() 공개 정적인 메소드

public static ReadUtf8FromBytes ( byte data, int offset, int bytesCount, StringBuilder builder, bool replace ) : int
data byte
offset int
bytesCount int
builder StringBuilder
replace bool
리턴 int

ReadUtf8ToString() 공개 정적인 메소드

public static ReadUtf8ToString ( Stream stream ) : string
stream Stream
리턴 string

ReadUtf8ToString() 공개 정적인 메소드

public static ReadUtf8ToString ( Stream stream, int bytesCount, bool replace ) : string
stream Stream
bytesCount int
replace bool
리턴 string

ToLowerCaseAscii() 공개 정적인 메소드

public static ToLowerCaseAscii ( string str ) : string
str string
리턴 string

WriteUtf8() 공개 정적인 메소드

public static WriteUtf8 ( string str, Stream stream, bool replace ) : int
str string
stream Stream
replace bool
리턴 int

WriteUtf8() 공개 정적인 메소드

public static WriteUtf8 ( string str, int offset, int length, Stream stream, bool replace ) : int
str string
offset int
length int
stream Stream
replace bool
리턴 int

WriteUtf8() 공개 정적인 메소드

public static WriteUtf8 ( string str, int offset, int length, Stream stream, bool replace, bool lenientLineBreaks ) : int
str string
offset int
length int
stream Stream
replace bool
lenientLineBreaks bool
리턴 int