#include <FXGenericTools.h>
fastlen | How much stack space to use before resorting to the allocator |
UNICODE
is defined, then it converts to UTF-16 otherwise it returns the FXString as-is. In all cases the terminating null of the source FXString is preserved.If you are converting a path which can utilise the \\?\ escape sequence to enable 32,768 character long paths, pass true for the isPath parameter to the constructor.
Example:
CreateFile(FXUnicodify<>(path, true).buffer(), ...
Public Member Functions | |
FXUnicodify (bool isPath=false) | |
FXUnicodify (const FXString &str, bool isPath=false) | |
const FXchar * | buffer () const throw () |
const FXchar * | buffer (const FXString &str) const throw () |
FXint | length () const throw () |
FXint | length (const FXString &str) const throw () |