2 * \file forms_gettext.C
3 * Read the file COPYING
5 * \author Angus Leeming
7 * Full author contact details are available in file CREDITS
12 #pragma implementation
15 #include "forms_gettext.h"
17 #include FORMS_H_LOCATION
19 // Extract shortcut from <ident>|<shortcut> string
20 char const * flyx_shortcut_extract(char const * sc)
22 // Find '|' in the sc and return the string after that.
23 register char const * sd = sc;
24 while (sd[0]!= 0 && sd[0] != '|') ++sd;
34 // Extract identifier from <ident>|<shortcut> string
35 char const * flyx_ident_extract(char const * sc)
37 register char const * se = sc;
38 while (se[0]!= 0 && se[0] != '|') ++se;
40 if (se[0] == 0) return sc;
42 char * sb = new char[se - sc + 1];
44 register char const * sd = sc;