]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/direction.cc
Vincent's patch for titles.
[lilypond.git] / flower / direction.cc
index aeddc311a27d733bcbf7321fcd4dce837018d932..71e700893eaffc35774e8083a6eb725fb39b2825 100644 (file)
@@ -1,25 +1,26 @@
-/*   
+/*
   direction.cc --  implement Direction
-  
+
   source file of the GNU LilyPond music typesetter
-  
-  (c) 1998--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
-  
- */
+
+  (c) 1998--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+*/
 
 #include "direction.hh"
 
+#include "string.hh"
+
 String
-direction_str (Direction d, Axis a)
+direction_string (Direction d, Axis a)
 {
-  String s("center");
+  String s ("center");
   if (a == Y_AXIS)
     {
-       s =( d == UP ? "up" : "down");
+      s = (d == UP ? "up" : "down");
     }
   else if (a == X_AXIS)
     {
-      s = (d == LEFT ? "left" : "right" );
+      s = (d == LEFT ? "left" : "right");
     }
   return s;
 }