C# 클래스 SharpOS.Kernel.Foundation.Convert

파일 보기 프로젝트 열기: sharpos/SharpOS

공개 메소드들

메소드 설명
ToAscii ( char value ) : byte

Converts character to ascii representation. If unicode character is outside the range of an Ascii character then Convert.NonAsciiCharacter is returned.

ToAscii ( char value ) : byte[]

Converts the array of characters to ascii representation. If unicode character is outside the range of an Ascii character then Convert.NonAsciiCharacter is returned in its place.

ToAscii ( string value ) : byte[]

Converts string to its ascii representation. If unicode character is outside the range of an Ascii character then Convert.NonAsciiCharacter is returned in its place.

ToByteString ( string str, byte buffer, int bufferLen, int offset ) : int
ToCString8 ( char value ) : CString8*

Converts character to an ascii c like string representation. If unicode character is outside the range of an Ascii character then Convert.NonAsciiCharacter is returned.

ToCString8 ( string value ) : CString8*

Converts string to its ascii representation terminating with null. If unicode character is outside the range of an Ascii character then Convert.NonAsciiCharacter is returned in its place.

ToInt32 ( CString8 str ) : int
ToInt32 ( CString8 str, int offset, int length ) : int
ToInt32 ( PString8 str ) : int
ToInt32 ( PString8 str, int offset, int length ) : int
ToInt32 ( byte buffer, int offset, int length, int capacity ) : int
ToString ( int value, bool hex ) : CString8*
ToString ( long value, bool hex ) : CString8*
ToString ( int value, bool hex, byte buffer, int bufferLen, int offset ) : int
ToString ( long value, bool hex, byte buffer, int bufferLen, int offset ) : int
ToString ( uint value, bool hex, byte buffer, int bufferLen, int offset ) : int
ToString ( CString8 cstring ) : string
ToString ( char val ) : string
ToString ( char val, int startIndex, int length ) : string
__Test1 ( ) : void

Runs tests on the int to string conversions.

__Test2 ( ) : void

Runs tests on the long to string conversions.

__Test3 ( ) : void

비공개 메소드들

메소드 설명
ToString ( int value, bool hex, bool signed, byte buffer, int bufferLen, int offset ) : int
__RunTests ( ) : void
__StringComp ( CString8 str1, CString8 str2 ) : bool

메소드 상세

ToAscii() 공개 정적인 메소드

Converts character to ascii representation. If unicode character is outside the range of an Ascii character then Convert.NonAsciiCharacter is returned.
public static ToAscii ( char value ) : byte
value char Character to be converted
리턴 byte

ToAscii() 공개 정적인 메소드

Converts the array of characters to ascii representation. If unicode character is outside the range of an Ascii character then Convert.NonAsciiCharacter is returned in its place.
public static ToAscii ( char value ) : byte[]
value char Array of Characters to Converted ///
리턴 byte[]

ToAscii() 공개 정적인 메소드

Converts string to its ascii representation. If unicode character is outside the range of an Ascii character then Convert.NonAsciiCharacter is returned in its place.
public static ToAscii ( string value ) : byte[]
value string string to be converted
리턴 byte[]

ToByteString() 공개 정적인 메소드

public static ToByteString ( string str, byte buffer, int bufferLen, int offset ) : int
str string
buffer byte
bufferLen int
offset int
리턴 int

ToCString8() 공개 정적인 메소드

Converts character to an ascii c like string representation. If unicode character is outside the range of an Ascii character then Convert.NonAsciiCharacter is returned.
public static ToCString8 ( char value ) : CString8*
value char char to be converted
리턴 CString8*

ToCString8() 공개 정적인 메소드

Converts string to its ascii representation terminating with null. If unicode character is outside the range of an Ascii character then Convert.NonAsciiCharacter is returned in its place.
public static ToCString8 ( string value ) : CString8*
value string
리턴 CString8*

ToInt32() 공개 정적인 메소드

public static ToInt32 ( CString8 str ) : int
str CString8
리턴 int

ToInt32() 공개 정적인 메소드

public static ToInt32 ( CString8 str, int offset, int length ) : int
str CString8
offset int
length int
리턴 int

ToInt32() 공개 정적인 메소드

public static ToInt32 ( PString8 str ) : int
str PString8
리턴 int

ToInt32() 공개 정적인 메소드

public static ToInt32 ( PString8 str, int offset, int length ) : int
str PString8
offset int
length int
리턴 int

ToInt32() 공개 정적인 메소드

public static ToInt32 ( byte buffer, int offset, int length, int capacity ) : int
buffer byte
offset int
length int
capacity int
리턴 int

ToString() 공개 정적인 메소드

public static ToString ( int value, bool hex ) : CString8*
value int
hex bool
리턴 CString8*

ToString() 공개 정적인 메소드

public static ToString ( long value, bool hex ) : CString8*
value long
hex bool
리턴 CString8*

ToString() 공개 정적인 메소드

public static ToString ( int value, bool hex, byte buffer, int bufferLen, int offset ) : int
value int
hex bool
buffer byte
bufferLen int
offset int
리턴 int

ToString() 공개 정적인 메소드

public static ToString ( long value, bool hex, byte buffer, int bufferLen, int offset ) : int
value long
hex bool
buffer byte
bufferLen int
offset int
리턴 int

ToString() 공개 정적인 메소드

public static ToString ( uint value, bool hex, byte buffer, int bufferLen, int offset ) : int
value uint
hex bool
buffer byte
bufferLen int
offset int
리턴 int

ToString() 정적인 공개 메소드

static public ToString ( CString8 cstring ) : string
cstring CString8
리턴 string

ToString() 정적인 공개 메소드

static public ToString ( char val ) : string
val char
리턴 string

ToString() 정적인 공개 메소드

static public ToString ( char val, int startIndex, int length ) : string
val char
startIndex int
length int
리턴 string

__Test1() 공개 정적인 메소드

Runs tests on the int to string conversions.
public static __Test1 ( ) : void
리턴 void

__Test2() 공개 정적인 메소드

Runs tests on the long to string conversions.
public static __Test2 ( ) : void
리턴 void

__Test3() 공개 정적인 메소드

public static __Test3 ( ) : void
리턴 void