24 #define LT_UTIL_MAX_PATH _MAX_PATH
26 #define LT_UTIL_MAX_PATH 2048
29 #if defined(LT_OS_WIN) && !defined(_NATIVE_WCHAR_T_DEFINED) && !defined (SWIG)
31 #define WCHAR_INTERNAL __wchar_t
33 #define WCHAR_INTERNAL wchar_t
79 LTFileSpec(
const char *p1,
const char *p2,
const char *p3,
141 bool empty(
void)
const;
146 const char *
utf8(
void)
const;
154 const char *
n_str(
void)
const;
243 void init(
const char *p1,
const char *p2,
const char *p3);
250 mutable char *m_pathA;
257 #undef WCHAR_INTERNAL
258 #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