C# 클래스 AcTools.Utils.Helpers.FlexibleParser

파일 보기 프로젝트 열기: gro-ove/actools 1 사용 예제들

공개 메소드들

메소드 설명
ParseDouble ( string s ) : double

Throws an exception if can’t parse!

ParseDouble ( string s, double defaultValue ) : double
ParseInt ( string s ) : int

Throws an exception if can’t parse!

ParseInt ( string s, int defaultValue ) : int
ParseLong ( string s ) : long

Throws an exception if can’t parse!

ParseLong ( string s, long defaultValue ) : long
ParseTime ( string s ) : int

Throws an exception if can’t parse!

ParseTime ( string s, int defaultValue ) : int
TryParseDouble ( [ s, double &value ) : bool
TryParseDouble ( string s ) : double?
TryParseInt ( [ s, int &value ) : bool
TryParseInt ( string s ) : int?
TryParseLong ( string s, long &value ) : bool
TryParseLong ( string s ) : long?
TryParseTime ( [ value, int &totalSeconds ) : bool

Parse value from “12:34” to seconds from “00:00”

TryParseTime ( string s ) : int?

비공개 메소드들

메소드 설명
ReplaceDouble ( [ s, double value ) : string

메소드 상세

ParseDouble() 공개 정적인 메소드

Throws an exception if can’t parse!
public static ParseDouble ( string s ) : double
s string
리턴 double

ParseDouble() 공개 정적인 메소드

public static ParseDouble ( string s, double defaultValue ) : double
s string
defaultValue double
리턴 double

ParseInt() 공개 정적인 메소드

Throws an exception if can’t parse!
public static ParseInt ( string s ) : int
s string
리턴 int

ParseInt() 공개 정적인 메소드

public static ParseInt ( string s, int defaultValue ) : int
s string
defaultValue int
리턴 int

ParseLong() 공개 정적인 메소드

Throws an exception if can’t parse!
public static ParseLong ( string s ) : long
s string
리턴 long

ParseLong() 공개 정적인 메소드

public static ParseLong ( string s, long defaultValue ) : long
s string
defaultValue long
리턴 long

ParseTime() 공개 정적인 메소드

Throws an exception if can’t parse!
public static ParseTime ( string s ) : int
s string
리턴 int

ParseTime() 공개 정적인 메소드

public static ParseTime ( string s, int defaultValue ) : int
s string
defaultValue int
리턴 int

TryParseDouble() 공개 정적인 메소드

public static TryParseDouble ( [ s, double &value ) : bool
s [
value double
리턴 bool

TryParseDouble() 공개 정적인 메소드

public static TryParseDouble ( string s ) : double?
s string
리턴 double?

TryParseInt() 공개 정적인 메소드

public static TryParseInt ( [ s, int &value ) : bool
s [
value int
리턴 bool

TryParseInt() 공개 정적인 메소드

public static TryParseInt ( string s ) : int?
s string
리턴 int?

TryParseLong() 공개 정적인 메소드

public static TryParseLong ( string s, long &value ) : bool
s string
value long
리턴 bool

TryParseLong() 공개 정적인 메소드

public static TryParseLong ( string s ) : long?
s string
리턴 long?

TryParseTime() 공개 정적인 메소드

Parse value from “12:34” to seconds from “00:00”
public static TryParseTime ( [ value, int &totalSeconds ) : bool
value [ Value in “12:34” (or “12:34:56”) format.
totalSeconds int Seconds from “00:00”.
리턴 bool

TryParseTime() 공개 정적인 메소드

public static TryParseTime ( string s ) : int?
s string
리턴 int?