For portability between Unix and Windows systems and ease of use in internationalized environments, the SDK uses the class LTFileSpec
to represent file names and paths.
In all cases where the SDK requires use of a file name, for example as a function parameter, an LTFileSpec
will be used. It is the application’s responsibility to translate filenames from the app-level representation, for example a char*
, into an LTFileSpec
.
The LTFileSpec
class provides the following features:
LTFileSpec
from a directory path and file name, as represented in a variety of formats (multibyte, UTF-8, wchar_t
, etc.)LTFileSpec
to a variety of formatsdirname()
and basename()