25 #define LT_UTIL_MAX_PATH _MAX_PATH
27 #define LT_UTIL_MAX_PATH 2048
72 LTFileSpec(
const char *p1,
const char *p2,
const char *p3,
82 LTFileSpec(
const wchar_t *p1,
const wchar_t *p2);
83 LTFileSpec(
const wchar_t *p1,
const wchar_t *p2,
const wchar_t *p3);
134 bool empty(
void)
const;
139 const char *
utf8(
void)
const;
147 const char *
n_str(
void)
const;
155 const wchar_t *
w_str(
void)
const;
235 void init(
const char *p1,
const char *p2,
const char *p3);
243 mutable char *m_pathA;
244 mutable wchar_t *m_pathW;
250 #endif // LT_FILESPEC_H
size_t getPrefixLength(void) const
const char * n_str(void) const
Function to convert the path to native format.
Represents a file or directory path.
LTFileSpec dirname(void) const
Return the parent directory.
EncodingType
native constructor
~LTFileSpec(void)
destructor
#define LT_END_NAMESPACE(theNameSpace)
compiler does not support namespaces
Include file for all LizardTech sources.
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.
LTFileSpec removeSuffix() const
remove the suffix (extension)
const char * getSuffix() const
returns suffix (in utf8)
LTFileSpec replaceSuffix(const char *ext) const
replaces suffix (extension)
unsigned short lt_uint16
unsigned 16-bit integer
void init(const char *p1, const char *p2, const char *p3)
Initialization from UTF8 strings.
bool absolute() const
returns true if path is absolute, false if relative
#define LT_BEGIN_NAMESPACE(theNameSpace)
compiler does not support namespaces
bool operator!=(const LTFileSpec &fs) const
inequality operator
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
bool operator==(const LTFileSpec &fs) const
equality operator