]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/lilypond-version.cc
* lily/beaming-info.cc (beamify): new function: read beatLength
[lilypond.git] / lily / lilypond-version.cc
index e12dbcbea865d94aa526fd19e79c70c21f1f22b4..c9c055922576d1ce345b7ac34c8c169861686bb6 100644 (file)
@@ -10,7 +10,7 @@
 
 #include "lilypond-input-version.hh"
 #include "string-convert.hh"
-#include "std-vector.hh"
+#include "misc.hh"
 
 Lilypond_version::Lilypond_version (int major, int minor, int patch)
 {
@@ -19,14 +19,14 @@ Lilypond_version::Lilypond_version (int major, int minor, int patch)
   patch_ = patch;
 }
 
-Lilypond_version::Lilypond_version (std::string str)
+Lilypond_version::Lilypond_version (string str)
 {
   major_ = 0; 
   minor_ = 0;
   patch_ = 0;
   
-  std::vector<std::string> version;
-  version = String_convert::split (str, '.');
+  vector<string> version;
+  version = string_split (str, '.');
 
   if (version.size () > 0 && isdigit (version[0][0]))
     major_ = String_convert::dec2int (version[0]);
@@ -42,10 +42,12 @@ Lilypond_version::Lilypond_version (std::string str)
     extra_patch_string_ = version[3];
 }
 
-std::string
+string
 Lilypond_version::to_string () const
 {
-  return std::to_string (major_) + "." + std::to_string (minor_) + "." + std::to_string (patch_);
+  return ::to_string (major_)
+    + "." + ::to_string (minor_)
+    + "." + ::to_string (patch_);
 }
 
 Lilypond_version::operator int () const