C# 클래스 Gu.Wpf.PropertyGrid.FormatString

Optimized this a lot to avoid caching of results.
파일 보기 프로젝트 열기: JohanLarsson/Gu.Wpf.PropertyGrid 1 사용 예제들

공개 메소드들

메소드 설명
IsFormatString ( string format ) : bool

Checks if format has argument placeholders like 'Value: {0}'

IsValidFormatString ( string format, int numberOfArguments ) : bool

Check if format is a valid format string for numberOfArguments

비공개 메소드들

메소드 설명
IsValidFormat ( string format, int &indexCount, bool &anyItemHasFormat ) : bool

Check a format string for errors and other properties. Does not throw nor allocate no need to cache the result as it is about as fast as a dictionary lookup for common strings.

Slice ( this text, int start, int end ) : string
TryParseFormatSuffix ( string text, int &pos, bool &itemHasFormat ) : bool
TryParseFormatSuffix ( string text, int &pos, string &result ) : bool
TryParseItemFormat ( string text, int &pos, int &index, bool &itemHasFormat ) : bool
TryParseItemFormat ( string text, int &pos, int &index, string &format ) : bool
TryParseUnsignedInt ( string text, int &pos, int &result ) : bool
TrySkipEscaped ( string text, char c, int &pos ) : bool
TrySkipTo ( string text, char c1, char c2, int &pos ) : bool
TrySkipTo ( string text, char c, int &pos ) : bool

메소드 상세

IsFormatString() 공개 정적인 메소드

Checks if format has argument placeholders like 'Value: {0}'
public static IsFormatString ( string format ) : bool
format string A format string.
리턴 bool

IsValidFormatString() 공개 정적인 메소드

Check if format is a valid format string for numberOfArguments
public static IsValidFormatString ( string format, int numberOfArguments ) : bool
format string The format string.
numberOfArguments int The number of format arguments.
리턴 bool