]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/misc.hh
misc.cc: remove utf8_char_len, change callers.
[lilypond.git] / lily / include / misc.hh
index 0491b5b4a91cd2f90d98a1edbea2d4d00eaea7ac..18f996ad4b8b07a0847e6ffc96da4dfedc9337c5 100644 (file)
@@ -53,12 +53,17 @@ linear_interpolate (Real x, Real x1, Real x2, Real y1, Real y2)
          + (x - x1) / (x2 - x1) * y2;
 }
 
+inline Real
+normalize (Real x, Real x1, Real x2)
+{
+  return (x - x1) / (x2 - x1);
+}
+
 Real directed_round (Real f, Direction d);
 
 Real peak_around (Real epsilon, Real threshold, Real x);
 Real convex_amplifier (Real standard_x, Real increase_factor, Real x);
 string camel_case_to_lisp_identifier (string in);
-vsize utf8_char_len (char);
 
 #endif