]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/scalar.cc
release: 0.1.44
[lilypond.git] / flower / scalar.cc
index 9d7ef229570c1076470645444e05224af8cdc226..f28e7699ed0a5718d70289f78ffa726f8a73e2e1 100644 (file)
@@ -22,7 +22,7 @@ Scalar::operator Rational ()
   if (p == -1)
     return int (*this);
   
-  String s2 = right_str (len()-p-1);
+  String s2 = right_str (length_i ()-p-1);
   String s1 = left_str (p);
 
   return Rational (s1.value_i (), s2.value_i ());
@@ -32,12 +32,12 @@ bool
 Scalar::isnum_b () const
 {
   int conv = false;
-  if (len ())
+  if (length_i ())
     {
       long l =0;
       conv = sscanf (strh_.ch_C (), "%ld", &l);
     }
-  return len() && conv;
+  return length_i () && conv;
 }
 
 Scalar::operator Real()
@@ -58,7 +58,7 @@ Scalar::operator int()
 
 Scalar::operator bool () const
 {
-  if (!len ())
+  if (!length_i ())
     return false;
   if (*this == "0")
     return false;