dmd.backend.filespec

Undocumented in source.

Members

Aliases

filespeccmp
alias filespeccmp = stricmp

String compare of filenames.

filespecmemcmp
alias filespecmemcmp = memicmp

String compare of filenames.

Functions

filespecaddpath
char* filespecaddpath(const(char)* path, const(char)* filename)

Combine path and filename to form a filespec. Input: path Path, with or without trailing / (can be NULL) filename Cannot be NULL

filespecbackup
char* filespecbackup(const(char)* filespec)

Convert filespec into a backup filename appropriate for the operating system. For instance, under MS-DOS path\filename.ext will be converted to path\filename.bak. Input: filespec String that may or may not contain an extension

filespecdefaultext
char* filespecdefaultext(const(char)* filespec, const(char)* ext)

Add extension onto filespec, if one isn't already there. Input: filespec Cannot be NULL ext Extension (without the .)

filespecdotext
char* filespecdotext(const(char)* filespec)

Return string that is the dot and extension. The string returned is NOT mem_malloc'ed. Return pointer to the 0 at the end of filespec if dot isn't found. Return NULL if filespec is NULL.

filespecforceext
char* filespecforceext(const(char)* filespec, const(char)* ext)

Force extension onto filespec. Input: filespec String that may or may not contain an extension ext Extension that doesn't contain a .

filespecgetroot
char* filespecgetroot(const(char)* name)

Get root name of file name. That is, return a mem_strdup()'d version of the filename without the .ext.

filespecmultitilde
char* filespecmultitilde(char* f)

Expand all ~ in the given string.

filespecname
char* filespecname(const(char)* filespec)

Return string that is the filename plus dot and extension. The string returned is NOT mem_malloc'ed.

filespectilde
char* filespectilde(char* f)

If first character of filespec is a ~, perform tilde-expansion. Output: Input filespec is mem_free'd.

getcwd
char* getcwd(char* , size_t )

filespecrootpath ************************** Purpose: To expand a relative path into an absolute path.

ispathdelim
bool ispathdelim(char c)

String compare of filenames.

memicmp
int memicmp(const(void)* , const(void)* , size_t )

String compare of filenames.

stricmp
int stricmp(const(char)* , const(char)* )

String compare of filenames.

Suggestion Box / Bug Report