2 misc.cc -- implement various stuff
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 Jan Nieuwenhuizen <janneke@gnu.org>
12 #include "std-string.hh"
15 Return the 2-log, rounded down
35 return log (x) / log (2.0);
39 split_string (string s, char c)
48 s = s.substr (1, s.length () -1);
55 rv.push_back (s.substr (0, i));
56 s = s.substr (i, s.length () - i);
64 directed_round (Real f, Direction d)