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.
14 #include "support/lstrings.h"
16 using lyx::support::split;
19 /// Extract shortcut from "<identifer>|#<shortcut>" string
20 string const id_sc::shortcut(string const & idsc)
22 string sc = split(idsc, '|');
23 if (!sc.empty() && sc[0] == '#')
29 /// Extract identifier from "<identifer>|#<shortcut>" string
30 string const id_sc::id(string const & idsc)