lyx_mirror/src/frontends/xforms/forms_gettext.C

33 lines
656 B
C++
Raw Normal View History

/**
* \file forms_gettext.C
* 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
*/
#include <config.h>
#ifdef __GNUG__
#pragma implementation
#endif
#include "forms_gettext.h"
#include "support/lstrings.h"
// Extract shortcut from "<identifier>|<shortcut>" string
string const scex(string const & str)
{
return split(str, '|');
}
// Extract identifier from "<identifier>|<shortcut>" string
string const idex(string const & str)
{
string identifier;
split(str, identifier, '|');
return identifier;
}