mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
e28225d79a
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7639 a592a061-630c-0410-9148-cb99ea01b6c8
37 lines
629 B
C++
37 lines
629 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 FcChar32 * wcsToFcChar32StrFast(wchar_t * wcs)
|
|
{
|
|
return reinterpret_cast<FcChar32*>(wcs);
|
|
}
|
|
|
|
|
|
inline FcChar32 const * wcsToFcChar32StrFast(wchar_t const * wcs)
|
|
{
|
|
return reinterpret_cast<FcChar32 const *>(wcs);
|
|
}
|
|
|
|
|
|
inline FcChar32 wcToFcChar32(wchar_t wc)
|
|
{
|
|
return static_cast<FcChar32>(wc);
|
|
}
|
|
|
|
|
|
#endif
|