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 * basename(void) const
Return the base filename.
void init(const char *p1, const char *p2, const char *p3)
Initialization from UTF8 strings.
~LTFileSpec(void)
destructor
EncodingType
native constructor
Represents a file or directory path.
Declaration of standard system headers in a C-interface.
const wchar_t * w_str(void) const
Function to convert the path to Wide format.
LTFileSpec(void)
default constructor
const char * getSuffix() const
returns suffix (in utf8)
size_t getPrefixLength(void) const
#define LT_BEGIN_NAMESPACE(theNameSpace)
compiler does not support namespaces
LTFileSpec dirname(void) const
Return the parent directory.
unsigned short lt_uint16
unsigned 16-bit integer
bool operator==(const LTFileSpec &fs) const
equality operator
const char * utf8(void) const
Function to convert the path to a UTF8 format.
LTFileSpec & operator=(const LTFileSpec &that)
assignment operator
const char * n_str(void) const
Function to convert the path to native format.
bool operator!=(const LTFileSpec &fs) const
inequality operator
LTFileSpec removeSuffix() const
remove the suffix (extension)
#define LT_END_NAMESPACE(theNameSpace)
compiler does not support namespaces
bool absolute() const
returns true if path is absolute, false if relative
Include file for all LizardTech sources.
LTFileSpec replaceSuffix(const char *ext) const
replaces suffix (extension)