// -*- C++ -*-
/**
* \file forms_gettext.h
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
* \author Angus Leeming
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
#ifndef FORMS_GETTEXT_H
#define FORMS_GETTEXT_H
-#ifdef __GNUG__
-#pragma interface
-#endif
+#include <string>
-#include "forms_fwd.h"
+namespace lyx {
+namespace frontend {
-/// Extract shortcut from <ident>|<shortcut> string
-char const * flyx_shortcut_extract(char const * sc);
-/// Shortcut for flyx_shortcut_extract
-#define scex flyx_shortcut_extract
+/// Extract shortcut from "<identifer>|<shortcut>" string
+std::string const scex(std::string const &);
-/// Extract shortcut from <ident>|<shortcut> string
-char const * flyx_ident_extract(char const * sc);
-/// Shortcut for flyx_ident_extract
-#define idex flyx_ident_extract
+/// Extract identifier from "<identifer>|<shortcut>" string
+std::string const idex(std::string const &);
+
+} // namespace frontend
+} // namespace lyx
#endif // FORMS_GETTEXT_H