25 #define LT_UTIL_MAX_PATH _MAX_PATH
27 #define LT_UTIL_MAX_PATH 2048
73 LTFileSpec(
const char *p1,
const char *p2,
const char *p3,
83 LTFileSpec(
const wchar_t *p1,
const wchar_t *p2);
84 LTFileSpec(
const wchar_t *p1,
const wchar_t *p2,
const wchar_t *p3);
135 bool empty(
void)
const;
140 const char *
utf8(
void)
const;
148 const char *
n_str(
void)
const;
156 const wchar_t *
w_str(
void)
const;
236 void init(
const char *p1,
const char *p2,
const char *p3);
244 mutable char *m_pathA;
245 mutable wchar_t *m_pathW;
251 #endif // LT_FILESPEC_H
const char * utf8(void) const
Function to convert the path to a UTF8 format.
LTFileSpec & operator=(const LTFileSpec &that)
assignment operator
const char * basename(void) const
Return the base filename.
#define LT_END_NAMESPACE(theNameSpace)
compiler does not support namespaces
LTFileSpec removeSuffix() const
remove the suffix (extension)
Include file for all LizardTech sources.
~LTFileSpec(void)
destructor
LTFileSpec dirname(void) const
Return the parent directory.
EncodingType
native constructor
void init(const char *p1, const char *p2, const char *p3)
Initialization from UTF8 strings.
Represents a file or directory path.
LTFileSpec replaceSuffix(const char *ext) const
replaces suffix (extension)
unsigned short lt_uint16
unsigned 16-bit integer
LTFileSpec(void)
default constructor
bool operator==(const LTFileSpec &fs) const
equality operator
const char * getSuffix() const
returns suffix (in utf8)
bool operator!=(const LTFileSpec &fs) const
inequality operator
#define LT_BEGIN_NAMESPACE(theNameSpace)
compiler does not support namespaces
const wchar_t * w_str(void) const
Function to convert the path to Wide format.
bool absolute() const
returns true if path is absolute, false if relative
const char * n_str(void) const
Function to convert the path to native format.
Declaration of standard system headers in a C-interface.
size_t getPrefixLength(void) const