nux-0.9.48

nux::NFileName Class Reference

#include <NuxCore/FileName.h>

Inheritance diagram for nux::NFileName:
nux::NString

Public Member Functions

 NFileName ()
 NFileName (const NFileName &Filename)
 NFileName (const NString &str)
 NFileName (const ANSICHAR *str)
 NFileName (const UNICHAR *str)
void ConvertSlashToBackslash ()
 Replace all slash with backslash.
void ConvertBackslashToSlash ()
 Replace all backslash with slash.
void AddSlashAtEnd ()
 Add slash at the end if there isn't one already.
void AddBackSlashAtEnd ()
 Add backslash at the end if there isn't one already.
void AddSlashAtStart ()
 Add slash at the start if there isn't one already.
void AddBackSlashAtStart ()
 Add backslash at the start if there isn't one already.
void RemoveSlashAtEnd ()
 Remove slash at the end if there is one.
void RemoveBackSlashAtEnd ()
 Remove backslash at the end if there is one.
void RemoveSlashAtStart ()
 Remove slash at the start if there is one.
void RemoveBackSlashAtStart ()
 Remove backslash at the start if there is one.
void ConvertToCleanSlash ()
 Replace all backslash with slash. Replace multiple consecutive slash with one slash.
void ConvertToCleanBackslash ()
 Replace all slash with backslash. Replace multiple consecutive backslash with one backslash.
NString GetDrive () const
NString GetExtension () const
 Returns the text following the last period.
NString GetCleanFilename () const
 Returns the base filename, minus any path information.
NString GetFilenameNoExtension () const
 Returns the base filename, without the extension (keep the path)
NString GetBaseFilename () const
 Returns the same thing as GetCleanFilename, but without the extension.
NString GetDirectoryPath () const
 Returns the path in front of the filename.
void ChangeFileExtension (const TCHAR *ext)
 Change the file extension.

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

Returns the base filename, minus any path information.

Referenced by nux::FolderTreeItem::GetCleanFilename().

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: