C# Класс Phun.Templating.PhunPath

Phun implementation for path.
Наследование: IPath
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

extname() публичный Метод

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.
Результат string

join() публичный Метод

Join all arguments together and normalize the resulting path.
public join ( string left, string right ) : string
left string The left.
right string The right.
Результат string

normalize() публичный Метод

Normalize a string path, taking care of '..' and '.' parts.
public normalize ( string path ) : string
path string The path.
Результат string