C# 클래스 CNCGUI.ScanFormatted

Class that provides functionality of the standard C library sscanf() function.
파일 보기 프로젝트 열기: x893/CNCGUI 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Results List

보호된 프로퍼티들

프로퍼티 타입 설명
_typeParsers TypeParser[]

공개 메소드들

메소드 설명
Parse ( string input, string format ) : int

Parses the input string according to the rules in the format string. Similar to the standard C library's sscanf() function. Parsed fields are placed in the class' Results member.

ScanFormatted ( ) : System

보호된 메소드들

메소드 설명
ParseFormatSpecifier ( TextParser format, FormatSpecifier spec ) : bool

Attempts to parse a field format specifier from the format string.

ParseHexadecimal ( TextParser input, FormatSpecifier spec ) : bool

Parse hexadecimal field

ParseScanSet ( TextParser input, FormatSpecifier spec ) : bool

Parse a scan-set field

비공개 메소드들

메소드 설명
AddSigned ( string token, Modifiers mod, int radix ) : void
AddUnsigned ( string token, Modifiers mod, int radix ) : void
IsValidDigit ( char c, int radix ) : bool
ParseCharacter ( TextParser input, FormatSpecifier spec ) : bool

Parse a character field

ParseDecimal ( TextParser input, FormatSpecifier spec ) : bool

Parse integer field

ParseFloat ( TextParser input, FormatSpecifier spec ) : bool

Parse a floating-point field

ParseOctal ( TextParser input, FormatSpecifier spec ) : bool

Parse an octal field

ParseString ( TextParser input, FormatSpecifier spec ) : bool

Parse a string field

메소드 상세

Parse() 공개 메소드

Parses the input string according to the rules in the format string. Similar to the standard C library's sscanf() function. Parsed fields are placed in the class' Results member.
public Parse ( string input, string format ) : int
input string String to parse
format string Specifies rules for parsing input
리턴 int

ParseFormatSpecifier() 보호된 메소드

Attempts to parse a field format specifier from the format string.
protected ParseFormatSpecifier ( TextParser format, FormatSpecifier spec ) : bool
format TextParser
spec FormatSpecifier
리턴 bool

ParseHexadecimal() 보호된 메소드

Parse hexadecimal field
protected ParseHexadecimal ( TextParser input, FormatSpecifier spec ) : bool
input TextParser
spec FormatSpecifier
리턴 bool

ParseScanSet() 보호된 메소드

Parse a scan-set field
protected ParseScanSet ( TextParser input, FormatSpecifier spec ) : bool
input TextParser
spec FormatSpecifier
리턴 bool

ScanFormatted() 공개 메소드

public ScanFormatted ( ) : System
리턴 System

프로퍼티 상세

Results 공개적으로 프로퍼티

public List Results
리턴 List

_typeParsers 보호되어 있는 프로퍼티

protected TypeParser[] _typeParsers
리턴 TypeParser[]