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.
6 * \author Angus Leeming
8 * Full author contact details are available in file CREDITS
13 #pragma implementation
16 #include "forms_gettext.h"
18 #include FORMS_H_LOCATION
20 // Extract shortcut from "<ident>|<shortcut>" string
21 char const * scex(char const * sc)
23 // Find '|' in the sc and return the string after that.
24 register char const * sd = sc;
25 while (sd[0]!= 0 && sd[0] != '|') ++sd;
35 // Extract identifier from "<ident>|<shortcut>" string
36 char const * idex(char const * sc)
38 register char const * se = sc;
39 while (se[0]!= 0 && se[0] != '|') ++se;
41 if (se[0] == 0) return sc;
43 char * sb = new char[se - sc + 1];
45 register char const * sd = sc;