14 LT_BEGIN_LIZARDTECH_NAMESPACE
19 #define LT_UTIL_MAX_PATH _MAX_PATH
21 #define LT_UTIL_MAX_PATH 2048
24 #if defined(LT_OS_WIN) && !defined(_NATIVE_WCHAR_T_DEFINED) && !defined (SWIG)
26 #define WCHAR_INTERNAL __wchar_t
28 #define WCHAR_INTERNAL wchar_t
74 LTFileSpec(
const char *p1,
const char *p2,
const char *p3,
243 void init(
const char *p1,
const char *p2,
const char *p3);
250 mutable char *m_pathA;
255 LT_END_LIZARDTECH_NAMESPACE
257 #undef WCHAR_INTERNAL
Include file for all LizardTech sources.
Declaration of standard system headers in a C-interface.
unsigned short lt_uint16
unsigned 16-bit integer
Represents a file or directory path.
~LTFileSpec(void)
destructor
size_t getPrefixLength(void) const
bool absolute() const
returns true if path is absolute, false if relative
LTFileSpec(const wchar_t *p1, const wchar_t *p2, const wchar_t *p3)
bool operator>(const LTFileSpec &fs) const
const char * basename(void) const
Return the base filename.
LTFileSpec(const char *p1, EncodingType encoding=NATIVE)
LTFileSpec(const wchar_t *p1)
wchar constructor
LTFileSpec(const lt_uint16 *p1, const lt_uint16 *p2, const lt_uint16 *p3)
LTFileSpec(const LTFileSpec &p1, const char *p2, const char *p3, EncodingType encoding)
const char * utf8(void) const
Function to convert the path to a UTF8 format.
LTFileSpec(const char *p1, const char *p2, const char *p3, EncodingType encoding=NATIVE)
LTFileSpec(const LTFileSpec &p1, const wchar_t *p2, const wchar_t *p3)
bool operator==(const LTFileSpec &fs) const
equality operator
bool operator!=(const LTFileSpec &fs) const
inequality operator
LTFileSpec(const lt_uint16 *p1, const lt_uint16 *p2)
LTFileSpec(const LTFileSpec &p1, const char *p2, EncodingType encoding)
bool operator>=(const LTFileSpec &fs) const
LTFileSpec(const LTFileSpec &p1, const LTFileSpec &p2, const char *p3, EncodingType encoding)
bool operator<(const LTFileSpec &fs) const
LTFileSpec replaceSuffix(const char *ext) const
replaces suffix (extension)
LTFileSpec(void)
default constructor
LTFileSpec removeSuffix() const
remove the suffix (extension)
void init(const char *p1, const char *p2, const char *p3)
Initialization from UTF8 strings.
LTFileSpec(const LTFileSpec &p1, const LTFileSpec &p2, const wchar_t *p3)
const char * getSuffix() const
returns suffix (in utf8)
LTFileSpec(const LTFileSpec &p1, const LTFileSpec &p2, const LTFileSpec &p3)
LTFileSpec(const wchar_t *p1, const wchar_t *p2)
LTFileSpec(const lt_uint16 *path)
UTF16 constructor.
LTFileSpec(const char *p1, const char *p2, EncodingType encoding=NATIVE)
LTFileSpec(const LTFileSpec &p1, const LTFileSpec &p2, const lt_uint16 *p3)
LTFileSpec(const LTFileSpec &p1)
EncodingType
native constructor
LTFileSpec(const LTFileSpec &p1, const lt_uint16 *p2, const lt_uint16 *p3)
LTFileSpec & operator=(const LTFileSpec &that)
assignment operator
LTFileSpec(const LTFileSpec &p1, const LTFileSpec &p2)
const char * n_str(void) const
Function to convert the path to native format.
LTFileSpec(const LTFileSpec &p1, const wchar_t *p2)
LTFileSpec(const LTFileSpec &p1, const lt_uint16 *p2)
LTFileSpec dirname(void) const
Return the parent directory.
bool operator<=(const LTFileSpec &fs) const
const wchar_t * w_str(void) const
Function to convert the path to Wide format.