4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
12 #ifndef CODE_CONVERT_H
13 #define CODE_CONVERT_H
15 #include <X11/Xft/Xft.h>
18 inline XftChar32 * wcsToXftChar32StrFast(wchar_t * wcs)
20 return reinterpret_cast<XftChar32 *>(wcs);
24 inline XftChar32 * wcsToXftChar32StrFast(wchar_t const * wcs)
26 return reinterpret_cast<XftChar32 *>(const_cast<wchar_t *>(wcs));
30 inline XftChar32 wcToXftChar32(wchar_t wc)
32 return static_cast<XftChar32>(wc);