*
* \author Angus Leeming
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
#include <config.h>
-#ifdef __GNUG__
-#pragma implementation
-#endif
#include "frnt_lang.h"
#include "gettext.h"
#include "language.h"
-#include <iostream>
+
#include <algorithm>
+
+using std::string;
using std::vector;
+
+namespace lyx {
+namespace frontend {
+
namespace {
-struct Sorter {
- bool operator()(frnt::LanguagePair const & lhs,
- frnt::LanguagePair const & rhs) const {
+class Sorter
+ : public std::binary_function<LanguagePair,
+ LanguagePair, bool>
+{
+public:
+ bool operator()(LanguagePair const & lhs,
+ LanguagePair const & rhs) const {
return lhs.first < rhs.first;
}
};
} // namespace anon
-namespace frnt {
vector<LanguagePair> const getLanguageData(bool character_dlg)
{
return langs;
}
-} // namespace frnt
+} // namespace frontend
+} // namespace lyx