2002-06-13 13:43:51 +00:00
|
|
|
/**
|
|
|
|
* \file forms_gettext.C
|
2002-09-05 15:14:23 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2002-06-13 13:43:51 +00:00
|
|
|
*
|
2002-09-05 14:10:50 +00:00
|
|
|
* \author Angus Leeming
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS
|
2002-06-13 13:43:51 +00:00
|
|
|
*/
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma implementation
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "forms_gettext.h"
|
2002-11-29 09:26:53 +00:00
|
|
|
#include "support/lstrings.h"
|
2002-06-13 13:43:51 +00:00
|
|
|
|
2002-11-29 09:26:53 +00:00
|
|
|
// Extract shortcut from "<identifier>|<shortcut>" string
|
|
|
|
string const scex(string const & str)
|
2002-06-13 13:43:51 +00:00
|
|
|
{
|
2002-11-29 09:26:53 +00:00
|
|
|
return split(str, '|');
|
2002-06-13 13:43:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-11-29 09:26:53 +00:00
|
|
|
// Extract identifier from "<identifier>|<shortcut>" string
|
|
|
|
string const idex(string const & str)
|
2002-06-13 13:43:51 +00:00
|
|
|
{
|
2002-11-29 09:26:53 +00:00
|
|
|
string identifier;
|
|
|
|
split(str, identifier, '|');
|
|
|
|
return identifier;
|
2002-06-13 13:43:51 +00:00
|
|
|
}
|