2 * \file qstring_helpers.cpp
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
7 * \author Jürgen Spitzmüller
9 * Full author contact details are available in file CREDITS.
14 #include "qstring_helpers.h"
24 docstring const qstring_to_ucs4(QString const & qstr)
26 QVector<uint> const ucs4 = qstr.toUcs4();
27 return docstring(ucs4.begin(), ucs4.end());
31 string const fromqstr(QString const & str)
33 return str.isEmpty() ? string() : string(str.toUtf8());