#include <NuxCore/FileName.h>
Constructor & Destructor Documentation
nux::NFileName::NFileName |
( |
| ) |
[inline] |
nux::NFileName::NFileName |
( |
const NFileName & |
Filename | ) |
[inline] |
nux::NFileName::NFileName |
( |
const NString & |
str | ) |
[inline] |
nux::NFileName::NFileName |
( |
const ANSICHAR * |
str | ) |
[inline] |
nux::NFileName::NFileName |
( |
const UNICHAR * |
str | ) |
[inline] |
Member Function Documentation
void nux::NFileName::AddBackSlashAtEnd |
( |
| ) |
|
Add backslash at the end if there isn't one already.
void nux::NFileName::AddBackSlashAtStart |
( |
| ) |
|
Add backslash at the start if there isn't one already.
void nux::NFileName::AddSlashAtEnd |
( |
| ) |
|
Add slash at the end if there isn't one already.
void nux::NFileName::AddSlashAtStart |
( |
| ) |
|
Add slash at the start if there isn't one already.
void nux::NFileName::ChangeFileExtension |
( |
const TCHAR * |
ext | ) |
|
Change the file extension.
Do not start ext with a dot character '.'. ie ext = "com"
void nux::NFileName::ConvertBackslashToSlash |
( |
| ) |
|
Replace all backslash with slash.
void nux::NFileName::ConvertSlashToBackslash |
( |
| ) |
|
Replace all slash with backslash.
void nux::NFileName::ConvertToCleanBackslash |
( |
| ) |
|
Replace all slash with backslash. Replace multiple consecutive backslash with one backslash.
void nux::NFileName::ConvertToCleanSlash |
( |
| ) |
|
Replace all backslash with slash. Replace multiple consecutive slash with one slash.
NString nux::NFileName::GetBaseFilename |
( |
| ) |
const |
Returns the same thing as GetCleanFilename, but without the extension.
NString nux::NFileName::GetCleanFilename |
( |
| ) |
const |
NString nux::NFileName::GetDirectoryPath |
( |
| ) |
const |
Returns the path in front of the filename.
NString nux::NFileName::GetDrive |
( |
| ) |
const |
NString nux::NFileName::GetExtension |
( |
| ) |
const |
Returns the text following the last period.
NString nux::NFileName::GetFilenameNoExtension |
( |
| ) |
const |
Returns the base filename, without the extension (keep the path)
void nux::NFileName::RemoveBackSlashAtEnd |
( |
| ) |
|
Remove backslash at the end if there is one.
void nux::NFileName::RemoveBackSlashAtStart |
( |
| ) |
|
Remove backslash at the start if there is one.
void nux::NFileName::RemoveSlashAtEnd |
( |
| ) |
|
Remove slash at the end if there is one.
void nux::NFileName::RemoveSlashAtStart |
( |
| ) |
|
Remove slash at the start if there is one.
The documentation for this class was generated from the following file: