C# Class Phun.Templating.PhunPath

Phun implementation for path.
Inheritance: IPath
Afficher le fichier Open project: noogen/phuncms

Méthodes publiques

Méthode Description
extname ( string path ) : string

Return the extension of the path, from the last '.' to end of string in the last portion of the path. If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string.

join ( string left, string right ) : string

Join all arguments together and normalize the resulting path.

normalize ( string path ) : string

Normalize a string path, taking care of '..' and '.' parts.

Method Details

extname() public méthode

Return the extension of the path, from the last '.' to end of string in the last portion of the path. If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string.
public extname ( string path ) : string
path string The path.
Résultat string

join() public méthode

Join all arguments together and normalize the resulting path.
public join ( string left, string right ) : string
left string The left.
right string The right.
Résultat string

normalize() public méthode

Normalize a string path, taking care of '..' and '.' parts.
public normalize ( string path ) : string
path string The path.
Résultat string