C# Class Microsoft.VisualStudio.Package.Url

This class wraps the Uri class and provides an unescaped "LocalPath" for file URL's and an unescaped AbsoluteUri for other schemes, plus it also returned an un-hex-escaped result from MakeRelative so it can be presented to the user.
Show file Open project: mimura1133/vstex

Public Methods

Method Description
GetPartial ( int i ) : string
GetRemainder ( int i ) : string
GetSegments ( ) : string[]
JoinSegments ( int i, int j ) : string
MakeRelative ( Url url ) : string
Move ( Url oldBase, Url newBase ) : Url
Unescape ( string escaped, bool isFile ) : string
Url ( Url baseUrl, string relpath ) : System
Url ( string path ) : System

Private Methods

Method Description
CheckIsFile ( ) : void
EscapedAscii ( char digit, char next ) : char
Init ( string path ) : void

Method Details

GetPartial() public method

public GetPartial ( int i ) : string
i int
return string

GetRemainder() public method

public GetRemainder ( int i ) : string
i int
return string

GetSegments() public method

public GetSegments ( ) : string[]
return string[]

JoinSegments() public method

public JoinSegments ( int i, int j ) : string
i int
j int
return string

MakeRelative() public method

public MakeRelative ( Url url ) : string
url Url
return string

Move() public method

public Move ( Url oldBase, Url newBase ) : Url
oldBase Url
newBase Url
return Url

Unescape() public static method

public static Unescape ( string escaped, bool isFile ) : string
escaped string
isFile bool
return string

Url() public method

public Url ( Url baseUrl, string relpath ) : System
baseUrl Url
relpath string
return System

Url() public method

public Url ( string path ) : System
path string
return System