FileName

Undocumented in source.

Constructors

this
this(const(char)* str)

FileName *******************************

Members

Functions

compare
int compare(RootObject obj)
Undocumented in source. Be warned that the author may not have intended to support it.
equals
bool equals(RootObject obj)
Undocumented in source. Be warned that the author may not have intended to support it.
equalsExt
bool equalsExt(const(char)* ext)

Return !=0 if extensions match.

ext
const(char)* ext()
Undocumented in source. Be warned that the author may not have intended to support it.
name
const(char)* name()
Undocumented in source. Be warned that the author may not have intended to support it.
toChars
char* toChars()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

absolute
bool absolute(const(char)* name)

Return !=0 if absolute path name.

canonicalName
const(char)* canonicalName(const(char)* name)

Return canonical version of name in a malloc'd buffer. This code is high risk.

combine
const(char)* combine(const(char)* path, const(char)* name)
Undocumented in source. Be warned that the author may not have intended to support it.
compare
int compare(const(char)* name1, const(char)* name2)
Undocumented in source. Be warned that the author may not have intended to support it.
defaultExt
const(char)* defaultExt(const(char)* name, const(char)* ext)

Free returned value with FileName::free()

ensurePathExists
bool ensurePathExists(const(char)* path)
Undocumented in source. Be warned that the author may not have intended to support it.
equals
bool equals(const(char)* name1, const(char)* name2)
Undocumented in source. Be warned that the author may not have intended to support it.
equalsExt
bool equalsExt(const(char)* name, const(char)* ext)
Undocumented in source. Be warned that the author may not have intended to support it.
exists
int exists(const(char)* name)
Undocumented in source. Be warned that the author may not have intended to support it.
ext
const(char)* ext(const(char)* str)

Return filename extension (read-only). Points past '.' of extension. If there isn't one, return NULL.

forceExt
const(char)* forceExt(const(char)* name, const(char)* ext)

Free returned value with FileName::free()

free
void free(const(char)* str)

Free memory allocated by FileName routines

name
const(char)* name(const(char)* str)

Return filename name excluding path (read-only).

path
const(char)* path(const(char)* str)

Return path portion of str. Path will does not include trailing path separator.

removeExt
const(char)* removeExt(const(char)* str)

Return mem.xmalloc'd filename with extension removed.

replaceName
const(char)* replaceName(const(char)* path, const(char)* name)

Replace filename portion of path.

safeSearchPath
const(char)* safeSearchPath(Strings* path, const(char)* name)

Search Path for file in a safe manner.

searchPath
const(char)* searchPath(Strings* path, const(char)* name, bool cwd)

Search Path for file. Input: cwd if true, search current directory before searching path

splitPath
Strings* splitPath(const(char)* path)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

str
const(char)* str;
Undocumented in source.

Meta