C# Class Platform.Text.TextConversion

Provides useful methods for converting text.
Afficher le fichier Open project: platformdotnet/Platform

Méthodes publiques

Свойство Type Description
Base32Alphabet char[]
Base32AlphabetLowercase char[]
HexValues char[]
HexValuesLowercase char[]
SoundexValues char[]

Méthodes publiques

Méthode Description
FromBase64CharArray ( char array, int offset, int length ) : byte[]
FromBase64String ( string s ) : byte[]
FromEscapedHexString ( string s ) : string

Decodes a string from an escaped hex string (URL encoded).

FromHex ( char c ) : int
FromHexString ( string s ) : byte[]
IsHexChar ( char c ) : bool
IsStandardUrlEscapedChar ( char c ) : bool
IsStandardUrlUnEscapedChar ( char c ) : bool
ToBase32CharArray ( byte input, int offsetIn, int length, char outArray, int offsetOut ) : int
ToBase32String ( byte input ) : string
ToBase32String ( byte input, int offset, int length ) : string
ToBase32String ( int x ) : string
ToBase32String ( long x ) : string
ToBase64CharArray ( byte input, int offsetIn, int length, char outArray, int offsetOut ) : int
ToBase64String ( byte input ) : string
ToBase64String ( byte input, int offset, int length ) : string
ToEscapedHexString ( string s ) : string
ToEscapedHexString ( string s, Predicate shouldEscapeChar ) : string
ToEscapedHexString ( string s, int>.Predicate shouldEscapeChar ) : string
ToEscapedHexString ( string s, string charsToEscape ) : string
ToHexChar ( byte x ) : char
ToHexChar ( int x ) : char
ToHexChar ( int x, bool lowercase ) : char
ToHexChar ( long x ) : char
ToHexChar ( short x ) : char
ToHexString ( byte bytes ) : string
ToHexString ( byte bytes, bool lowercase ) : string
ToHexString ( int value ) : string
ToHexString ( long value ) : string
ToReEscapedHexString ( string s, Predicate shouldEscape ) : string
ToSoundex ( string value ) : string
WriteEscapedHexString ( TextReader reader, TextWriter writer ) : TextWriter
WriteEscapedHexString ( TextReader reader, TextWriter writer, Predicate shouldEscapeChar ) : TextWriter
WriteSoundex ( TextWriter writer, string value ) : void
WriteUnescapedHexString ( StringReader reader, StringWriter writer ) : TextWriter

Private Methods

Méthode Description
ToHexChar ( int x, char hexValues ) : char
ToHexString ( byte bytes, char hexValues ) : string

Method Details

FromBase64CharArray() public static méthode

public static FromBase64CharArray ( char array, int offset, int length ) : byte[]
array char
offset int
length int
Résultat byte[]

FromBase64String() public static méthode

public static FromBase64String ( string s ) : byte[]
s string
Résultat byte[]

FromEscapedHexString() public static méthode

Decodes a string from an escaped hex string (URL encoded).
public static FromEscapedHexString ( string s ) : string
s string The escaped hex encoded string
Résultat string

FromHex() public static méthode

public static FromHex ( char c ) : int
c char
Résultat int

FromHexString() public static méthode

public static FromHexString ( string s ) : byte[]
s string
Résultat byte[]

IsHexChar() public static méthode

public static IsHexChar ( char c ) : bool
c char
Résultat bool

IsStandardUrlEscapedChar() public static méthode

public static IsStandardUrlEscapedChar ( char c ) : bool
c char
Résultat bool

IsStandardUrlUnEscapedChar() public static méthode

public static IsStandardUrlUnEscapedChar ( char c ) : bool
c char
Résultat bool

ToBase32CharArray() public static méthode

public static ToBase32CharArray ( byte input, int offsetIn, int length, char outArray, int offsetOut ) : int
input byte
offsetIn int
length int
outArray char
offsetOut int
Résultat int

ToBase32String() public static méthode

public static ToBase32String ( byte input ) : string
input byte
Résultat string

ToBase32String() public static méthode

public static ToBase32String ( byte input, int offset, int length ) : string
input byte
offset int
length int
Résultat string

ToBase32String() public static méthode

public static ToBase32String ( int x ) : string
x int
Résultat string

ToBase32String() public static méthode

public static ToBase32String ( long x ) : string
x long
Résultat string

ToBase64CharArray() public static méthode

public static ToBase64CharArray ( byte input, int offsetIn, int length, char outArray, int offsetOut ) : int
input byte
offsetIn int
length int
outArray char
offsetOut int
Résultat int

ToBase64String() public static méthode

public static ToBase64String ( byte input ) : string
input byte
Résultat string

ToBase64String() public static méthode

public static ToBase64String ( byte input, int offset, int length ) : string
input byte
offset int
length int
Résultat string

ToEscapedHexString() public static méthode

public static ToEscapedHexString ( string s ) : string
s string
Résultat string

ToEscapedHexString() public static méthode

public static ToEscapedHexString ( string s, Predicate shouldEscapeChar ) : string
s string
shouldEscapeChar Predicate
Résultat string

ToEscapedHexString() public static méthode

public static ToEscapedHexString ( string s, int>.Predicate shouldEscapeChar ) : string
s string
shouldEscapeChar int>.Predicate
Résultat string

ToEscapedHexString() public static méthode

public static ToEscapedHexString ( string s, string charsToEscape ) : string
s string
charsToEscape string
Résultat string

ToHexChar() public static méthode

public static ToHexChar ( byte x ) : char
x byte
Résultat char

ToHexChar() public static méthode

public static ToHexChar ( int x ) : char
x int
Résultat char

ToHexChar() public static méthode

public static ToHexChar ( int x, bool lowercase ) : char
x int
lowercase bool
Résultat char

ToHexChar() public static méthode

public static ToHexChar ( long x ) : char
x long
Résultat char

ToHexChar() public static méthode

public static ToHexChar ( short x ) : char
x short
Résultat char

ToHexString() public static méthode

public static ToHexString ( byte bytes ) : string
bytes byte
Résultat string

ToHexString() public static méthode

public static ToHexString ( byte bytes, bool lowercase ) : string
bytes byte
lowercase bool
Résultat string

ToHexString() public static méthode

public static ToHexString ( int value ) : string
value int
Résultat string

ToHexString() public static méthode

public static ToHexString ( long value ) : string
value long
Résultat string

ToReEscapedHexString() public static méthode

public static ToReEscapedHexString ( string s, Predicate shouldEscape ) : string
s string
shouldEscape Predicate
Résultat string

ToSoundex() public static méthode

public static ToSoundex ( string value ) : string
value string
Résultat string

WriteEscapedHexString() public static méthode

public static WriteEscapedHexString ( TextReader reader, TextWriter writer ) : TextWriter
reader TextReader
writer System.IO.TextWriter
Résultat System.IO.TextWriter

WriteEscapedHexString() public static méthode

public static WriteEscapedHexString ( TextReader reader, TextWriter writer, Predicate shouldEscapeChar ) : TextWriter
reader TextReader
writer System.IO.TextWriter
shouldEscapeChar Predicate
Résultat System.IO.TextWriter

WriteSoundex() public static méthode

public static WriteSoundex ( TextWriter writer, string value ) : void
writer System.IO.TextWriter
value string
Résultat void

WriteUnescapedHexString() public static méthode

public static WriteUnescapedHexString ( StringReader reader, StringWriter writer ) : TextWriter
reader System.IO.StringReader
writer System.IO.StringWriter
Résultat System.IO.TextWriter

Property Details

Base32Alphabet public_oe static_oe property

public static char[] Base32Alphabet
Résultat char[]

Base32AlphabetLowercase public_oe static_oe property

public static char[] Base32AlphabetLowercase
Résultat char[]

HexValues public_oe static_oe property

public static char[] HexValues
Résultat char[]

HexValuesLowercase public_oe static_oe property

public static char[] HexValuesLowercase
Résultat char[]

SoundexValues public_oe static_oe property

public static char[] SoundexValues
Résultat char[]