C# 클래스 DotNetXri.Syntax.IRIUtils

Utility class that provides XRI-IRI-URI transformations
파일 보기 프로젝트 열기: AArnott/dotnetxri

공개 메소드들

메소드 설명
IRItoURI ( string iri ) : string

Transforms the given IRI to URI.

IRItoXRI ( string iri ) : string
URItoIRI ( string uri ) : string

Transform the given URI to IRI according to the rules in RFC3987 section 3.2

XRItoIRI ( string s, bool inXref ) : string

Transforms the given XRI part to IRI-normal form. This method does not parse the given String; it simply converts all '%' to '%25', and if inXref is true, also percent encodes '#', '?' and '/'.

decodeHex ( string s, int index ) : int

Attempts to decode a 3-character percent-encoded sequence to the numeric value.

보호된 메소드들

메소드 설명
isIPrivate ( int cp ) : bool
isUCSChar ( int cp ) : bool
isUCSCharOrIPrivate ( int cp ) : bool
toUTF8PercentEncoded ( int cp ) : string

비공개 메소드들

메소드 설명
countUTF8Sequence ( string inValue, int inIndex, byte u8buf ) : int
getHex ( string s, int index ) : string

Attempt to read a percent encoded sequence from the given string s at index position.

hasBiDiChar ( string s ) : bool
isPercentEncoded ( string s, int index ) : bool

메소드 상세

IRItoURI() 공개 정적인 메소드

Transforms the given IRI to URI.
public static IRItoURI ( string iri ) : string
iri string
리턴 string

IRItoXRI() 공개 정적인 메소드

public static IRItoXRI ( string iri ) : string
iri string
리턴 string

URItoIRI() 공개 정적인 메소드

Transform the given URI to IRI according to the rules in RFC3987 section 3.2
public static URItoIRI ( string uri ) : string
uri string this MUST be a valid URI string. Use the java.net.URI class /// to check before using this method.
리턴 string

XRItoIRI() 공개 정적인 메소드

Transforms the given XRI part to IRI-normal form. This method does not parse the given String; it simply converts all '%' to '%25', and if inXref is true, also percent encodes '#', '?' and '/'.
public static XRItoIRI ( string s, bool inXref ) : string
s string
inXref bool
리턴 string

decodeHex() 공개 정적인 메소드

Attempts to decode a 3-character percent-encoded sequence to the numeric value.
public static decodeHex ( string s, int index ) : int
s string
index int
리턴 int

isIPrivate() 보호된 정적인 메소드

protected static isIPrivate ( int cp ) : bool
cp int
리턴 bool

isUCSChar() 보호된 정적인 메소드

protected static isUCSChar ( int cp ) : bool
cp int
리턴 bool

isUCSCharOrIPrivate() 보호된 정적인 메소드

protected static isUCSCharOrIPrivate ( int cp ) : bool
cp int
리턴 bool

toUTF8PercentEncoded() 보호된 정적인 메소드

protected static toUTF8PercentEncoded ( int cp ) : string
cp int
리턴 string