2 * \file forms_gettext.C
3 * Copyright 2002 the LyX Team
4 * Read the file COPYING
6 * \author Angus Leeming, leeming@lyx.org
11 #pragma implementation
14 #include "forms_gettext.h"
16 #include FORMS_H_LOCATION
18 // Extract shortcut from <ident>|<shortcut> string
19 char const * flyx_shortcut_extract(char const * sc)
21 // Find '|' in the sc and return the string after that.
22 register char const * sd = sc;
23 while (sd[0]!= 0 && sd[0] != '|') ++sd;
33 // Extract identifier from <ident>|<shortcut> string
34 char const * flyx_ident_extract(char const * sc)
36 register char const * se = sc;
37 while (se[0]!= 0 && se[0] != '|') ++se;
39 if (se[0] == 0) return sc;
41 char * sb = new char[se - sc + 1];
43 register char const * sd = sc;