C# Class PeterO.DataUtilities

Contains methods useful for reading and writing strings. It is designed to have no dependencies other than the basic runtime class library.
Afficher le fichier Open project: peteroupc/CBOR Class Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

CodePointAt() public static méthode

public static CodePointAt ( string str, int index ) : int
str string
index int
Résultat int

CodePointAt() public static méthode

public static CodePointAt ( string str, int index, int surrogateBehavior ) : int
str string
index int
surrogateBehavior int
Résultat int

CodePointBefore() public static méthode

public static CodePointBefore ( string str, int index ) : int
str string
index int
Résultat int

CodePointBefore() public static méthode

public static CodePointBefore ( string str, int index, int surrogateBehavior ) : int
str string
index int
surrogateBehavior int
Résultat int

CodePointCompare() public static méthode

public static CodePointCompare ( string strA, string strB ) : int
strA string
strB string
Résultat int

GetUtf8Bytes() public static méthode

public static GetUtf8Bytes ( string str, bool replace ) : byte[]
str string
replace bool
Résultat byte[]

GetUtf8Bytes() public static méthode

public static GetUtf8Bytes ( string str, bool replace, bool lenientLineBreaks ) : byte[]
str string
replace bool
lenientLineBreaks bool
Résultat byte[]

GetUtf8Length() public static méthode

public static GetUtf8Length ( string str, bool replace ) : long
str string
replace bool
Résultat long

GetUtf8String() public static méthode

public static GetUtf8String ( byte bytes, bool replace ) : string
bytes byte
replace bool
Résultat string

GetUtf8String() public static méthode

public static GetUtf8String ( byte bytes, int offset, int bytesCount, bool replace ) : string
bytes byte
offset int
bytesCount int
replace bool
Résultat string

ReadUtf8() public static méthode

public static ReadUtf8 ( Stream stream, int bytesCount, StringBuilder builder, bool replace ) : int
stream Stream
bytesCount int
builder StringBuilder
replace bool
Résultat int

ReadUtf8FromBytes() public static méthode

public static ReadUtf8FromBytes ( byte data, int offset, int bytesCount, StringBuilder builder, bool replace ) : int
data byte
offset int
bytesCount int
builder StringBuilder
replace bool
Résultat int

ReadUtf8ToString() public static méthode

public static ReadUtf8ToString ( Stream stream ) : string
stream Stream
Résultat string

ReadUtf8ToString() public static méthode

public static ReadUtf8ToString ( Stream stream, int bytesCount, bool replace ) : string
stream Stream
bytesCount int
replace bool
Résultat string

ToLowerCaseAscii() public static méthode

public static ToLowerCaseAscii ( string str ) : string
str string
Résultat string

WriteUtf8() public static méthode

public static WriteUtf8 ( string str, Stream stream, bool replace ) : int
str string
stream Stream
replace bool
Résultat int

WriteUtf8() public static méthode

public static WriteUtf8 ( string str, int offset, int length, Stream stream, bool replace ) : int
str string
offset int
length int
stream Stream
replace bool
Résultat int

WriteUtf8() public static méthode

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
Résultat int