Rogue Wave Views 5.6 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Class that manages path names in a portable way. More...
#include <ilog/pathname.h>
Public Types | |
enum | IlPathType { IlSystemPathType, IlUnixPathType, IlDosPathType } |
enum | SortMode { SortNone, SortAlphabetically, SortCaseInsensitive, SortReverse, GroupDirectories, GroupExtensions } |
Public Member Functions | |
IlPathName () | |
Constructor that initializes an empty IlPathname object. More... | |
IlPathName (const IlString &string) | |
Constructor that initializes an IlPathname object from an IlString. More... | |
IlPathName (const char *cstring) | |
Constructor that initializes an IlPathname object from a C-style string. More... | |
IlPathName (const IlPathName &path) | |
Copy constructor. More... | |
~IlPathName () | |
Destructor. More... | |
void | addDirectory (const IlString &string, int end=-1, IlPathType type=IlSystemPathType, int start=0) |
Appends the string string to the directory part of this . More... | |
void | addDosDirectory (const IlString &string, int end=-1, int start=0) |
Appends the string string, in a DOS format, to the directory part of this . More... | |
void | addUnixDirectory (const IlString &string, int end=-1, int start=0) |
Appends the string string, in UNIX format, to the directory part of this . More... | |
IlBoolean | changeCurrentDirectory () const |
Changes the current directory of the program. More... | |
IlBoolean | changeMode (short newMode) const |
Modifies the mode of the current path name according to the value of newMode . More... | |
IlBoolean | closeDir () const |
Closes the mode that lets to read the directory entries. More... | |
IlPathName & | computeAllButFirstSubDirectory () |
Stores into this its directory part except its first subdirectory. More... | |
IlPathName & | computeAllButLastSubDirectory () |
Stores into this its directory part except its last subdirectory. More... | |
IlPathName & | computeDifferLeading (const IlPathName &path) |
Computes the subpath equal to the path without the common subpath (from the beginning of the paths) of this and path and stores it into this . More... | |
IlPathName & | computeDifferTrailing (const IlPathName &path) |
Computes the subpath equal to the path without the common subpath (from the end of the paths) of this and path and stores it into this . More... | |
IlPathName & | computeFirstSubDirectory () |
Stores into this its first subdirectory. More... | |
IlPathName & | computeLastSubDirectory () |
Stores into this its last subdirectory. More... | |
int | computeLevelNumber () const |
Returns the number of levels of the current path (number of subdirectories). More... | |
IlPathName & | computeRelativePath (const IlPathName &path) |
Computes the relative path of this from path and stores it into this . More... | |
IlPathName & | computeSameLeading (const IlPathName &path) |
Computes the common subpath (from the beginning of the paths) of this and path and stores it into this . More... | |
IlPathName & | computeSameTrailing (const IlPathName &path) |
Computes the common subpath (from the end of the paths) of this and path and stores it into this . More... | |
char * | copy83DosValue () const |
Returns a C-style string that contains the path name, truncated to 8.3 names, in a DOS syntax. More... | |
char * | copyBaseName () const |
Returns a C-style string that contains the catenation of the file name and of the extension parts of the path name. More... | |
char * | copyDevice () const |
Returns a C-style string that contains the device part of the path name. More... | |
char * | copyDirectory (IlBoolean finalSep=IlTrue, IlPathType type=IlSystemPathType) const |
Returns a C-style string that contains the directory part of the path name. More... | |
char * | copyDirName (IlBoolean finalSep=IlTrue, IlPathType type=IlSystemPathType) const |
Returns a C-style string that contains the concatenation of the device and of the directory parts of the path name. More... | |
char * | copyDosDirectory (IlBoolean finalSep=IlTrue) const |
Returns a C-style string that contains the directory part of the path name, in a DOS syntax. More... | |
char * | copyDosValue () const |
Returns a C-style string that contains the whole path name in a DOS syntax. More... | |
char * | copyExtension () const |
Returns a C-style string that contains the extension part of the path name. More... | |
char * | copyFileName () const |
Returns a C-style string that contains the file name part of the path name. More... | |
char * | copyUnixDirectory (IlBoolean finalSep=IlTrue) const |
Returns a C-style string that contains the directory part of the path name, in a Unix syntax. More... | |
char * | copyUnixValue () const |
Returns a C-style string that contains the whole path name in a UNIX syntax. More... | |
char * | copyValue (IlPathType type=IlSystemPathType) const |
Returns a C-style string that contains the whole path name. More... | |
IlBoolean | create (short mode=-1, IlBoolean recursive=IlTrue) const |
Creates physically a file or a directory corresponding to the path name. More... | |
IlBoolean | doesExist () const |
Returns IlTrue if the path actually exits (physically), IlFalse otherwise. More... | |
void | forceAbsolute () |
Forces this to be an absolute path. More... | |
void | forceDirectory () |
Forces this to be a directory, that is, the file name and extension become part of the directory part. More... | |
void | forceRelative () |
Forces this to be a relative path. More... | |
IlString | get83DosValue () const |
Returns a string that contains the path name, truncated to 8.3 names, in the DOS syntax. More... | |
IlString | getBaseName () const |
Returns an IlString object that contains the concatenation of the file name and of the extension parts of the path name. More... | |
IlString | getDevice () const |
Returns an IlString object that contains the device part of the IlPathname . More... | |
IlString | getDirectory (IlBoolean finalSep=IlTrue, IlPathType type=IlSystemPathType) const |
Returns an IlString object that contains the directory part of the IlPathname object. More... | |
IlString | getDirName (IlBoolean finalSep=IlTrue, IlPathType type=IlSystemPathType) const |
Returns an IlString object that contains the concatenation of the device and of the directory parts of the path name. More... | |
IlString | getDosDirectory (IlBoolean finalSep=IlTrue) const |
Returns an IlString object that contains the directory part of the path name in a DOS syntax. More... | |
IlString | getDosValue () const |
Returns a string that contains the whole path name in the DOS syntax. More... | |
IlString | getExtension () const |
Returns an IlString object that contains the extension part of the path name. More... | |
IlString | getFileName () const |
Returns an IlString object that contains the file name part of the path name. More... | |
IlString | getString (IlPathType type=IlSystemPathType) const |
Returns an IlString object that contains the whole path name. More... | |
IlString | getSubDirectory (IlInt level, IlInt count=1) const |
Returns a part of the subdirectories of the path. More... | |
IlString | getTruncatedValue (int level=2) const |
Returns the path limited to the last subdirectories. More... | |
IlString | getUnixDirectory (IlBoolean finalSep=IlTrue) const |
Returns an IlString object that contains the directory part of the path name in a Unix syntax. More... | |
IlString | getUnixValue () const |
Returns a string that contains the whole path name in the Unix syntax. More... | |
IlBoolean | isAbsolute () const |
Returns IlTrue for an absolute path, IlFalse otherwise. More... | |
IlBoolean | isCurrentDirectory () const |
Returns IlTrue if the path name is a directory and the directory part is . , IlFalse otherwise. More... | |
IlBoolean | isDirectory () const |
Returns IlTrue if it is a pure directory, that is, there is no file name or extension, IlFalse otherwise. More... | |
IlBoolean | isEmpty () const |
Returns whether the path name is empty or not. More... | |
IlBoolean | isEmptyDirectory () const |
Returns IlTrue if the path has a null directory part, IlFalse otherwise. More... | |
IlBoolean | isExecutable () const |
Returns IlTrue if the path is executable, IlFalse otherwise. More... | |
IlBoolean | isInCurrentDirectory () const |
Returns IlTrue if the directory part is . , IlFalse otherwise. More... | |
IlBoolean | isNewer (const IlPathName &path) const |
Returns IlFalse if the current path is newer than, i.e. was modified after, the path path , IlTrue otherwise. More... | |
IlBoolean | isReadable () const |
Returns IlTrue if the path is readable, IlFalse otherwise. More... | |
IlBoolean | isSensitive () const |
Returns IlTrue if the file system where is stored the path is case sensitive, IlFalse otherwise. More... | |
IlBoolean | isSubDirectory (const IlPathName &path) const |
Returns IlTrue if this is a subdirectory of path , IlFalse otherwise. More... | |
IlBoolean | isSystemDirectory () const |
Returns IlTrue if the path is an actual directory (physically), IlFalse otherwise. More... | |
IlBoolean | isWritable () const |
Returns IlTrue if the path is writable, IlFalse otherwise. More... | |
void | localize () |
Modifies the this according to the current locale. More... | |
IlBoolean | match (const IlPathName &filter) const |
Returns IlTrue if the current path this matches the parameter path , IlFalse otherwise. More... | |
IlPathName & | merge (const IlPathName &path) |
Merges the value of the object path to this . More... | |
IlPathName & | merge (const IlString &string) |
Merges the value of the IlString string to this . More... | |
IlPathName & | merge (const char *cstring) |
Merges the value of the C-style string cstring to this . More... | |
IlBoolean | openDir () const |
Opens a directory in a mode that lets you to get the entries of this directory. More... | |
operator const char * () const | |
This cast operator casts the object this into a C-style const string. More... | |
operator IlString () const | |
This cast operator casts the object this into a IlString object. More... | |
IlBoolean | operator! () const |
The not operator. More... | |
IlBoolean | operator!= (const IlPathName &path) const |
The inequality operator. More... | |
IlPathName | operator+ (const IlPathName &path) const |
Catenation operator. More... | |
IlPathName | operator+ (const IlString &string) const |
Catenation operator. More... | |
IlPathName | operator+ (const char *cstring) const |
Catenation operator. More... | |
IlPathName & | operator+= (const IlPathName &path) |
Merge operator. More... | |
IlPathName & | operator+= (const IlString &string) |
Merge operator. More... | |
IlPathName & | operator+= (const char *cstring) |
Merge operator. More... | |
IlPathName & | operator= (const IlPathName &path) |
Assignment operator from another IlPathname object. More... | |
IlPathName & | operator= (const IlString &string) |
Assignment operator from an IlString object. More... | |
IlPathName & | operator= (const char *cstring) |
Assignment operator from a C-Style string. More... | |
IlBoolean | operator== (const IlPathName &path) const |
The equality operator. More... | |
IlPathName & | prepend (const IlPathName &path) |
Stores into this the result of path.merge(*this) without modifying path . More... | |
IlPathName & | prepend (const IlString &string) |
Equivalent to the function IlPathName::prepend(const IlPathName&) but instead of an IlPathName , it uses a string that corresponds to the path name. More... | |
IlPathName & | prepend (const char *cstring) |
Equivalent to the function IlPathName::prepend(const IlPathName&) but instead of an IlPathName , it uses a C-style string that corresponds to the path name. More... | |
IlBoolean | queryAccessTime (time_t &time) const |
Fills the parametertime with the time when the path name was last accessed. More... | |
IlBoolean | queryChangedStatusTime (time_t &time) const |
Fills the unsigned long time with the time when the path name was last changed on Unix, or was created on Windows/MSDOS. More... | |
void | queryCurrentDirectory (IlString *drive=0) |
Stores into this the value of the current directory. More... | |
IlBoolean | queryMode (short &mode) const |
Fills the short int mode with the mode of the path name. More... | |
IlBoolean | queryModificationTime (time_t &time) const |
Fills the unsigned long time with the time when the path name was last modified. More... | |
IlBoolean | readDir (IlPathName &result) const |
Reads the next entry of the directory pointed to by this . More... | |
IlBoolean | remove (IlBoolean recursive=IlFalse) const |
Removes physically the file or directory corresponding to the path name. More... | |
void | rewindDir () const |
Resets the pointer inside the directory entries. More... | |
void | setBaseName (const IlString &string, int end=-1, int start=0) |
Sets the string string as the basename (file name + extension) part of this . More... | |
void | setDevice (const IlString &string, int end=-1, int start=0) |
Sets the string string as the device part of this . More... | |
void | setDirectory (const IlString &string, int end=-1, IlPathType type=IlSystemPathType, int start=0) |
Sets the string string as the directory part of this . More... | |
void | setDirName (const IlString &string, int end=-1, IlPathType type=IlSystemPathType, int start=0) |
Sets the string string as the dirname (directory+device) part of this . More... | |
void | setDosDirectory (const IlString &string, int end=-1, int start=0) |
Sets the string string, in DOS format, as the directory part of this . More... | |
void | setDosDirName (const IlString &string, int end=-1, int start=0) |
Sets the string string, in DOS format, as the dirname (device + directory) part of this . More... | |
void | setDosValue (const IlString &string, int end=-1, int start=0) |
Sets the string string as the value of this . More... | |
void | setExtension (const IlString &string, int end=-1, int start=0) |
Sets the string string as the extension part of this . More... | |
void | setFileName (const IlString &string, int end=-1, int start=0) |
Sets the string string as the file name part of this . More... | |
void | setUnixDirectory (const IlString &string, int end=-1, int start=0) |
Sets the string string, in Unix format, as the directory part of this . More... | |
void | setUnixDirName (const IlString &string, int end=-1, int start=0) |
Sets the string string, in Unix format, as the dirname (device + directory) part of this . More... | |
void | setUnixValue (const IlString &string, int end=-1, int start=0) |
Sets the string string as the value of this . More... | |
void | setValue (const IlString &string, int end=-1, IlPathType type=IlSystemPathType, int start=0) |
Sets the string string as the value of this . More... | |
Static Public Member Functions | |
static IlBoolean | doesExist (const IlString &pathname) |
This static member function returns IlTrue if the string is a path which exists physically, IlFalse otherwise. More... | |
static IlBoolean | isExecutable (const IlString &pathname) |
This static member function returns IlTrue if the string is a path which is executable, IlFalse otherwise. More... | |
static IlBoolean | isReadable (const IlString &pathname) |
This static member function returns IlTrue if the string is a path which is readable, IlFalse otherwise. More... | |
static IlBoolean | isWritable (const IlString &pathname) |
This static member function returns IlTrue if the string is a path which is writable, IlFalse otherwise. More... | |
static IlString | Localize (const IlString pathname) |
This static member function returns an IlString built according to the current locale from the parameter pathname. More... | |
static void | QueryCurrentDirectory (char result[], int maxLen, IlString *drive=0) |
This static member function stores into the C-style array result the value of the current directory. More... | |
This type indicates the syntax with which a path name will be translated into a string. In particular, it decides whether the directory separator character should be a slash, as on Unix, or a backslash, as on DOS.
enum IlPathName::SortMode |
IlPathName::IlPathName | ( | ) |
Constructor that initializes an empty IlPathname
object.
Note: All the fields are empty.
IlPathName::IlPathName(const IlString&)
, IlPathName::IlPathName(const char*)
, IlPathName::IlPathName(const IlPathName&)
, IlPathName::~IlPathName()
, IlPathName::setValue(const IlString&, int = -1, IlPathType = IlSystemPathType, int = 0)
, IlPathName::IlPathName | ( | const IlString & | string | ) |
Constructor that initializes an IlPathname
object from an IlString.
The string must be in the syntax of the system.
string | An IlString . |
IlPathName::IlPathName()
, IlPathName::IlPathName(const char*)
, IlPathName::IlPathName(const IlPathName&)
, IlPathName::~IlPathName()
, IlPathName::setValue(const IlString&, int = -1, IlPathType = IlSystemPathType, int = 0)
. IlPathName::IlPathName | ( | const char * | cstring | ) |
Constructor that initializes an IlPathname
object from a C-style string.
The string must be in the syntax of the system.
cstring | A C-style string. |
IlPathName::IlPathName()
, IlPathName::IlPathName(const IlString&)
, IlPathName::IlPathName(const IlPathName&)
, IlPathName::~IlPathName()
, IlPathName::setValue(const IlString&, int = -1, IlPathType = IlSystemPathType, int = 0)
. IlPathName::IlPathName | ( | const IlPathName & | path | ) |
Copy constructor.
It builds a new IlPathname
object from the object path.
string | A const pointer to a C-style string. |
IlPathName::IlPathName()
, IlPathName::IlPathName(const IlString&)
, IlPathName::IlPathName(const char*)
, IlPathName::~IlPathName()
, IlPathName::setValue(const IlString&, int = -1, IlPathType = IlSystemPathType, int = 0)
. IlPathName::~IlPathName | ( | ) |
Destructor.
It releases all the resources used by the object.
void IlPathName::addDirectory | ( | const IlString & | string, |
int | end = -1 , |
||
IlPathType | type = IlSystemPathType , |
||
int | start = 0 |
||
) |
Appends the string string to the directory part of this
.
The parameters end and start let you restrict the string to set.
If end has the value -1 then the string is used until its end; otherwise end is the position of the first character after the substring.
The parameter start defines the beginning of the substring.
You may also specify in which syntax (Dos or Unix) is the string string. By Default the value is IlvSystemPathType
that is the syntax of the system.
string | A const reference to an IlString . |
end | An int . The default value is -1. |
type | An IlPathType . The default value is IlSystemPathType , that is the syntax of the system. |
start | An int . The default value is 0. |
void IlPathName::addDosDirectory | ( | const IlString & | string, |
int | end = -1 , |
||
int | start = 0 |
||
) |
Appends the string string, in a DOS format, to the directory part of this
.
The parameters end and start let you restrict the string to set.
If end has the value -1 then the string is used until its end; otherwise end is the position of the first character after the substring.
The parameter start defines the beginning of the substring.
Note: This member function also interprets the UNIX format.
string | A const reference to an IlString . |
end | An int . The default value is -1. |
start | An int . The default value is 0. |
void IlPathName::addUnixDirectory | ( | const IlString & | string, |
int | end = -1 , |
||
int | start = 0 |
||
) |
Appends the string string, in UNIX format, to the directory part of this
.
The parameters end and start let you restrict the string to set.
If end has the value -1 then the string is used until its end; otherwise end is the position of the first character after the substring.
The parameter start defines the beginning of the substring.
Note: This member function does not interpret the DOS format.
string | A const reference to an IlString . |
end | An int . The default value is -1. |
start | An int . The default value is 0. |
IlBoolean IlPathName::changeCurrentDirectory | ( | ) | const |
Changes the current directory of the program.
If an error occurs, it returns IlFalse
, IlTrue
otherwise.
IlBoolean
. IlBoolean IlPathName::changeMode | ( | short | newMode | ) | const |
Modifies the mode of the current path name according to the value of newMode
.
The value depends on the system. If an error occurs, then the functions returns IlFalse
, IlTrue
otherwise.
newMode | A short . |
IlBoolean
. IlBoolean IlPathName::closeDir | ( | ) | const |
Closes the mode that lets to read the directory entries.
After calling this function, you won't be able to call IlPathName::readDir nor IlPathName::rewindDir. The member function IlPathName::openDir must have been called before.
If an error occurs it returns IlFalse
, IlTrue
otherwise.
IlBoolean
. IlPathName& IlPathName::computeAllButFirstSubDirectory | ( | ) |
Stores into this
its directory part except its first subdirectory.
It returns a reference to this
.
IlPathName
object. IlPathName& IlPathName::computeAllButLastSubDirectory | ( | ) |
Stores into this
its directory part except its last subdirectory.
It returns a reference to this
.
IlPathName
object. IlPathName& IlPathName::computeDifferLeading | ( | const IlPathName & | path | ) |
Computes the subpath equal to the path without the common subpath (from the beginning of the paths) of this
and path
and stores it into this
.
path | A const reference to an IlPathName object. |
IlPathName
object. IlPathName& IlPathName::computeDifferTrailing | ( | const IlPathName & | path | ) |
Computes the subpath equal to the path without the common subpath (from the end of the paths) of this
and path
and stores it into this
.
path | A const reference to an IlPathName object. |
IlPathName
object. IlPathName& IlPathName::computeFirstSubDirectory | ( | ) |
Stores into this
its first subdirectory.
It returns a reference to this
.
IlPathName
object. IlPathName& IlPathName::computeLastSubDirectory | ( | ) |
Stores into this
its last subdirectory.
It returns a reference to this
.
IlPathName
object. int IlPathName::computeLevelNumber | ( | ) | const |
Returns the number of levels of the current path (number of subdirectories).
int
. IlPathName& IlPathName::computeRelativePath | ( | const IlPathName & | path | ) |
Computes the relative path of this
from path
and stores it into this
.
It returns a reference to this
.
path | A const reference to an IlPathName . |
IlPathName
object. IlPathName& IlPathName::computeSameLeading | ( | const IlPathName & | path | ) |
Computes the common subpath (from the beginning of the paths) of this
and path
and stores it into this
.
path | A const reference to an IlPathName object. |
IlPathName
object. IlPathName& IlPathName::computeSameTrailing | ( | const IlPathName & | path | ) |
Computes the common subpath (from the end of the paths) of this
and path
and stores it into this
.
path | A const reference to an IlPathName object. |
IlPathName
object. char * IlPathName::copy83DosValue | ( | ) | const |
Returns a C-style string that contains the path name, truncated to 8.3 names, in a DOS syntax.
Every item of the path name (the basename, each subdirectory) is truncated to 8.3.
If the path name is empty, it returns .\
.
Warning: The returned string must be deleted with the delete[]
operator when it is not used any more.
Note: The truncation is actually the result of removing the last letters after the eight first ones (if any) of the file name part and the last letters after the three ones (if any) of the extension part (and similarly for the directory part). There is no algorithm to compute a short name as it exists in the Windows API.
new[]
operator. char * IlPathName::copyBaseName | ( | ) | const |
Returns a C-style string that contains the catenation of the file name and of the extension parts of the path name.
Warning: The returned string must be deleted with the delete[]
operator when it is not used any more.
new[]
operator. char * IlPathName::copyDevice | ( | ) | const |
Returns a C-style string that contains the device part of the path name.
Warning: The returned string must be deleted with the delete[]
operator when it is not used any more.
new[]
operator. char * IlPathName::copyDirectory | ( | IlBoolean | finalSep = IlTrue , |
IlPathType | type = IlSystemPathType |
||
) | const |
Returns a C-style string that contains the directory part of the path name.
If the value of finalsep
is IlTrue
, the default, the string ends with a /
or a \
according to the type
parameter.
You may also specify with which syntax (Dos or Unix) you want to print the directory. By Default the value is IlvSystemPathType
that is the syntax of the system.
Warning: The returned string must be deleted with the delete[]
operator when it is not used any more.
finalSep | An IlBoolean . The default value is IlTrue . |
type | An IlPathType . The default value is IlSystemPathType , that is the syntax of the system. |
new[]
operator. char * IlPathName::copyDirName | ( | IlBoolean | finalSep = IlTrue , |
IlPathType | type = IlSystemPathType |
||
) | const |
Returns a C-style string that contains the concatenation of the device and of the directory parts of the path name.
If the value of finalsep
is IlTrue
, the default, the string ends with a /
or a \
according to the type
parameter.
You may also specify with which syntax (Dos or Unix) you want to print the directory. By Default the value is IlvSystemPathType
that is the syntax of the system.
Warning: The returned string must be deleted with the delete[]
operator when it is not used any more.
finalSep | An IlBoolean . The default value is IlTrue . |
type | An IlPathType . The default value is IlSystemPathType , that is the syntax of the system. |
new[]
operator. Returns a C-style string that contains the directory part of the path name, in a DOS syntax.
If the value of finalSep
is IlTrue
, the default, the string ends with a \
.
Warning: The returned string must be deleted with the delete[]
operator when it is not used any more.
finalSep | An IlBoolean . The default value is IlTrue . |
new[]
operator. char * IlPathName::copyDosValue | ( | ) | const |
Returns a C-style string that contains the whole path name in a DOS syntax.
If the path name is empty, it returns ./
.
Warning: The returned string must be deleted with the delete[]
operator when it is not used any more.
new[]
operator. char * IlPathName::copyExtension | ( | ) | const |
Returns a C-style string that contains the extension part of the path name.
Warning: The returned string must be deleted with the delete[]
operator when it is not used any more.
new[]
operator. char * IlPathName::copyFileName | ( | ) | const |
Returns a C-style string that contains the file name part of the path name.
Warning: The returned string must be deleted with the delete[]
operator when it is not used any more.
new[]
operator. Returns a C-style string that contains the directory part of the path name, in a Unix syntax.
If the value of finalSep
is IlTrue
, the default, the string ends with a /
.
Warning: The returned string must be deleted with the delete[]
operator when it is not used any more.
finalSep | An IlBoolean . The default value is IlTrue . |
new[]
operator. char * IlPathName::copyUnixValue | ( | ) | const |
Returns a C-style string that contains the whole path name in a UNIX syntax.
If the path name is empty, it returns ./
.
Warning: The returned string must be deleted with the delete[]
operator when it is not used any more.
new[]
operator. char * IlPathName::copyValue | ( | IlPathType | type = IlSystemPathType | ) | const |
Returns a C-style string that contains the whole path name.
You may specify with which syntax (Dos or Unix) you want to print the directory. By Default the value is IlvSystemPathType
that is the syntax of the system.
Warning: The returned string must be deleted with the delete[]
operator when it is not used any more.
type | An IlPathType . The default value is IlSystemPathType , that is the syntax of the system. |
new[]
operator. Creates physically a file or a directory corresponding to the path name.
The parameter mode is the mode with which the file or directory(ies) will be created. If the value is -1 then the mode used is the current mode (defined by umask
for example on Unix). The parameter recursive specifies whether the directories must be created when they don't exist (value is IlTrue
) or not (value is IlFalse
).
If an error occurs it returns IlFalse
, IlTrue
otherwise.
mode | A short . The default value is -1. |
recursive | An IlBoolean . The default value is IlTrue . |
IlBoolean
. IlBoolean IlPathName::doesExist | ( | ) | const |
Returns IlTrue
if the path actually exits (physically), IlFalse
otherwise.
IlBoolean
. This static member function returns IlTrue
if the string is a path which exists physically, IlFalse
otherwise.
pathname | A const reference to an IlString . |
IlBoolean
. void IlPathName::forceAbsolute | ( | ) |
Forces this
to be an absolute path.
void IlPathName::forceDirectory | ( | ) |
Forces this
to be a directory, that is, the file name and extension become part of the directory part.
void IlPathName::forceRelative | ( | ) |
Forces this
to be a relative path.
IlString IlPathName::get83DosValue | ( | ) | const |
Returns a string that contains the path name, truncated to 8.3 names, in the DOS syntax.
Every item of the path name (the basename, each subdirectory) is truncated to 8.3. If the path name is empty, it returns .\
.
Note: The truncation is actually the result of removing the last letters after the eight first ones (if any) of the file name part and the last letters after the three ones (if any) of the extension part (and similarly for the directory part). There is no algorithm to compute a short name as it exists in the Windows API.
IlString
object. IlString IlPathName::getBaseName | ( | ) | const |
Returns an IlString
object that contains the concatenation of the file name and of the extension parts of the path name.
IlString
object. IlString IlPathName::getDevice | ( | ) | const |
Returns an IlString
object that contains the device part of the IlPathname
.
IlString
object. IlString IlPathName::getDirectory | ( | IlBoolean | finalSep = IlTrue , |
IlPathType | type = IlSystemPathType |
||
) | const |
Returns an IlString
object that contains the directory part of the IlPathname
object.
If the value of finalsep
is IlTrue
, the default, the string ends with a /
or a \
according to the type
parameter.
You may also specify with which syntax (Dos or Unix) you want to print the directory. By Default the value is IlvSystemPathType
that is the syntax of the system.
finalSep | An IlBoolean . The default value is IlTrue . |
type | An IlPathType . The default value is IlSystemPathType , that is the syntax of the system. |
IlString
object. IlString IlPathName::getDirName | ( | IlBoolean | finalSep = IlTrue , |
IlPathType | type = IlSystemPathType |
||
) | const |
Returns an IlString
object that contains the concatenation of the device and of the directory parts of the path name.
If the value of finalsep
is IlTrue
, the default, the string ends with a /
or a \
according to the type
parameter.
You may also specify with which syntax (Dos or Unix) you want to print the directory. By Default the value is IlvSystemPathType
that is the syntax of the system.
finalSep | An IlBoolean . The default value is IlTrue . |
type | An IlPathType . The default value is IlSystemPathType , that is the syntax of the system. |
IlString
object. Returns an IlString
object that contains the directory part of the path name in a DOS syntax.
If the value of finalsep
is IlTrue
, the default one, the string ends with a \
.
finalSep | An IlBoolean . The default is IlTrue . |
IlString
object. IlString IlPathName::getDosValue | ( | ) | const |
Returns a string that contains the whole path name in the DOS syntax.
If the path name is empty, it returns .\
.
IlString
object. IlString IlPathName::getExtension | ( | ) | const |
Returns an IlString
object that contains the extension part of the path name.
IlString
object. IlString IlPathName::getFileName | ( | ) | const |
Returns an IlString
object that contains the file name part of the path name.
IlString
object. IlString IlPathName::getString | ( | IlPathType | type = IlSystemPathType | ) | const |
Returns an IlString
object that contains the whole path name.
If the path name is empty, it returns ./
or .\
according to the type
parameter.
You may also specify with which syntax (Dos or Unix) you want to print the directory. By Default the value is IlvSystemPathType
that is the syntax of the system.
type | An IlPathType . The default value is IlSystemPathType , that is the syntax of the system. |
IlString
object. Returns a part of the subdirectories of the path.
The string contains a part of the subdirectories of the path name in the current syntax.
level | The subdirectory level into the path. The level value for the first subdirectory is 1 . If you want to start from the end, the level value of the last subdirectory is -1 . |
count | The number of subdirectories wished. For example, if you want the two first levels of subdirectories, you call this function with the values 1 and 2 . If you want the four last subdirectories, you call this function with the values -4 and 4 . |
IlString IlPathName::getTruncatedValue | ( | int | level = 2 | ) | const |
Returns the path limited to the last subdirectories.
The string contains the path name in the current syntax, but with only, at most, the last level
subdirectories. If the path name contains more than level
subdirectories, then the supplemental subdirectories are replaced by an ellipsis (...
).
level | An int . The default value is 2. |
IlString
object. Returns an IlString
object that contains the directory part of the path name in a Unix syntax.
If the value of finalsep
is IlTrue
, the default one, the string ends with a /
.
finalSep | An IlBoolean . The default is IlTrue . |
IlString
object. IlString IlPathName::getUnixValue | ( | ) | const |
Returns a string that contains the whole path name in the Unix syntax.
If the path name is empty, it returns ./
.
IlString
object. IlBoolean IlPathName::isAbsolute | ( | ) | const |
Returns IlTrue
for an absolute path, IlFalse
otherwise.
IlBoolean
. IlBoolean IlPathName::isCurrentDirectory | ( | ) | const |
Returns IlTrue
if the path name is a directory and the directory part is .
, IlFalse
otherwise.
IlBoolean
. IlBoolean IlPathName::isDirectory | ( | ) | const |
Returns IlTrue
if it is a pure directory, that is, there is no file name or extension, IlFalse
otherwise.
IlBoolean
. IlBoolean IlPathName::isEmpty | ( | ) | const |
Returns whether the path name is empty or not.
It returns IlTrue
if the path is empty, that is all the parts of the path are null, IlFalse
otherwise.
IlBoolean
. IlBoolean IlPathName::isEmptyDirectory | ( | ) | const |
Returns IlTrue
if the path has a null directory part, IlFalse
otherwise.
IlBoolean
. IlBoolean IlPathName::isExecutable | ( | ) | const |
Returns IlTrue
if the path is executable, IlFalse
otherwise.
IlBoolean
. This static member function returns IlTrue
if the string is a path which is executable, IlFalse
otherwise.
pathname | A const reference to an IlString . |
IlBoolean
. IlBoolean IlPathName::isInCurrentDirectory | ( | ) | const |
Returns IlTrue
if the directory part is .
, IlFalse
otherwise.
IlBoolean
. IlBoolean IlPathName::isNewer | ( | const IlPathName & | path | ) | const |
Returns IlFalse
if the current path is newer than, i.e. was modified after, the path path
, IlTrue
otherwise.
If an error occurs it returns IlFalse
, IlTrue
otherwise.
path | A const reference to an IlPathName . |
IlBoolean
. IlBoolean IlPathName::isReadable | ( | ) | const |
Returns IlTrue
if the path is readable, IlFalse
otherwise.
IlBoolean
. This static member function returns IlTrue
if the string is a path which is readable, IlFalse
otherwise.
pathname | A const reference to an IlString . |
IlBoolean
. IlBoolean IlPathName::isSensitive | ( | ) | const |
Returns IlTrue
if the file system where is stored the path is case sensitive, IlFalse
otherwise.
IlBoolean
. IlBoolean IlPathName::isSubDirectory | ( | const IlPathName & | path | ) | const |
Returns IlTrue
if this
is a subdirectory of path
, IlFalse
otherwise.
path | A const reference to an IlPathName . |
IlBoolean
. IlBoolean IlPathName::isSystemDirectory | ( | ) | const |
Returns IlTrue
if the path is an actual directory (physically), IlFalse
otherwise.
IlBoolean
. IlBoolean IlPathName::isWritable | ( | ) | const |
Returns IlTrue
if the path is writable, IlFalse
otherwise.
IlBoolean
. This static member function returns IlTrue
if the string is a path which is writable, IlFalse
otherwise.
pathname | A const reference to an IlString . |
IlBoolean
. void IlPathName::localize | ( | ) |
Modifies the this
according to the current locale.
This is used to search files that depend on the localization.
This static member function returns an IlString
built according to the current locale from the parameter pathname.
This is used to search files that depend on the localization.
pathname | An IlString . |
IlString
. IlBoolean IlPathName::match | ( | const IlPathName & | filter | ) | const |
Returns IlTrue
if the current path this
matches the parameter path
, IlFalse
otherwise.
This is useful only if the parameter is a filter. <BR><B>Note:</B> This function uses the Unix convention:
*.* means filename = * and extension = ?*. * means filename = * and extension = *.
filter | A const reference to an IlPathName . |
IlBoolean
. IlPathName& IlPathName::merge | ( | const IlPathName & | path | ) |
Merges the value of the object path
to this
.
If path
is an absolute path name, then it copied into this
. If path
is a relative path name, then the file name and extension parts of the result will contain the respective values of path
, and the directory part will the concatenation of the directory parts of this
and of path
. The device part is not modified.
path | A const reference to an IlPathName . |
IlPathName
object. IlPathName & IlPathName::merge | ( | const IlString & | string | ) |
Merges the value of the IlString
string to this
.
If string is an absolute path name, then it copied into this
. If string is a relative path name, then the file name and extension parts of the result will contain the respective values of string, and the directory part will the concatenation of the directory parts of this
and of string. The device part is not modified.
The string must be in the syntax of the system.
string | A const reference to an IlString object. |
IlPathName
object. IlPathName & IlPathName::merge | ( | const char * | cstring | ) |
Merges the value of the C-style string cstring
to this
.
If cstring
is an absolute path name, then it copied into this
. If cstring
is a relative path name, then the file name and extension parts of the result will contain the respective values of cstring
, and the directory part will the concatenation of the directory parts of this
and of cstring
. The device part is not modified.
The string must be in the syntax of the system.
cstring | A const pointer to a C-style string. |
IlPathName
object. IlBoolean IlPathName::openDir | ( | ) | const |
Opens a directory in a mode that lets you to get the entries of this directory.
If an error occurs it returns IlFalse
, IlTrue
otherwise.
IlBoolean
. IlPathName::operator const char * | ( | ) | const |
This cast operator casts the object this
into a C-style const string.
Warning: The string must not be deleted nor modified. The lifetime of the string is the same as the one of the IlPathName
object.
IlPathName::operator IlString | ( | ) | const |
IlBoolean IlPathName::operator! | ( | ) | const |
The not operator.
The not operator returns IlTrue
when the object is empty, IlFalse
otherwise.
IlBoolean
. IlBoolean IlPathName::operator!= | ( | const IlPathName & | path | ) | const |
The inequality operator.
The inequality operator tests whether the object this
has the same value as the object path
. It returns IlFalse
in this case, IlTrue
otherwise.
path | A const reference to an IlPathName . |
IlBoolean
. IlPathName IlPathName::operator+ | ( | const IlPathName & | path | ) | const |
Catenation operator.
This operator catenates the value of the object path
with the current object and returns a new IlPathname
object as result.
If path
is an absolute path name, then it copied into this
the new object. If path
is a relative path name, then the file name and extension parts of the result will contain the respective values of path
, and the directory part will the concatenation of the directory parts of this
and of path
. The device part is the device part of this
path | A const reference to an IlPathName . |
IlPathName
object. IlPathName IlPathName::operator+ | ( | const IlString & | string | ) | const |
Catenation operator.
This operator catenates the value of the object string with the current object and returns a new IlPathname
object as result.
If string is an absolute path name, then it copied into this
the new object. If string is a relative path name, then the file name and extension parts of the result will contain the respective values of string, and the directory part will the concatenation of the directory parts of this
and of string. The device part is the device part of this
string | A const reference to an IlString object. |
IlPathName
object. IlPathName IlPathName::operator+ | ( | const char * | cstring | ) | const |
Catenation operator.
This operator catenates the value of the object cstring
with the current object and returns a new IlPathname
object as result.
If cstring
is an absolute path name, then it copied into this
the new object. If cstring
is a relative path name, then the file name and extension parts of the result will contain the respective values of cstring
, and the directory part will the concatenation of the directory parts of this
and of cstring
. The device part is the device part of this
cstring | A const pointer to a C-style string. |
IlPathName
object. IlPathName & IlPathName::operator+= | ( | const IlPathName & | path | ) |
Merge operator.
This operator merges the value of the object path
to this
. It returns this
.
If path
is an absolute path name, then it copied into this
. If path
is a relative path name, then the file name and extension parts of the result will contain the respective values of path
, and the directory part will the concatenation of the directory parts of this
and of path
. The device part is not modified.
path | A const reference to an IlPathName . |
IlPathName
object. IlPathName & IlPathName::operator+= | ( | const IlString & | string | ) |
Merge operator.
This operator merges the value of the IlString
string to this
. It returns this
.
If string is an absolute path name, then it copied into this
. If string is a relative path name, then the file name and extension parts of the result will contain the respective values of string, and the directory part will the concatenation of the directory parts of this
and of string. The device part is not modified.
Warning: The string must be in the syntax of the system.
string | A const reference to an IlString object. |
IlPathName
object. IlPathName & IlPathName::operator+= | ( | const char * | cstring | ) |
Merge operator.
This operator merges the value of the C-style string cstring
to this
. It returns this
.
Warning: The string must be in the syntax of the system.
If cstring
is an absolute path name, then it copied into this
. If cstring
is a relative path name, then the file name and extension parts of the result will contain the respective values of cstring
, and the directory part will the concatenation of the directory parts of this
and of cstring
. The device part is not modified.
cstring | A const pointer to a C-style string. |
IlPathName
object. IlPathName & IlPathName::operator= | ( | const IlPathName & | path | ) |
Assignment operator from another IlPathname
object.
This assignment operator sets the value of this
to the value of the object path
.
path | A const reference to an IlPathName . |
IlPathName
object. IlPathName & IlPathName::operator= | ( | const IlString & | string | ) |
Assignment operator from an IlString
object.
This assignment operator sets the value of this
to the value of the IlString
string.
Warning: The string must be in the syntax of the system.
string | A const reference to an IlString . |
IlPathName
object. IlPathName & IlPathName::operator= | ( | const char * | cstring | ) |
Assignment operator from a C-Style string.
This assignment operator sets the value of this
to the value of the C-style string cstring
.
Warning: The string must be in the syntax of the system.
cstring | A const pointer to a C-style string. |
IlPathName
object. IlBoolean IlPathName::operator== | ( | const IlPathName & | path | ) | const |
The equality operator.
The equality operator tests whether the object this
has the same value as the object path
. It returns IlTrue
in this case, IlFalse
otherwise.
path | A const reference to an IlPathName . |
IlBoolean
. IlPathName& IlPathName::prepend | ( | const IlPathName & | path | ) |
Stores into this
the result of path.merge(*this)
without modifying path
.
For more information, see the function IlPathName::merge(const IlPathName&).
path | A const reference to an IlPathName . |
IlPathName
object. IlPathName & IlPathName::prepend | ( | const IlString & | string | ) |
Equivalent to the function IlPathName::prepend(const IlPathName&)
but instead of an IlPathName
, it uses a string that corresponds to the path name.
The string must be in the syntax of the system.
string | A const reference to an IlString . |
IlPathName
object. IlPathName & IlPathName::prepend | ( | const char * | cstring | ) |
Equivalent to the function IlPathName::prepend(const IlPathName&)
but instead of an IlPathName
, it uses a C-style string that corresponds to the path name.
The string must be in the syntax of the system.
cstring | A const pointer to a C-style string. |
IlPathName
object. IlBoolean IlPathName::queryAccessTime | ( | time_t & | time | ) | const |
Fills the parametertime
with the time when the path name was last accessed.
If an error occurs, then the functions returns IlFalse
, IlTrue
otherwise.
time | A reference to a unsigned long . |
IlBoolean
. IlBoolean IlPathName::queryChangedStatusTime | ( | time_t & | time | ) | const |
Fills the unsigned long time
with the time when the path name was last changed on Unix, or was created on Windows/MSDOS.
If an error occurs, then the functions returns IlFalse
; otherwise IlTrue
.
time | A reference to a unsigned long . |
IlBoolean
. void IlPathName::queryCurrentDirectory | ( | IlString * | drive = 0 | ) |
Stores into this
the value of the current directory.
On system with device (such as Windows), you may get the current directory of a specific drive. If drive is null, then the current drive is used.
drive | A pointer to an IlString object. |
|
static |
This static member function stores into the C-style array result
the value of the current directory.
The maximal size is given by maxLen
.
On system with device (such as MSDOS), you may get the current directory of a specific drive. If drive is null, then the current drive is used.
result | A C-style array of characters. |
maxLen | An int |
drive | A pointer to an IlString . |
IlBoolean IlPathName::queryMode | ( | short & | mode | ) | const |
Fills the short int mode with the mode of the path name.
The value depends on the system. If an error occurs, then the functions returns IlFalse
; otherwise IlTrue
.
mode | A reference to a short . |
IlBoolean
. IlBoolean IlPathName::queryModificationTime | ( | time_t & | time | ) | const |
Fills the unsigned long time
with the time when the path name was last modified.
If an error occurs, then the functions returns IlFalse
, IlTrue
otherwise.
time | A reference to a unsigned long . |
IlBoolean
. IlBoolean IlPathName::readDir | ( | IlPathName & | result | ) | const |
Reads the next entry of the directory pointed to by this
.
This entry is stored into the path result
. The member function openDir
must have been called before.
If an error occurs the return value is IlFalse
, IlTrue
otherwise.
result | A reference to an IlPathName . |
IlBoolean
. Removes physically the file or directory corresponding to the path name.
If the value of the parameter recursive
is IlTrue
, and the path name is a directory, then all the entries of this directory are removed (recursively for the subdirectories).
If an error occurs it returns IlFalse
, IlTrue
otherwise.
recursive | An IlBoolean . The default value is IlFalse . |
IlBoolean
. void IlPathName::rewindDir | ( | ) | const |
Resets the pointer inside the directory entries.
After calling this function, the next value returned will be the first entry of the directory whatever entries were already read before. The member function IlPathName::openDir
must have been called before.
void IlPathName::setBaseName | ( | const IlString & | string, |
int | end = -1 , |
||
int | start = 0 |
||
) |
Sets the string string as the basename (file name + extension) part of this
.
The parameters end and start let you restrict the string to set.
If end has the value -1 then the string is used until its end; otherwise end is the position of the first character after the substring.
The parameter start defines the beginning of the substring.
string | A const reference to an IlString . |
end | An int . The default value is -1. |
start | An int . The default value is 0. |
void IlPathName::setDevice | ( | const IlString & | string, |
int | end = -1 , |
||
int | start = 0 |
||
) |
Sets the string string as the device part of this
.
The parameters end and start let you restrict the string to set.
If end has the value -1 then the string is used until its end; otherwise end is the position of the first character after the substring.
The parameter start defines the beginning of the substring.
string | A const reference to an IlString . |
end | An int . The default value is -1. |
start | An int . The default value is 0. |
void IlPathName::setDirectory | ( | const IlString & | string, |
int | end = -1 , |
||
IlPathType | type = IlSystemPathType , |
||
int | start = 0 |
||
) |
Sets the string string as the directory part of this
.
The parameters end and start let you restrict the string to set.
If end has the value -1 then the string is used until its end; otherwise end is the position of the first character after the substring.
The parameter start defines the beginning of the substring.
You may also specify in which syntax (Dos or Unix) is the string string. By Default the value is IlvSystemPathType
that is the syntax of the system.
string | A const reference to an IlString . |
end | An int . The default value is -1. |
type | An IlPathType . The default value is IlSystemPathType , that is the syntax of the system. |
start | An int . The default value is 0. |
void IlPathName::setDirName | ( | const IlString & | string, |
int | end = -1 , |
||
IlPathType | type = IlSystemPathType , |
||
int | start = 0 |
||
) |
Sets the string string as the dirname (directory+device) part of this
.
The parameters end and start let you restrict the string to set.
If end has the value -1 then the string is used until its end; otherwise end is the position of the first character after the substring.
The parameter start defines the beginning of the substring.
You may also specify in which syntax (Dos or Unix) is the string string. By Default the value is IlvSystemPathType
that is the syntax of the system.
string | A const reference to an IlString . |
end | An int . The default value is -1. |
type | An IlPathType . The default value is IlSystemPathType , that is the syntax of the system. |
start | An int . The default value is 0. |
void IlPathName::setDosDirectory | ( | const IlString & | string, |
int | end = -1 , |
||
int | start = 0 |
||
) |
Sets the string string, in DOS format, as the directory part of this
.
The parameters end and start let you restrict the string to set.
If end has the value -1 then the string is used until its end; otherwise end is the position of the first character after the substring.
The parameter start defines the beginning of the substring.
Note: This member function also interprets the UNIX format.
string | A const reference to an IlString . |
end | An int . The default value is -1. |
start | An int . The default value is 0. |
void IlPathName::setDosDirName | ( | const IlString & | string, |
int | end = -1 , |
||
int | start = 0 |
||
) |
Sets the string string, in DOS format, as the dirname (device + directory) part of this
.
The parameters end and start let you restrict the string to set.
If end has the value -1 then the string is used until its end; otherwise end is the position of the first character after the substring.
The parameter start defines the beginning of the substring.
Note: This member function also interprets the UNIX format.
string | A const reference to an IlString . |
end | An int . The default value is -1. |
start | An int . The default value is 0. |
void IlPathName::setDosValue | ( | const IlString & | string, |
int | end = -1 , |
||
int | start = 0 |
||
) |
Sets the string string as the value of this
.
This function interprets the string in a DOS format.
The parameters end and start let you restrict the string to set.
If end has the value -1 then the string is used until its end; otherwise end is the position of the first character after the substring.
The parameter start defines the beginning of the substring.
Note: This member function also interprets the UNIX format.
string | A const reference to an IlString . |
end | An int . The default value is -1. |
start | An int . The default value is 0. |
void IlPathName::setExtension | ( | const IlString & | string, |
int | end = -1 , |
||
int | start = 0 |
||
) |
Sets the string string as the extension part of this
.
The parameters end and start let you restrict the string to set.
If end has the value -1 then the string is used until its end; otherwise end is the position of the first character after the substring.
The parameter start defines the beginning of the substring.
string | A const reference to an IlString . |
end | An int . The default value is -1. |
start | An int . The default value is 0. |
void IlPathName::setFileName | ( | const IlString & | string, |
int | end = -1 , |
||
int | start = 0 |
||
) |
Sets the string string as the file name part of this
.
The parameters end and start let you restrict the string to set.
If end has the value -1 then the string is used until its end; otherwise end is the position of the first character after the substring.
The parameter start defines the beginning of the substring.
string | A const reference to an IlString . |
end | An int . The default value is -1. |
start | An int . The default value is 0. |
void IlPathName::setUnixDirectory | ( | const IlString & | string, |
int | end = -1 , |
||
int | start = 0 |
||
) |
Sets the string string, in Unix format, as the directory part of this
.
The parameters end and start let you restrict the string to set.
If end has the value -1 then the string is used until its end; otherwise end is the position of the first character after the substring.
The parameter start defines the beginning of the substring.
Note: This member function does not interpret the DOS format.
string | A const reference to an IlString . |
end | An int . The default value is -1. |
start | An int . The default value is 0. |
void IlPathName::setUnixDirName | ( | const IlString & | string, |
int | end = -1 , |
||
int | start = 0 |
||
) |
Sets the string string, in Unix format, as the dirname (device + directory) part of this
.
The parameters end and start let you restrict the string to set.
If end has the value -1 then the string is used until its end; otherwise end is the position of the first character after the substring.
The parameter start defines the beginning of the substring.
Note: This member function does not interpret the DOS format.
string | A const reference to an IlString . |
end | An int . The default value is -1. |
start | An int . The default value is 0. |
void IlPathName::setUnixValue | ( | const IlString & | string, |
int | end = -1 , |
||
int | start = 0 |
||
) |
Sets the string string as the value of this
.
This function interprets the string in a UNIX format.
The parameters end and start let you restrict the string to set.
If end has the value -1 then the string is used until its end; otherwise end is the position of the first character after the substring.
The parameter start defines the beginning of the substring.
Note: This member function does not interpret the DOS format.
string | A const reference to an IlString . |
end | An int . The default value is -1. |
start | An int . The default value is 0. |
void IlPathName::setValue | ( | const IlString & | string, |
int | end = -1 , |
||
IlPathType | type = IlSystemPathType , |
||
int | start = 0 |
||
) |
Sets the string string as the value of this
.
The parameters end and start let you restrict the string to set.
If end has the value -1 then the string is used until its end; otherwise end is the position of the first character after the substring.
The parameter start defines the beginning of the substring.
You may also specify in which syntax (Dos or Unix) is the string string. By Default the value is IlvSystemPathType
that is the syntax of the system.
string | A const reference to an IlString . |
end | An int . The default value is -1. |
type | An IlPathType . The default value is IlSystemPathType , that is the syntax of the system. |
start | An int . The default value is 0. |
© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.