mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-28 20:45:47 +00:00
6d49cbadf0
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7997 a592a061-630c-0410-9148-cb99ea01b6c8
37 lines
650 B
C++
37 lines
650 B
C++
// -*- C++ -*-
|
|
/**
|
|
* \file codeConvert.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Huang Ying
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef CODE_CONVERT_H
|
|
#define CODE_CONVERT_H
|
|
|
|
#include <X11/Xft/Xft.h>
|
|
|
|
|
|
inline XftChar32 * wcsToXftChar32StrFast(wchar_t * wcs)
|
|
{
|
|
return reinterpret_cast<XftChar32 *>(wcs);
|
|
}
|
|
|
|
|
|
inline XftChar32 * wcsToXftChar32StrFast(wchar_t const * wcs)
|
|
{
|
|
return reinterpret_cast<XftChar32 *>(const_cast<wchar_t *>(wcs));
|
|
}
|
|
|
|
|
|
inline XftChar32 wcToXftChar32(wchar_t wc)
|
|
{
|
|
return static_cast<XftChar32>(wc);
|
|
}
|
|
|
|
|
|
#endif
|