3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
15 #include "support/lstrings.h"
17 using lyx::support::split;
22 /// Extract shortcut from "<identifer>|#<shortcut>" string
23 string const id_sc::shortcut(string const & idsc)
25 string sc = split(idsc, '|');
26 if (!sc.empty() && sc[0] == '#')
32 /// Extract identifier from "<identifer>|#<shortcut>" string
33 string const id_sc::id(string const & idsc)