]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/forms_gettext.C
The std::string mammoth path.
[lyx.git] / src / frontends / xforms / forms_gettext.C
1 /**
2  * \file forms_gettext.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Angus Leeming
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10 #include <config.h>
11
12 #include "forms_gettext.h"
13
14 #include "support/lstrings.h"
15
16 namespace support = lyx::support;
17
18 using std::string;
19
20
21 // Extract shortcut from "<identifier>|<shortcut>" string
22 string const scex(string const & str)
23 {
24         return support::split(str, '|');
25 }
26
27
28 // Extract identifier from "<identifier>|<shortcut>" string
29 string const idex(string const & str)
30 {
31         string identifier;
32         support::split(str, identifier, '|');
33         return identifier;
34 }