mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 21:49:51 +00:00
b538a4c8fe
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7675 a592a061-630c-0410-9148-cb99ea01b6c8
33 lines
665 B
C
33 lines
665 B
C
/**
|
|
* \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>
|
|
|
|
#include "forms_gettext.h"
|
|
|
|
#include "support/lstrings.h"
|
|
|
|
namespace support = lyx::support;
|
|
|
|
|
|
// Extract shortcut from "<identifier>|<shortcut>" string
|
|
string const scex(string const & str)
|
|
{
|
|
return support::split(str, '|');
|
|
}
|
|
|
|
|
|
// Extract identifier from "<identifier>|<shortcut>" string
|
|
string const idex(string const & str)
|
|
{
|
|
string identifier;
|
|
support::split(str, identifier, '|');
|
|
return identifier;
|
|
}
|