C# Class PeterO.Cbor.URIUtility

Datei anzeigen Open project: peteroupc/CBOR

Public Methods

Method Description
escapeURI ( string s, int mode ) : string
hasScheme ( string refValue ) : bool
hasSchemeForURI ( string refValue ) : bool
isValidCurieReference ( string s, int offset, int length ) : bool
isValidIRI ( string s ) : bool
relativeResolve ( string refValue, string baseURI ) : string
relativeResolve ( string refValue, string baseURI, ParseMode parseMode ) : string
splitIRI ( string s ) : int[]
splitIRI ( string s, ParseMode parseMode ) : int[]
splitIRI ( string s, int offset, int length, ParseMode parseMode ) : int[]

Private Methods

Method Description
appendAuthority ( StringBuilder builder, string refValue, int segments ) : void
appendFragment ( StringBuilder builder, string refValue, int segments ) : void
appendNormalizedPath ( StringBuilder builder, string refValue, int segments ) : void
appendPath ( StringBuilder builder, string refValue, int segments ) : void
appendQuery ( StringBuilder builder, string refValue, int segments ) : void
appendScheme ( StringBuilder builder, string refValue, int segments ) : void
isHexChar ( char c ) : bool
isIRegNameChar ( int c ) : bool
isIUserInfoChar ( int c ) : bool
isIfragmentChar ( int c ) : bool
isIpchar ( int c ) : bool
isIqueryChar ( int c ) : bool
normalizePath ( string path ) : string
parseDecOctet ( string s, int index, int endOffset, int c, int delim ) : int
parseIPLiteral ( string s, int offset, int endOffset ) : int
pathParent ( string refValue, int startIndex, int endIndex ) : string
percentEncode ( StringBuilder buffer, int b ) : void
percentEncodeUtf8 ( StringBuilder buffer, int cp ) : void

Method Details

escapeURI() public static method

public static escapeURI ( string s, int mode ) : string
s string
mode int
return string

hasScheme() public static method

public static hasScheme ( string refValue ) : bool
refValue string
return bool

hasSchemeForURI() public static method

public static hasSchemeForURI ( string refValue ) : bool
refValue string
return bool

isValidCurieReference() public static method

public static isValidCurieReference ( string s, int offset, int length ) : bool
s string
offset int
length int
return bool

isValidIRI() public static method

public static isValidIRI ( string s ) : bool
s string
return bool

relativeResolve() public static method

public static relativeResolve ( string refValue, string baseURI ) : string
refValue string
baseURI string
return string

relativeResolve() public static method

public static relativeResolve ( string refValue, string baseURI, ParseMode parseMode ) : string
refValue string
baseURI string
parseMode ParseMode
return string

splitIRI() public static method

public static splitIRI ( string s ) : int[]
s string
return int[]

splitIRI() public static method

public static splitIRI ( string s, ParseMode parseMode ) : int[]
s string
parseMode ParseMode
return int[]

splitIRI() public static method

public static splitIRI ( string s, int offset, int length, ParseMode parseMode ) : int[]
s string
offset int
length int
parseMode ParseMode
return int[]