]> git.donarmstrong.com Git - lilypond.git/commitdiff
* flower/include/std-string.hh:
authorJan Nieuwenhuizen <janneke@gnu.org>
Sat, 11 Feb 2006 11:35:18 +0000 (11:35 +0000)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sat, 11 Feb 2006 11:35:18 +0000 (11:35 +0000)
* flower/include/std-vector.hh: Finish std:: conversion; move
flower extensions from std:: namespace.  Update users.

* lily/include/lily-proto.hh: Replace Link_array__*_ macros by
their expansion to vector<*>.  Update users.

319 files changed:
ChangeLog
flower/file-name.cc
flower/file-path.cc
flower/getopt-long.cc
flower/include/file-name.hh
flower/include/file-path.hh
flower/include/flower-proto.hh
flower/include/getopt-long.hh
flower/include/international.hh
flower/include/interval-set.hh
flower/include/interval.hh
flower/include/interval.tcc
flower/include/offset.hh
flower/include/parray.hh
flower/include/polynomial.hh
flower/include/pqueue.hh
flower/include/rational.hh
flower/include/real.hh
flower/include/std-string.hh
flower/include/std-vector.hh
flower/include/string-convert.hh
flower/include/warn.hh
flower/international.cc
flower/interval.cc
flower/offset.cc
flower/polynomial.cc
flower/rational.cc
flower/std-string.cc
flower/string-convert.cc
flower/test-std.cc
flower/warn.cc
lily/accidental-engraver.cc
lily/accidental-placement.cc
lily/accidental.cc
lily/align-interface.cc
lily/all-font-metrics.cc
lily/ambitus.cc
lily/audio-element-info.cc
lily/audio-item.cc
lily/auto-beam-engraver.cc
lily/auto-change-iterator.cc
lily/axis-group-interface-scheme.cc
lily/axis-group-interface.cc
lily/bar-engraver.cc
lily/bar-line.cc
lily/beam-concave.cc
lily/beam-engraver.cc
lily/beam-quanting.cc
lily/beam.cc
lily/beaming-info.cc
lily/bezier.cc
lily/binary-source-file.cc
lily/break-algorithm.cc
lily/break-align-interface.cc
lily/break-substitution.cc
lily/change-iterator.cc
lily/chord-name-engraver.cc
lily/chord-tremolo-engraver.cc
lily/clef.cc
lily/cluster-engraver.cc
lily/cluster.cc
lily/coherent-ligature-engraver.cc
lily/collision-engraver.cc
lily/completion-note-heads-engraver.cc
lily/context-def.cc
lily/context-specced-music-iterator.cc
lily/context.cc
lily/custos-engraver.cc
lily/custos.cc
lily/dot-column-engraver.cc
lily/dot-column.cc
lily/dots.cc
lily/drum-note-engraver.cc
lily/drum-note-performer.cc
lily/duration.cc
lily/dynamic-engraver.cc
lily/figured-bass-engraver.cc
lily/file-name-map.cc
lily/fingering-engraver.cc
lily/font-config.cc
lily/font-metric.cc
lily/function-documentation.cc
lily/general-scheme.cc
lily/glissando-engraver.cc
lily/global-ctor.cc
lily/gourlay-breaking.cc
lily/gregorian-ligature-engraver.cc
lily/gregorian-ligature.cc
lily/grid-line-span-engraver.cc
lily/grob-array.cc
lily/grob-info.cc
lily/grob-interface.cc
lily/grob-pq-engraver.cc
lily/grob.cc
lily/hara-kiri-group-spanner.cc
lily/horizontal-bracket-engraver.cc
lily/horizontal-bracket.cc
lily/includable-lexer.cc
lily/include/accidental-interface.hh
lily/include/accidental-placement.hh
lily/include/all-font-metrics.hh
lily/include/audio-column.hh
lily/include/audio-element-info.hh
lily/include/audio-item.hh
lily/include/audio-staff.hh
lily/include/axis-group-engraver.hh
lily/include/axis-group-interface.hh
lily/include/bar-line.hh
lily/include/bar.hh
lily/include/beam.hh
lily/include/beaming.hh
lily/include/bezier.hh
lily/include/binary-source-file.hh
lily/include/book.hh
lily/include/break-algorithm.hh
lily/include/break-align-interface.hh
lily/include/change-iterator.hh
lily/include/coherent-ligature-engraver.hh
lily/include/column-x-positions.hh
lily/include/context-def.hh
lily/include/context.hh
lily/include/dimensions.hh
lily/include/duration.hh
lily/include/engraver-group.hh
lily/include/file-name-map.hh
lily/include/font-metric.hh
lily/include/freetype.hh
lily/include/gourlay-breaking.hh
lily/include/gregorian-ligature-engraver.hh
lily/include/gregorian-ligature.hh
lily/include/grob-array.hh
lily/include/grob-info.hh
lily/include/grob.hh
lily/include/horizontal-bracket.hh
lily/include/includable-lexer.hh
lily/include/input.hh
lily/include/keyword.hh
lily/include/kpath.hh
lily/include/least-squares.hh
lily/include/ligature-engraver.hh
lily/include/lily-guile-macros.hh
lily/include/lily-guile.hh
lily/include/lily-lexer.hh
lily/include/lily-parser.hh
lily/include/lily-proto.hh
lily/include/lily-version.hh
lily/include/lilypond-input-version.hh
lily/include/lilypond-key.hh
lily/include/lookup.hh
lily/include/main.hh
lily/include/midi-item.hh
lily/include/midi-stream.hh
lily/include/midi-walker.hh
lily/include/misc.hh
lily/include/modified-font-metric.hh
lily/include/moment.hh
lily/include/music-iterator.hh
lily/include/note-collision.hh
lily/include/open-type-font.hh
lily/include/output-def.hh
lily/include/pango-font.hh
lily/include/paper-column-engraver.hh
lily/include/paper-outputter.hh
lily/include/paper-score.hh
lily/include/performance.hh
lily/include/performer-group.hh
lily/include/pitch.hh
lily/include/pointer-group-interface.hh
lily/include/prob.hh
lily/include/relocate.hh
lily/include/rest.hh
lily/include/score-engraver.hh
lily/include/score.hh
lily/include/separating-group-spanner.hh
lily/include/simple-spacer.hh
lily/include/skyline.hh
lily/include/slur-configuration.hh
lily/include/slur-scoring.hh
lily/include/source-file.hh
lily/include/source.hh
lily/include/spacing-spanner.hh
lily/include/spanner.hh
lily/include/stem.hh
lily/include/stream.hh
lily/include/system.hh
lily/include/text-metrics.hh
lily/include/tfm-reader.hh
lily/include/tfm.hh
lily/include/tie-column-format.hh
lily/include/tie-configuration.hh
lily/include/tie-formatting-problem.hh
lily/include/translator-dispatch-list.hh
lily/include/translator-group.hh
lily/include/translator.hh
lily/include/translator.icc
lily/include/tuplet-bracket.hh
lily/include/type-swallow-translator.hh
lily/input-scheme.cc
lily/input-smob.cc
lily/input.cc
lily/key-signature-interface.cc
lily/laissez-vibrer-engraver.cc
lily/laissez-vibrer-tie-column.cc
lily/least-squares.cc
lily/lexer.ll
lily/ligature-bracket-engraver.cc
lily/ligature-engraver.cc
lily/lily-guile.cc
lily/lily-lexer.cc
lily/lily-parser-scheme.cc
lily/lily-parser.cc
lily/lily-version.cc
lily/lilypond-key.cc
lily/lilypond-version.cc
lily/line-interface.cc
lily/lookup.cc
lily/lyric-engraver.cc
lily/lyric-performer.cc
lily/main.cc
lily/melody-spanner.cc
lily/mensural-ligature-engraver.cc
lily/midi-item.cc
lily/midi-stream.cc
lily/misc.cc
lily/modified-font-metric.cc
lily/moment.cc
lily/multi-measure-rest-engraver.cc
lily/music-function.cc
lily/new-fingering-engraver.cc
lily/new-lyric-combine-music-iterator.cc
lily/note-collision.cc
lily/note-head.cc
lily/note-heads-engraver.cc
lily/note-name-engraver.cc
lily/note-performer.cc
lily/note-spacing.cc
lily/open-type-font-scheme.cc
lily/open-type-font.cc
lily/output-def.cc
lily/output-property-engraver.cc
lily/pango-font.cc
lily/pango-select.cc
lily/paper-book.cc
lily/paper-column.cc
lily/paper-outputter-scheme.cc
lily/paper-outputter.cc
lily/paper-score.cc
lily/parser.yy
lily/part-combine-iterator.cc
lily/performance.cc
lily/pfb.cc
lily/phrasing-slur-engraver.cc
lily/piano-pedal-engraver.cc
lily/piano-pedal-performer.cc
lily/pitch.cc
lily/pitched-trill-engraver.cc
lily/pointer-group-interface.cc
lily/prob.cc
lily/program-option.cc
lily/relative-octave-check.cc
lily/relocate.cc
lily/repeat-acknowledge-engraver.cc
lily/rest-collision-engraver.cc
lily/rest-collision.cc
lily/rest.cc
lily/rhythmic-column-engraver.cc
lily/script-column-engraver.cc
lily/script-column.cc
lily/script-engraver.cc
lily/separating-group-spanner.cc
lily/separating-line-group-engraver.cc
lily/side-position-interface.cc
lily/simple-spacer-scheme.cc
lily/simple-spacer.cc
lily/skyline.cc
lily/slur-configuration.cc
lily/slur-engraver.cc
lily/slur-scoring.cc
lily/slur.cc
lily/source-file.cc
lily/source.cc
lily/spacing-determine-loose-columns.cc
lily/spacing-engraver.cc
lily/spacing-loose-columns.cc
lily/spacing-spanner.cc
lily/span-arpeggio-engraver.cc
lily/span-bar-engraver.cc
lily/span-bar.cc
lily/span-dynamic-performer.cc
lily/spanner.cc
lily/staff-performer.cc
lily/staff-spacing.cc
lily/stanza-number-align-engraver.cc
lily/stem.cc
lily/sustain-pedal.cc
lily/system-start-delimiter-engraver.cc
lily/system.cc
lily/tab-note-heads-engraver.cc
lily/template5.cc
lily/text-engraver.cc
lily/text-interface.cc
lily/text-metrics.cc
lily/tfm-reader.cc
lily/tfm.cc
lily/tie-column.cc
lily/tie-engraver.cc
lily/tie-formatting-problem.cc
lily/tie-performer.cc
lily/time-signature.cc
lily/translator-group.cc
lily/translator.cc
lily/ttf.cc
lily/tuplet-bracket.cc
lily/tuplet-engraver.cc
lily/vaticana-ligature-engraver.cc
lily/vaticana-ligature.cc
lily/vertical-align-engraver.cc
lily/volta-bracket.cc
lily/volta-repeat-iterator.cc

index 093249f2873ae5c9d2a59c194793dc8d959e4a7c..c4a39c8147ec45a8cce9983f434dd80bd8001c6e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2006-02-11  Jan Nieuwenhuizen  <janneke@gnu.org>
+
+       * flower/include/std-string.hh: 
+       * flower/include/std-vector.hh: Finish std:: conversion; move
+       flower extensions from std:: namespace.  Update users.
+
+       * lily/include/lily-proto.hh: Replace Link_array__*_ macros by
+       their expansion to vector<*>.  Update users.
+
 2006-02-10  Graham Percival  <gpermus@gmail.com>
 
        * Documentation/user/invoking.itely: add example to File structure.
index 3ec427640bb7b673597b3673875c562027a08472..e0ecc58e920c2b9f19887986231932dcf74bb9de 100644 (file)
@@ -36,8 +36,8 @@ using namespace std;
 #endif
 
 #ifdef __CYGWIN__
-static std::string
-dos_to_posix (std::string file_name)
+static string
+dos_to_posix (string file_name)
 {
   char buf[PATH_MAX] = "";
   char *s = file_name.get_copy_str0 ();
@@ -55,34 +55,34 @@ dos_to_posix (std::string file_name)
 #if 0
 static /* avoid warning */
 #endif 
-std::string
-slashify (std::string file_name)
+string
+slashify (string file_name)
 {
   replace_all (file_name, '\\', '/');
-  replace_all (file_name, std::string ("//"), "/");
+  replace_all (file_name, string ("//"), "/");
   return file_name;
 }
 
 /* Join components to full file_name. */
-std::string
+string
 File_name::to_string () const
 {
-  std::string s;
+  string s;
   if (!root_.empty ())
-    s = root_ + std::to_string (ROOTSEP);
+    s = root_ + ::to_string (ROOTSEP);
   if (!dir_.empty ())
     {
       s += dir_;
       if (!base_.empty () || !ext_.empty ())
-       s += std::to_string (DIRSEP);
+       s += ::to_string (DIRSEP);
     }
   s += base_;
   if (!ext_.empty ())
-    s += std::to_string (EXTSEP) + ext_;
+    s += ::to_string (EXTSEP) + ext_;
   return s;
 }
 
-File_name::File_name (std::string file_name)
+File_name::File_name (string file_name)
 {
 #ifdef __CYGWIN__
   /* All system functions would work, even if we do not convert to
index c896a650feb4621edec08c82218d5e34ba0ecd3d..0b1b979b6b3292c703ef138d9d1acd048a6f4b51 100644 (file)
@@ -13,7 +13,6 @@
 
 #include <cstdio>
 #include <cerrno>
-using namespace std;
 
 #include "config.hh"
 #if HAVE_SYS_STAT_H
@@ -31,7 +30,7 @@ using namespace std;
 #define PATHSEP ':'
 #endif
 
-std::vector<std::string>
+vector<string>
 File_path::directories () const
 {
   return dirs_;
@@ -44,7 +43,7 @@ File_path::directories () const
 
 #include <algorithm>
 void
-File_path::parse_path (std::string p)
+File_path::parse_path (string p)
 {
   ssize len;
   while ((len = p.length ()))
@@ -53,12 +52,12 @@ File_path::parse_path (std::string p)
       if (i == NPOS)
        i = len;
       append (p.substr (0, i));
-      p = p.substr (std::min (len, i + 1));
+      p = p.substr (min (len, i + 1));
     }
 }
 
 bool
-is_file (std::string file_name)
+is_file (string file_name)
 {
 #if !STAT_MACROS_BROKEN
   struct stat sbuf;
@@ -78,7 +77,7 @@ is_file (std::string file_name)
 }
 
 bool
-is_dir (std::string file_name)
+is_dir (string file_name)
 {
 #if !STAT_MACROS_BROKEN
   struct stat sbuf;
@@ -105,8 +104,8 @@ directory, in this order.
 @return
 The file name if found, or empty string if not found. */
 
-std::string
-File_path::find (std::string name) const
+string
+File_path::find (string name) const
 {
   if (!name.length () || (name == "-"))
     return name;
@@ -124,14 +123,14 @@ File_path::find (std::string name) const
   for (vsize i = 0; i < dirs_.size (); i++)
     {
       File_name file_name (name);
-      File_name dir = (std::string) dirs_[i];
+      File_name dir = (string) dirs_[i];
       file_name.root_ = dir.root_;
       dir.root_ = "";
       if (file_name.dir_.empty ())
        file_name.dir_ = dir.to_string ();
       else if (!dir.to_string ().empty ())
        file_name.dir_ = dir.to_string ()
-         + std::to_string (DIRSEP) + file_name.dir_;
+         + ::to_string (DIRSEP) + file_name.dir_;
       if (is_file (file_name.to_string ()))
        return file_name.to_string ();
     }
@@ -145,21 +144,21 @@ File_path::find (std::string name) const
 
   where EXT is from EXTENSIONS.
 */
-std::string
-File_path::find (std::string name, char const *extensions[])
+string
+File_path::find (string name, char const *extensions[])
 {
   if (name.empty () || name == "-")
     return name;
   
   File_name file_name (name);
-  std::string orig_ext = file_name.ext_;
+  string orig_ext = file_name.ext_;
   for (int i = 0; extensions[i]; i++)
     {
       file_name.ext_ = orig_ext;
       if (*extensions[i] && !file_name.ext_.empty ())
        file_name.ext_ += ".";
       file_name.ext_ += extensions[i];
-      std::string found = find (file_name.to_string ());
+      string found = find (file_name.to_string ());
       if (!found.empty ())
        return found;
     }
@@ -169,7 +168,7 @@ File_path::find (std::string name, char const *extensions[])
 
 /** Append a directory, return false if failed.  */
 bool
-File_path::try_append (std::string s)
+File_path::try_append (string s)
 {
   if (s == "")
     s = ".";
@@ -181,27 +180,27 @@ File_path::try_append (std::string s)
   return false;
 }
 
-std::string
+string
 File_path::to_string () const
 {
-  std::string s;
+  string s;
   for (vsize i = 0; i < dirs_.size (); i++)
     {
       s = s + dirs_[i];
       if (i < dirs_.size () - 1)
-       s += std::to_string (PATHSEP);
+       s += ::to_string (PATHSEP);
     }
   return s;
 }
 
 void
-File_path::append (std::string str)
+File_path::append (string str)
 {
   dirs_.push_back (str);
 }
 
 void
-File_path::prepend (std::string str)
+File_path::prepend (string str)
 {
   dirs_.insert (dirs_.begin (), str);
 }
index 561210dc60b01a3ba33173d49030369927b8ecca..17c1eafb7d9bd191cb056947b156d53debe2da25 100644 (file)
@@ -86,25 +86,25 @@ Getopt_long::parselong ()
   return found_option_;
 }
 
-std::string
+string
 Long_option_init::to_string () const
 {
-  std::string str;
+  string str;
   if (shortname_char_)
     str += "-" + shortname_char_;
   if (shortname_char_ && longname_str0_)
     str += ", ";
   if (longname_str0_)
-    str += std::string ("`--") + longname_str0_ + "'";
+    str += string ("`--") + longname_str0_ + "'";
   return str;
 }
 
-std::string
+string
 Long_option_init::str_for_help () const
 {
-  std::string s;
+  string s;
   if (shortname_char_)
-    s = "-" + std::to_string (shortname_char_);
+    s = "-" + ::to_string (shortname_char_);
   else
     s = "  ";
 
@@ -133,7 +133,7 @@ Getopt_long::report (Errorcod c)
   if (!error_out_)
     return;
 
-  std::string str = arg_value_char_a_a_[0];
+  string str = arg_value_char_a_a_[0];
   str += ": ";
   switch (c)
     {
@@ -147,9 +147,9 @@ Getopt_long::report (Errorcod c)
       break;
     case E_UNKNOWNOPTION:
       str += _f ("unrecognized option: `%s'",
-                std::string (argument_index_
-                            ? std::string ("-" + std::string (1, arg_value_char_a_a_[array_index_][argument_index_]))
-                        : std::string (arg_value_char_a_a_[array_index_])));
+                string (argument_index_
+                            ? string ("-" + string (1, arg_value_char_a_a_[array_index_][argument_index_]))
+                        : string (arg_value_char_a_a_[array_index_])));
       break;
     case E_ILLEGALARG:
       str += _f ("invalid argument `%s' to option `%s'",
@@ -296,23 +296,23 @@ Getopt_long::get_next_arg ()
 
 const int EXTRA_SPACES = 5;
 
-std::string
+string
 Long_option_init::table_string (Long_option_init *l)
 {
-  std::string tabstr = "";
+  string tabstr = "";
 
   int wid = 0;
   for (int i = 0; l[i].shortname_char_ || l[i].longname_str0_; i++)
-    wid = std::max (int(wid), int(l[i].str_for_help ().length ()));
+    wid = max (int(wid), int(l[i].str_for_help ().length ()));
 
   for (int i = 0; l[i].shortname_char_ || l[i].longname_str0_; i++)
     {
-      std::string s = "  " + l[i].str_for_help ();
-      s += std::string (wid - s.length () + EXTRA_SPACES, ' ');
+      string s = "  " + l[i].str_for_help ();
+      s += string (wid - s.length () + EXTRA_SPACES, ' ');
 
-      std::string help_text (gettext (l[i].help_str0_));
+      string help_text (gettext (l[i].help_str0_));
       replace_all (help_text, "\n",
-                  "\n" + std::string (wid + EXTRA_SPACES + 2, ' '));
+                  "\n" + string (wid + EXTRA_SPACES + 2, ' '));
       tabstr += s + help_text + "\n";
     }
 
index 253df35ee8807d81bb6efd87d22af26f98bf6923..5fcadc2ce3264faf3b57763854ba2ea14f29337b 100644 (file)
 class File_name
 {
 public:
-  std::string root_;
-  std::string dir_;
-  std::string base_;
-  std::string ext_;
+  string root_;
+  string dir_;
+  string base_;
+  string ext_;
 
-  File_name (std::string);
+  File_name (string);
 
   bool is_absolute () const;
-  std::string to_string () const;
+  string to_string () const;
 };
 
 #endif /* FILE_NAME */
index 9379eda5ad816e4b4658e0b306f0568a4eaad6c2..bb69df245b448b1a2555d03bd222d1fe9223b48a 100644 (file)
 
 class File_path
 {
-  std::vector<std::string> dirs_;
+  vector<string> dirs_;
 
 public:
-  std::vector<std::string> directories () const;
-  std::string find (std::string name) const;
-  std::string find (std::string name, char const *extensions[]);
-  std::string to_string () const;
-  bool try_append (std::string str);
-  void append (std::string str);
-  void parse_path (std::string);
-  void prepend (std::string str);
+  vector<string> directories () const;
+  string find (string name) const;
+  string find (string name, char const *extensions[]);
+  string to_string () const;
+  bool try_append (string str);
+  void append (string str);
+  void parse_path (string);
+  void prepend (string str);
 };
 
-bool is_file (std::string file_name);
-bool is_dir (std::string file_name);
+bool is_file (string file_name);
+bool is_dir (string file_name);
 
 #endif /* FILE_PATH */
index 650622eef9e1269f9b29cea227e29d12d4d1161f..91e2e36aae59a7969636a8df3b16b5f28ebd2e38 100644 (file)
@@ -15,16 +15,19 @@ template<class K, class V> struct Hash_table;
 template<class K, class V> struct Hash_table_iter;
 
 typedef unsigned char Byte;
-namespace std {
-  struct String_data;
-  struct String_handle;
-  //template<class T> struct Array;
-  template<class T> struct Link_array;
-}
 struct String_convert;
 
+#if 0
+namespace std {
+struct string;
+template<typename T> struct vector;
+}
+#else
 #include "std-string.hh"
 #include "std-vector.hh"
+#endif
+using namespace std;
+
 #include "real.hh"
 
 template<class T> struct Link_list;
index 0ab316fc94ceec4cf1d5a0a49bcdd922a081c116..ba5eb8df28c11dcb218e9e9e7334b5805b06c46f 100644 (file)
@@ -20,12 +20,12 @@ struct Long_option_init
 
   char const *help_str0_;
 
-  std::string to_string () const;
-  std::string str_for_help () const;
+  string to_string () const;
+  string str_for_help () const;
   //   NO constructor!
 
   static int compare (Long_option_init const &, Long_option_init const &);
-  static std::string table_string (Long_option_init *);
+  static string table_string (Long_option_init *);
 };
 
 /** C++ for version of long_getopt.  For processing GNU style command
index fdf41a9b964112206b41507c33c0d698b85116f5..1b29c45fa973beb218cab8f209e6a6365dbb39bf 100644 (file)
 /**
    Internationalisation: _ ("to be translated") gets "translated" by GNU gettext
 */
-std::string _ (char const *ch);
+string _ (char const *ch);
 
 /**
    Internationalisation: _f ("Usage: %s [FILE]", "lilypond") gets "translated" by
    GNU gettext
 */
-std::string _f (char const *format, ...);
-std::string _f (char const *format, std::string s, std::string s2 = "", std::string s3 = "");
+string _f (char const *format, ...);
+string _f (char const *format, string s, string s2 = "", string s3 = "");
 
 #endif // INTERNATIONAL_HH
 
index 6a6ad9e3cb62e4fdba11331443e4b78d81e7fc5e..eda3a5ef26e885a8673c3ab4afac2467ec12254d 100644 (file)
@@ -21,7 +21,7 @@
 */
 struct Interval_set
 {
-  std::vector<Interval> allowed_regions_;
+  vector<Interval> allowed_regions_;
 
   Interval_set ();
   void set_full ();
index 6cc16eb6966c9a5815c671aacc011c8cf162697d..1b095dedc307e1ed8a5460b561a5fc87b23e3b90 100644 (file)
@@ -23,7 +23,7 @@ struct Interval_t : public Drul_array<T>
   Drul_array<T>::at;
 
   static T infinity ();
-  static std::string T_to_string (T arg);
+  static string T_to_string (T arg);
   T center () const;
   void translate (T t)
   {
@@ -110,7 +110,7 @@ struct Interval_t : public Drul_array<T>
     Drul_array<Real> da (at (LEFT), at (RIGHT));
     return ::linear_combination (da, x);
   }
-  std::string to_string () const;
+  string to_string () const;
 
   bool contains (T r) const;
   void negate ()
index a72837bd9facee3c0f3496e5c7ec46ff94fc8263..f43d52587fd7beb4f69ed3f7d41b3b31089c1675 100644 (file)
@@ -105,15 +105,15 @@ Interval_t<T>::intersect (Interval_t<T> h)
 }
 
 template<class T>
-std::string
+string
 Interval_t<T>::to_string () const
 {
   if (is_empty ())
     return "[empty]";
-  std::string s ("[");
+  string s ("[");
 
-  return (s + T_to_string (at (LEFT)) + std::string (",")
-         + T_to_string (at (RIGHT)) + std::string ("]"));
+  return (s + T_to_string (at (LEFT)) + string (",")
+         + T_to_string (at (RIGHT)) + string ("]"));
 }
 
 template<class T>
index 73684355aeb34e8cffc0ebf4ba3749467fccdecd..f45ec7f90ebf30f25c293b80c4d1bed2e344e22b 100644 (file)
@@ -93,7 +93,7 @@ public:
     coordinate_a_[X_AXIS] = coordinate_a_[Y_AXIS] = 0.0;
   }
 
-  std::string to_string () const;
+  string to_string () const;
 
   Offset &mirror (Axis a)
   {
index 3d24532bcced73fdb5df78675f04b6cc9043175e..69b7add10337587ad95da00791b9f724c9c55b5f 100644 (file)
@@ -14,7 +14,7 @@
 using namespace std;
 
 template<class T>
-class Link_array : public std::vector<T *>
+class Link_array : public vector<T *>
 {
   
 };
index c3bbc17d6c24cfd8b48707f4e871c6bea9111d2a..faf52d20266d1b0bebde49266886a8ad4f3122d1 100644 (file)
@@ -19,7 +19,7 @@ struct Polynomial
   int degree ()const;
 
   /// coefficients 
-  std::vector<Real> coefs_;
+  vector<Real> coefs_;
 
   // leading coef
   Real &lc ();
@@ -28,8 +28,8 @@ struct Polynomial
   Real lc () const;
   void print () const;
   Real eval (Real) const;
-  void print_sols (std::vector<Real>) const;
-  void check_sols (std::vector<Real>) const;
+  void print_sols (vector<Real>) const;
+  void check_sols (vector<Real>) const;
   void check_sol (Real x) const;
   static Polynomial multiply (const Polynomial &p1, const Polynomial &p2);
   static Polynomial power (int exponent, const Polynomial &src);
@@ -55,11 +55,11 @@ struct Polynomial
 
   void debug_clean ();
 
-  std::vector<Real> solve_quadric ()const;
-  std::vector<Real> solve_cubic ()const;
-  std::vector<Real> solve_linear ()const;
+  vector<Real> solve_quadric ()const;
+  vector<Real> solve_cubic ()const;
+  vector<Real> solve_linear ()const;
 
-  std::vector<Real> solve () const;
+  vector<Real> solve () const;
 };
 
 IMPLEMENT_ARITHMETIC_OPERATOR (Polynomial, -);
index 17d45f32b59af978bc45aab148746d44c9fe1532..6a936b8e6fb3b50cf7761cf048852858b64596d5 100644 (file)
@@ -34,7 +34,7 @@ int compare (PQueue_ent<K, T> const &e1, PQueue_ent<K, T> const &e2)
 template<class T>
 class PQueue
 {
-  std::vector<T> heap_array_;
+  vector<T> heap_array_;
   T &elt (vsize i)
   {
     return heap_array_[i - 1];
index 461b2522a285de9ee5f6488706dd51ce38d3f70e..290d02b9601b9918938b33ba47447527ab3a0094 100644 (file)
@@ -69,7 +69,7 @@ public:
   Rational &operator %= (Rational);
   static int compare (Rational const &, Rational const &);
   int sign () const;
-  std::string to_string () const;
+  string to_string () const;
 };
 
 #include "arithmetic-operator.hh"
index 5f0fcd91ea1a1b1cde9aa18cd3ccf44d2a45f6cf..5d8457e42a84cc32e6e35cd02f82c6324c41e0e4 100644 (file)
@@ -13,7 +13,7 @@
 #include <climits>
 
 /*
-  MacOS 10.3 uses g++ 3.3 which doesn't have std::isinf()
+  MacOS 10.3 uses g++ 3.3 which doesn't have isinf()
  */
 // #include <cmath>
 #include <math.h>
index ca48190875e545e4dd06b9aeafd88782d18e0f50..d9552b4820290062876fb8d38f1e493af84e9c30 100644 (file)
@@ -1,5 +1,5 @@
 /*
-  std-string.hh -- declare std::string
+  std-string.hh -- declare string
 
   source file of the GNU LilyPond music typesetter
 
 
 #include <string>
 
-namespace std {
+using namespace std;
 
-  typedef size_t ssize;
-#define NPOS std::string::npos
+typedef size_t ssize;
+#define NPOS string::npos
 
-  string to_string (string s);
-  string to_string (char c, int n = 1);
-  string to_string (int i, char const *format = 0);
-  string to_string (double f, char const *format = 0);
-  string to_string (long);
-  string to_string (long unsigned);
-  string to_string (unsigned);
-  string to_string (bool b);
-  string to_string (char const *format, ...);
+string to_string (string s);
+string to_string (char c, int n=1);
+string to_string (int i, char const *format=0);
+string to_string (double f, char const *format=0);
+string to_string (long);
+string to_string (long unsigned);
+string to_string (unsigned);
+string to_string (bool b);
+string to_string (char const *format, ...);
   
-  string &replace_all (string &str, string find, string replace);
-  string &replace_all (string &str, char find, char replace);
-  char *string_copy (string s);
-  
-  int string_compare (string const &, string const &);
+string &replace_all (string &str, string find, string replace);
+string &replace_all (string &str, char find, char replace);
+char *string_copy (string s);
+
+int string_compare (string const &, string const &);
 
-  INSTANTIATE_COMPARE (string const &, string_compare);
-}
+INSTANTIATE_COMPARE (string const &, string_compare);
 
 
 #endif /* STD_STRING_HH */
index d7056b62c42c26761ac9520c8773944607fcc96f..69fecfdc3143d365f4f40da1361b8f44bbd3deb7 100644 (file)
@@ -1,5 +1,5 @@
 /*
-  std-vector.hh -- declare std::vector
+  std-vector.hh -- declare vector
 
   source file of the GNU LilyPond music typesetter
 
@@ -13,6 +13,8 @@
 #include <functional>  /* unary_function */
 #include <cassert>
 
+using namespace std;
+
 #if HAVE_BOOST_LAMBDA
 #include <boost/lambda/lambda.hpp>
 #endif
 template<typename T>
 int default_compare (T const &a, T const &b)
 {
-   if (a < b)
-     return -1;
-   else if (a > b)
-     return 1;
-   else
-     return 0;
+  if (a < b)
+    return -1;
+  else if (a > b)
+    return 1;
+  else
+    return 0;
 }
 
 template<typename T>
@@ -42,6 +44,12 @@ int default_compare (T *const &a, T *const &b)
 #include "compare.hh"
 #include "config.hh"
 
+#ifndef VSIZE
+#define VSIZE
+typedef size_t vsize;
+#define VPOS UINT_MAX
+#endif
+
 #if HAVE_STL_DATA_METHOD
 #include <vector>
 #else /* !HAVE_STL_DATA_METHOD */
@@ -51,12 +59,6 @@ int default_compare (T *const &a, T *const &b)
 
 namespace std {
 
-  #ifndef VSIZE
-  #define VSIZE
-  typedef size_t vsize;
-  #define VPOS UINT_MAX
-  #endif
-  
   /* Interface without pointer arithmetic (iterator) semantics.  */
   template<typename T>
   class vector : public __vector<T>
@@ -112,227 +114,215 @@ namespace std {
       }
     while (*hi - *lo > 1);
   }
-}
+} /* namespace std */
 
 #endif /* !HAVE_STL_DATA_METHOD */
 
-namespace std {
-
-  #ifndef VSIZE
-  #define VSIZE
-  typedef size_t vsize;
-  #define VPOS UINT_MAX
-  #endif
-
-  template<typename T>
-  T const &
-  boundary (vector<T> const &v, int dir, vsize i)
-  {
-    assert (dir);
-    return v[dir == -1 ? i : v.size () - 1 - i];
-  }
+template<typename T>
+T const &
+boundary (vector<T> const &v, int dir, vsize i)
+{
+  assert (dir);
+  return v[dir == -1 ? i : v.size () - 1 - i];
+}
 
-  template<typename T>
-  T &
-  boundary (vector<T> &v, int dir, vsize i)
-  {
-    assert (dir);
-    return v[dir == -1 ? i : v.size () - 1 - i];
-  }
+template<typename T>
+T &
+boundary (vector<T> &v, int dir, vsize i)
+{
+  assert (dir);
+  return v[dir == -1 ? i : v.size () - 1 - i];
+}
 
-  template<typename T>
-  T const &
-  back (vector<T> const &v, vsize i)
-  {
-    return v[v.size () - i - 1];
-  }
+template<typename T>
+T const &
+back (vector<T> const &v, vsize i)
+{
+  return v[v.size () - i - 1];
+}
 
-  template<typename T>
-  T&
-  back (vector<T> &v, vsize i)
-  {
-    return v[v.size () - i - 1];
-  }
+template<typename T>
+T&
+back (vector<T> &v, vsize i)
+{
+  return v[v.size () - i - 1];
+}
 
-  template<typename T>
-  void
-  concat (vector<T> &v, vector<T> const& w)
-  {
-    v.insert (v.end (), w.begin (), w.end ());
-  }
+template<typename T>
+void
+concat (vector<T> &v, vector<T> const& w)
+{
+  v.insert (v.end (), w.begin (), w.end ());
+}
   
-  template<class T>
-  void
-  binary_search_bounds (vector<T> const &table,
-                       T const &key, int (*compare) (T const &, T const &),
-                       vsize *lo,
-                       vsize *hi)
-  {
-    if (*lo >= *hi)
-      return;
+template<class T>
+void
+binary_search_bounds (vector<T> const &table,
+                     T const &key, int (*compare) (T const &, T const &),
+                     vsize *lo,
+                     vsize *hi)
+{
+  if (*lo >= *hi)
+    return;
 
-    int cmp;
-    int result;
+  int cmp;
+  int result;
 
-    /* binary search */
-    do
-      {
-       cmp = (*lo + *hi) / 2;
+  /* binary search */
+  do
+    {
+      cmp = (*lo + *hi) / 2;
 
-       result = (*compare) (key, table[cmp]);
+      result = (*compare) (key, table[cmp]);
 
-       if (result < 0)
-         *hi = cmp;
-       else
-         *lo = cmp;
-      }
-    while (*hi - *lo > 1);
-  }
+      if (result < 0)
+       *hi = cmp;
+      else
+       *lo = cmp;
+    }
+  while (*hi - *lo > 1);
+}
 
 #if 0
-  /* FIXME: what if COMPARE is named: int operator == (T const&, T const&),
-     wouldn't that work for most uses of BINARY_SEARCH?
-  */
-  template<typename T>
-  vsize
-  binary_search (vector<T> const &v,
-                T const &key, int (*compare) (T const &, T const &),
-                vsize b=0, vsize e=VPOS)
-  {
-    if (e == VPOS)
-      e = v.size ();
-    typename vector<T>::const_iterator i = find (v.begin () + b,
-                                                v.begin () + e,
-                                                key);
-    if (i != v.end ())
-      return i - v.begin ();
-    return VPOS;
-  }
+/* FIXME: what if COMPARE is named: int operator == (T const&, T const&),
+   wouldn't that work for most uses of BINARY_SEARCH?
+*/
+template<typename T>
+vsize
+binary_search (vector<T> const &v,
+              T const &key, int (*compare) (T const &, T const &),
+              vsize b=0, vsize e=VPOS)
+{
+  if (e == VPOS)
+    e = v.size ();
+  typename vector<T>::const_iterator i = find (v.begin () + b,
+                                              v.begin () + e,
+                                              key);
+  if (i != v.end ())
+    return i - v.begin ();
+  return VPOS;
+}
 #else // c&p from array.icc; cannot easily use stl_algo:find b.o. compare func.
-  template<class T>
-  vsize
-  binary_search (vector<T> const &table,
-                T const &key,
-                int (*compare) (T const &, T const &),
-                vsize lo=0,
-                vsize hi=VPOS)
-  {
-    if (hi == VPOS)
-      hi = table.size ();
+template<class T>
+vsize
+binary_search (vector<T> const &table,
+              T const &key,
+              int (*compare) (T const &, T const &),
+              vsize lo=0,
+              vsize hi=VPOS)
+{
+  if (hi == VPOS)
+    hi = table.size ();
 
-    if (lo >= hi)
-      return VPOS;
+  if (lo >= hi)
+    return VPOS;
 
-    binary_search_bounds (table, key, compare, &lo, &hi);
+  binary_search_bounds (table, key, compare, &lo, &hi);
 
-    if (! (*compare) (key, table[lo]))
-      return lo;
+  if (! (*compare) (key, table[lo]))
+    return lo;
 
-    /* not found */
-    return VPOS;
-  }
+  /* not found */
+  return VPOS;
+}
 
 
 #endif
 
 
 #if 0
-  /* FIXME: the COMPARE functionality is broken?  */
-  template<typename T>
-  void
-  vector_sort (vector<T> &v, int (*compare) (T const &, T const &),
-              vsize lower=VPOS, vsize upper=VPOS)
-  {
-    typename vector<T>::iterator b = v.begin ();
-    typename vector<T>::iterator e = v.begin ();
-    if (lower == VPOS)
-      {
-       lower = 0;
-       upper = v.size ();
-      }
-    ::std::sort (b + lower, e + upper, compare);
-  }
+/* FIXME: the COMPARE functionality is broken?  */
+template<typename T>
+void
+vector_sort (vector<T> &v, int (*compare) (T const &, T const &),
+            vsize lower=VPOS, vsize upper=VPOS)
+{
+  typename vector<T>::iterator b = v.begin ();
+  typename vector<T>::iterator e = v.begin ();
+  if (lower == VPOS)
+    {
+      lower = 0;
+      upper = v.size ();
+    }
+  sort (b + lower, e + upper, compare);
+}
 #else
 
-  // ugh, c&p
-  template<typename T> void
-  vector_sort (vector<T> &v, int (*compare) (T const &, T const &),
-              vsize lower=VPOS, vsize upper=VPOS)
-  {
-    if (lower == VPOS)
-      {
-       lower = 0;
-       upper = v.size () - 1;
+// ugh, c&p
+template<typename T> void
+vector_sort (vector<T> &v, int (*compare) (T const &, T const &),
+            vsize lower=VPOS, vsize upper=VPOS)
+{
+  if (lower == VPOS)
+    {
+      lower = 0;
+      upper = v.size () - 1;
     }
-    if (upper == VPOS || lower >= upper)
-      return;
-    swap (v[lower], v[(lower + upper) / 2]);
-    vsize last = lower;
-    for (vsize i = lower +1; i <= upper; i++)
-      if (compare (v[i], v[lower]) < 0)
-       swap (v[++last], v[i]);
-    swap (v[lower], v[last]);
-    vector_sort (v, compare, lower, last - 1);
-    vector_sort (v, compare, last + 1, upper);
-  }
+  if (upper == VPOS || lower >= upper)
+    return;
+  swap (v[lower], v[(lower + upper) / 2]);
+  vsize last = lower;
+  for (vsize i = lower +1; i <= upper; i++)
+    if (compare (v[i], v[lower]) < 0)
+      swap (v[++last], v[i]);
+  swap (v[lower], v[last]);
+  vector_sort (v, compare, lower, last - 1);
+  vector_sort (v, compare, last + 1, upper);
+}
 #endif
   
-  template<typename T>
-  void
-  reverse (vector<T> &v)
-  {
-    // CHECKME: for a simple vector, like vector<int>, this should
-    // expand to memrev.
-    ::std::reverse (v.begin (), v.end ());
-  }
+template<typename T>
+void
+reverse (vector<T> &v)
+{
+  // CHECKME: for a simple vector, like vector<int>, this should
+  // expand to memrev.
+  reverse (v.begin (), v.end ());
+}
 
-  template<typename T>
-  void
-  uniq (vector<T> &v)
-  {
-    v.erase (unique (v.begin (), v.end ()), v.end ());
-  }
+template<typename T>
+void
+uniq (vector<T> &v)
+{
+  v.erase (unique (v.begin (), v.end ()), v.end ());
+}
 
-  template<typename T>
-  typename vector<T>::const_iterator
-  find (vector<T> const &v, T const &key)
-  {
-    return ::std::find (v.begin (), v.end (), key);
-  }
+template<typename T>
+typename vector<T>::const_iterator
+find (vector<T> const &v, T const &key)
+{
+  return find (v.begin (), v.end (), key);
+}
 
 #if HAVE_BOOST_LAMBDA
 #include <boost/lambda/lambda.hpp>
-  using namespace boost::lambda;
-  template<typename T>
-  void
-  junk_pointers (vector<T> &v)
-  {
-    for_each (v.begin (), v.end (), (delete _1, _1 = 0));
-    v.clear ();
-  }
+using namespace boost::lambda;
+template<typename T>
+void
+junk_pointers (vector<T> &v)
+{
+  for_each (v.begin (), v.end (), (delete _1, _1 = 0));
+  v.clear ();
+}
 #else
 
-  template<typename T> struct del : public unary_function<T, void>
-  {
-    void operator() (T x)
-    {
-      delete x;
-      x = 0;
-    }
-  };
-
-  template<typename T>
-  void
-  junk_pointers (vector<T> &v)
+template<typename T> struct del : public unary_function<T, void>
+{
+  void operator() (T x)
   {
-    // Hmm.
-    ::std::for_each (v.begin (), v.end (), del<T> ());
-    v.clear ();
+    delete x;
+    x = 0;
   }
-#endif /* HAVE_BOOST_LAMBDA */
+};
 
+template<typename T>
+void
+junk_pointers (vector<T> &v)
+{
+  // Hmm.
+  for_each (v.begin (), v.end (), del<T> ());
+  v.clear ();
 }
-
-using namespace std;
+#endif /* HAVE_BOOST_LAMBDA */
 
 #endif /* STD_VECTOR_HH */
index c7ba97026651ad0e2d890a58fd262cdc1c84e199..2cd863f49582724e7ea0cb6db29ef714ce74b857 100644 (file)
@@ -12,44 +12,44 @@ using namespace std;
 #include "std-string.hh"
 #include "flower-proto.hh"
 
-/** The functor std::string_convert handles all conversions to/from std::string
+/** The functor string_convert handles all conversions to/from string
     (some time, anyway).  The class is quite empty from data view.  */
 class String_convert
 {
-  static int hex2bin (std::string hex_string, std::string &bin_string_r);
+  static int hex2bin (string hex_string, string &bin_string_r);
   static int hex2nibble (Byte byte);
   static Byte nibble2hex_byte (Byte byte);
 public:
-  static std::string pad_to (std::string s, int length);
-  static std::string bool_string (bool b);
-  static std::string bin2dec (std::string bin_string);
-  static std::string bin2hex (std::string bin_string);
-  static std::string dec2bin (std::string str);
-  static int bin2int (std::string bin_string);
-  static unsigned bin2unsigned (std::string bin_string);
-  static std::string char_string (char c, int n);
-  static int dec2int (std::string dec_string);
-  static double dec2double (std::string dec_string);
-  static std::string double_string (double f, char const *fmt = 0);
-  static std::string form_string (char const *format, ...);
-  static std::string vform_string (char const *format, va_list args);
-  static int hex2int (std::string str);
-  static unsigned hex2unsigned (std::string str);
-  static std::string hex2bin (std::string str);
-  static std::string int_string (int i, char const *fmt = 0);
-  static std::string unsigned_string (unsigned);
-  static std::string long_string (long);
-  static std::string int2hex (int i, int length_i, char ch);
-  static std::string unsigned2hex (unsigned u, ssize length, char ch);
-  static std::string int2dec (int i, int length_i, char ch);
-  static std::string rational_string (Rational);
-  static std::string pointer_string (void const *);
-  static std::string precision_string (double x, int n);
-  static std::vector<std::string> split (std::string str, char c);
-  static std::string i64_string (I64, char const *fmt = 0);
-  static std::string to_lower (std::string s);
-  static std::string to_upper (std::string s);
-  static std::string reverse (std::string s);
+  static string pad_to (string s, int length);
+  static string bool_string (bool b);
+  static string bin2dec (string bin_string);
+  static string bin2hex (string bin_string);
+  static string dec2bin (string str);
+  static int bin2int (string bin_string);
+  static unsigned bin2unsigned (string bin_string);
+  static string char_string (char c, int n);
+  static int dec2int (string dec_string);
+  static double dec2double (string dec_string);
+  static string double_string (double f, char const *fmt = 0);
+  static string form_string (char const *format, ...);
+  static string vform_string (char const *format, va_list args);
+  static int hex2int (string str);
+  static unsigned hex2unsigned (string str);
+  static string hex2bin (string str);
+  static string int_string (int i, char const *fmt = 0);
+  static string unsigned_string (unsigned);
+  static string long_string (long);
+  static string int2hex (int i, int length_i, char ch);
+  static string unsigned2hex (unsigned u, ssize length, char ch);
+  static string int2dec (int i, int length_i, char ch);
+  static string rational_string (Rational);
+  static string pointer_string (void const *);
+  static string precision_string (double x, int n);
+  static vector<string> split (string str, char c);
+  static string i64_string (I64, char const *fmt = 0);
+  static string to_lower (string s);
+  static string to_upper (string s);
+  static string reverse (string s);
 };
 
 #endif // __STRING_CONVERT_HH //
index 6b4cd85322a1a6f68e98f09a18d2e014b595983a..5171b2efb70e1af7d391359e6ac2979f5da8ba61 100644 (file)
 
 #include "std-string.hh"
 
-void error (std::string s);
-void message (std::string s);
-void non_fatal_error (std::string);
-void programming_error (std::string s);
-void progress_indication (std::string s);
-void warning (std::string s);
+void error (string s);
+void message (string s);
+void non_fatal_error (string);
+void programming_error (string s);
+void progress_indication (string s);
+void warning (string s);
 
 #endif /* WARN_HH */
index c50a3bad3381349dd9a418ffb50ec5dda0dd7637..7bb4130856468c1824257a2d21b33babe3ca4ca8 100644 (file)
@@ -21,24 +21,24 @@ gettext (char const *s)
 #include <libintl.h>
 #endif
 
-std::string
+string
 _ (char const *ch)
 {
-  return std::string (gettext (ch));
+  return string (gettext (ch));
 }
 
-std::string
+string
 _f (char const *format, ...)
 {
   va_list args;
   va_start (args, format);
-  std::string str = String_convert::vform_string (gettext (format), args);
+  string str = String_convert::vform_string (gettext (format), args);
   va_end (args);
   return str;
 }
 
-std::string
-_f (char const *format, std::string s, std::string s2, std::string s3)
+string
+_f (char const *format, string s, string s2, string s3)
 {
   return String_convert::form_string (gettext (format), s.c_str (), s2.c_str (),
                                      s3.c_str ());
index 7b0c34d02e6f758dde02c6f8552f18959946cc13..b78579685175336348943f1ee7081b99df63a3d8 100644 (file)
@@ -18,10 +18,10 @@ Interval_t<Real>::infinity ()
 }
 
 template<>
-std::string
+string
 Interval_t<Real>::T_to_string (Real r)
 {
-  return std::to_string (r);
+  return ::to_string (r);
 }
 
 template<>
@@ -32,10 +32,10 @@ Interval_t<int>::infinity ()
 }
 
 template<>
-std::string
+string
 Interval_t<int>::T_to_string (int i)
 {
-  return std::to_string (i);
+  return ::to_string (i);
 }
 
 template INTERVAL__INSTANTIATE (int);
index b45809e0b9ed82322fb243a18fef7a748540f1c3..a0e87b58cf57984734386aabc3a6b3dc8ea99b7d 100644 (file)
 
 
 #ifndef STANDALONE
-std::string
+string
 Offset::to_string () const
 {
-  std::string s;
-  s = std::string (" (") + std::to_string (coordinate_a_[X_AXIS]) + ", "
-    + std::to_string (coordinate_a_[Y_AXIS]) + ")";
+  string s;
+  s = string (" (") + ::to_string (coordinate_a_[X_AXIS]) + ", "
+    + ::to_string (coordinate_a_[Y_AXIS]) + ")";
   return s;
 }
 #endif
index 5f719147674860a3cca8d4035b4282e80660625e..f6f229128074b8a5f8413a24149d3dc734cf05d6 100644 (file)
@@ -174,7 +174,7 @@ Polynomial::check_sol (Real x) const
 }
 
 void
-Polynomial::check_sols (std::vector<Real> roots) const
+Polynomial::check_sols (vector<Real> roots) const
 {
   for (vsize i = 0; i < roots.size (); i++)
     check_sol (roots[i]);
@@ -203,10 +203,10 @@ iszero (Real r)
   return !r;
 }
 
-std::vector<Real>
+vector<Real>
 Polynomial::solve_cubic ()const
 {
-  std::vector<Real> sol;
+  vector<Real> sol;
 
   /* normal form: x^3 + Ax^2 + Bx + C = 0 */
   Real A = coefs_[2] / coefs_[3];
@@ -295,10 +295,10 @@ Polynomial::degree ()const
 /*
   all roots of quadratic eqn.
 */
-std::vector<Real>
+vector<Real>
 Polynomial::solve_quadric ()const
 {
-  std::vector<Real> sol;
+  vector<Real> sol;
   /* normal form: x^2 + px + q = 0 */
   Real p = coefs_[1] / (2 * coefs_[2]);
   Real q = coefs_[0] / coefs_[2];
@@ -316,16 +316,16 @@ Polynomial::solve_quadric ()const
 }
 
 /* solve linear equation */
-std::vector<Real>
+vector<Real>
 Polynomial::solve_linear ()const
 {
-  std::vector<Real> s;
+  vector<Real> s;
   if (coefs_[1])
     s.push_back (-coefs_[0] / coefs_[1]);
   return s;
 }
 
-std::vector<Real>
+vector<Real>
 Polynomial::solve () const
 {
   Polynomial *me = (Polynomial *) this;
@@ -340,7 +340,7 @@ Polynomial::solve () const
     case 3:
       return solve_cubic ();
     }
-  std::vector<Real> s;
+  vector<Real> s;
   return s;
 }
 
index 3e8c421886493bc6a8c9076058605f29b89ce1ab..a0c0d22410e235726eeee037b760fee1f7dcaef9 100644 (file)
@@ -269,18 +269,18 @@ Rational::operator -= (Rational r)
   return (*this += r);
 }
 
-std::string
+string
 Rational::to_string () const
 {
   if (is_infinity ())
     {
-      std::string s (sign_ > 0 ? "" : "-");
-      return std::string (s + "infinity");
+      string s (sign_ > 0 ? "" : "-");
+      return string (s + "infinity");
     }
 
-  std::string s = std::to_string (num ());
+  string s = ::to_string (num ());
   if (den () != 1 && num ())
-    s += "/" + std::to_string (den ());
+    s += "/" + ::to_string (den ());
   return s;
 }
 
index 666a4bee7e2cb07093ee945580cf6907bb569a43..0fdc96f5f6d78b5fbf6c890f79be1bb886cb2d70 100644 (file)
@@ -9,97 +9,93 @@
 #include "std-string.hh"
 #include "string-convert.hh"
 
-namespace std {
-  
-  std::string
-  to_string (std::string s)
-  {
-    return s;
-  }
-
-  std::string
-  to_string (char c, int n)
-  {
-    return std::string (max (n, 0), c);
-  }
-
-  std::string
-  to_string (double f, char const *format)
-  {
-    return String_convert::double_string (f, format);
-  }
-
-  std::string
-  to_string (int i, char const *format)
-  {
-    return String_convert::int_string (i, format);
-  }
-
-  std::string
-  to_string (bool b)
-  {
-    return String_convert::bool_string (b);
-  }
-
-  std::string
-  to_string (long b)
-  {
-    return String_convert::long_string (b);
-  }
-
-  std::string
-  to_string (long unsigned b)
-  {
-    return String_convert::unsigned_string (b);
-  }
-
-  std::string
-  to_string (unsigned u)
-  {
-    return String_convert::unsigned_string (u);
-  }
-
-  std::string
-  to_string (char const *format, ...)
-  {
-    va_list args;
-    va_start (args, format);
-    std::string str = String_convert::vform_string (format, args);
-    va_end (args);
-    return str;
-  }
-
-  std::string &
-  replace_all (std::string &str, std::string find, std::string replace)
-  {
-    ssize len = find.length ();
-    for (ssize i = str.find (find); i != NPOS; i = str.find (find, i + len))
-      str = str.replace (i, len, replace);
-    return str;
-  }
-
-  std::string &
-  replace_all (std::string &str, char find, char replace)
-  {
-    for (ssize i = str.find (find); i != NPOS; i = str.find (find, i + 1))
-      str[i] = replace;
-    return str;
-  }
-
-  char *
-  string_copy (std::string s)
-  {
-    ssize len = s.length ();
-    char *dest = new char[len + 1];
-    //s.copy (dest, len + 1);
-    memcpy (dest, s.c_str (), len + 1);
-    return dest;
-  }
-
-  int
-  string_compare (std::string const &a, std::string const &b)
-  {
-    return a.compare (b);
-  }
+string
+to_string (string s)
+{
+  return s;
+}
+
+string
+to_string (char c, int n)
+{
+  return string (max (n, 0), c);
+}
+
+string
+to_string (double f, char const *format)
+{
+  return String_convert::double_string (f, format);
+}
+
+string
+to_string (int i, char const *format)
+{
+  return String_convert::int_string (i, format);
+}
+
+string
+to_string (bool b)
+{
+  return String_convert::bool_string (b);
+}
+
+string
+to_string (long b)
+{
+  return String_convert::long_string (b);
+}
+
+string
+to_string (long unsigned b)
+{
+  return String_convert::unsigned_string (b);
+}
+
+string
+to_string (unsigned u)
+{
+  return String_convert::unsigned_string (u);
+}
+
+string
+to_string (char const *format, ...)
+{
+  va_list args;
+  va_start (args, format);
+  string str = String_convert::vform_string (format, args);
+  va_end (args);
+  return str;
+}
+
+string &
+replace_all (string &str, string find, string replace)
+{
+  ssize len = find.length ();
+  for (ssize i = str.find (find); i != NPOS; i = str.find (find, i + len))
+    str = str.replace (i, len, replace);
+  return str;
+}
+
+string &
+replace_all (string &str, char find, char replace)
+{
+  for (ssize i = str.find (find); i != NPOS; i = str.find (find, i + 1))
+    str[i] = replace;
+  return str;
+}
+
+char *
+string_copy (string s)
+{
+  ssize len = s.length ();
+  char *dest = new char[len + 1];
+  //s.copy (dest, len + 1);
+  memcpy (dest, s.c_str (), len + 1);
+  return dest;
+}
 
+int
+string_compare (string const &a, string const &b)
+{
+  return a.compare (b);
 }
index 738a396606a8dd49f1f561cd00625419a798a670..2175dd8cd43d11e6aec729f72710f2d54b70a575 100644 (file)
@@ -27,16 +27,16 @@ using namespace std;
 */
 static const int STRING_BUFFER_LEN = 1024;
 
-std::string
+string
 String_convert::bool_string (bool b)
 {
-  return std::string (b ? "true" : "false");
+  return string (b ? "true" : "false");
 }
 
-std::string
-String_convert::bin2hex (std::string bin_string)
+string
+String_convert::bin2hex (string bin_string)
 {
-  std::string str;
+  string str;
   Byte const *byte = (Byte const*)bin_string.data ();
   for (ssize i = 0; i < bin_string.length (); i++)
     {
@@ -47,13 +47,13 @@ String_convert::bin2hex (std::string bin_string)
 }
 
 int
-String_convert::bin2int (std::string bin_string)
+String_convert::bin2int (string bin_string)
 {
   return bin2unsigned (bin_string);
 }
 
 unsigned
-String_convert::bin2unsigned (std::string bin_string)
+String_convert::bin2unsigned (string bin_string)
 {
   assert (bin_string.length () <= (int)sizeof (unsigned));
 
@@ -66,9 +66,9 @@ String_convert::bin2unsigned (std::string bin_string)
   return result_u;
 }
 
-// breendet imp from std::string
+// breendet imp from string
 int
-String_convert::dec2int (std::string dec_string)
+String_convert::dec2int (string dec_string)
 {
   if (!dec_string.length ())
     return 0;
@@ -80,17 +80,17 @@ String_convert::dec2int (std::string dec_string)
   return (int)l;
 }
 
-std::string
+string
 String_convert::i64_string (I64 i64, char const *fmt)
 {
   char buffer[STRING_BUFFER_LEN];
   snprintf (buffer, STRING_BUFFER_LEN,
            (fmt ? fmt : "%Ld"), i64); // assume radix 10
-  return std::string (buffer);
+  return string (buffer);
 }
-// breendet imp from std::string
+// breendet imp from string
 double
-String_convert::dec2double (std::string dec_string)
+String_convert::dec2double (string dec_string)
 {
   if (!dec_string.length ())
     return 0;
@@ -101,7 +101,7 @@ String_convert::dec2double (std::string dec_string)
 }
 
 int
-String_convert::hex2bin (std::string hex_string, std::string &bin_string_r)
+String_convert::hex2bin (string hex_string, string &bin_string_r)
 {
   if (hex_string.length () % 2)
     hex_string = "0" + hex_string;
@@ -121,10 +121,10 @@ String_convert::hex2bin (std::string hex_string, std::string &bin_string_r)
   return 0;
 }
 
-std::string
-String_convert::hex2bin (std::string hex_string)
+string
+String_convert::hex2bin (string hex_string)
 {
-  std::string str;
+  string str;
   //  silly, asserts should alway be "on"!
   //    assert (!hex2bin (hex_string, str) );
   int error_i = hex2bin (hex_string, str);
@@ -145,7 +145,7 @@ String_convert::hex2nibble (Byte byte)
 }
 
 // stupido.  Should use int_string ()
-std::string
+string
 String_convert::int2dec (int i, int length_i, char ch)
 {
   char fill_char = ch;
@@ -153,17 +153,17 @@ String_convert::int2dec (int i, int length_i, char ch)
     fill_char = '0';
 
   // ugh
-  std::string dec_string = to_string (i);
+  string dec_string = to_string (i);
 
   // ugh
   return to_string (fill_char, length_i - dec_string.length ()) + dec_string;
 }
 
 // stupido.  Should use int_string ()
-std::string
+string
 String_convert::unsigned2hex (unsigned u, ssize length, char fill_char)
 {
-  std::string str;
+  string str;
   if (!u)
     str = "0";
 
@@ -184,7 +184,7 @@ String_convert::unsigned2hex (unsigned u, ssize length, char fill_char)
   return str;
 }
 
-std::string
+string
 String_convert::int2hex (int i, int length_i, char fill_char)
 {
   return unsigned2hex ((unsigned)i, length_i, fill_char);
@@ -204,16 +204,16 @@ String_convert::nibble2hex_byte (Byte byte)
    @param
    #fmt# is a printf style format, default assumes "%d" as format.
 */
-std::string
+string
 String_convert::int_string (int i, char const *fmt)
 {
   char buffer[STRING_BUFFER_LEN];
   snprintf (buffer, STRING_BUFFER_LEN,
            (fmt ? fmt : "%d"), i); // assume radix 10
-  return std::string (buffer);
+  return string (buffer);
 }
 
-std::string
+string
 String_convert::form_string (char const *format, ...)
 {
   va_list args;
@@ -221,15 +221,15 @@ String_convert::form_string (char const *format, ...)
   char buffer[STRING_BUFFER_LEN];
   vsnprintf (buffer, STRING_BUFFER_LEN, format, args);
   va_end (args);
-  return std::string (buffer);
+  return string (buffer);
 }
 
-std::string
+string
 String_convert::vform_string (char const *format, va_list args)
 {
   char buffer[STRING_BUFFER_LEN];
   vsnprintf (buffer, STRING_BUFFER_LEN, format, args);
-  return std::string (buffer);
+  return string (buffer);
 }
 
 /**
@@ -237,13 +237,13 @@ String_convert::vform_string (char const *format, va_list args)
 
    @param #fmt# is a printf style format, default assumes "%lf" as format
 */
-std::string
+string
 String_convert::double_string (double f, char const *fmt)
 {
   char buf[STRING_BUFFER_LEN];
 
   snprintf (buf, STRING_BUFFER_LEN, fmt ? fmt : "%f", f);
-  return std::string (buf);
+  return string (buf);
 }
 
 /**
@@ -252,30 +252,30 @@ String_convert::double_string (double f, char const *fmt)
    @param
    #n# is a repetition count, default value is 1
 */
-std::string
+string
 String_convert::char_string (char c, int n)
 {
   n = n >= 0 ? n : 0;
   char *ch = new char[ n ];
   memset (ch, c, n);
-  std::string s (ch, n);
+  string s (ch, n);
   
   delete[] ch;
   return s;
 }
 
-std::string
+string
 String_convert::rational_string (Rational r)
 {
   return r.to_string ();
 }
 
-std::string
+string
 String_convert::pointer_string (void const *l)
 {
   char buffer[STRING_BUFFER_LEN];
   snprintf (buffer, STRING_BUFFER_LEN, "%p", l); // assume radix 10
-  return std::string (buffer);
+  return string (buffer);
 }
 
 /**
@@ -284,11 +284,11 @@ String_convert::pointer_string (void const *l)
    @param
    #n# is the number of nonzero digits
 */
-std::string
+string
 String_convert::precision_string (double x, int n)
 {
-  std::string format = "%." + to_string (max (0, n - 1)) + "e";
-  std::string str = double_string (abs (x), format.c_str ());
+  string format = "%." + to_string (max (0, n - 1)) + "e";
+  string str = double_string (abs (x), format.c_str ());
 
   int exp = dec2int (str.substr (str.length () - 3));
   str = str.substr (0, str.length () - 4);
@@ -315,14 +315,14 @@ String_convert::precision_string (double x, int n)
   return (sign (x) > 0 ? str : "-" + str);
 }
 
-std::vector<std::string>
-String_convert::split (std::string str, char c)
+vector<string>
+String_convert::split (string str, char c)
 {
-  std::vector<std::string> a;
+  vector<string> a;
   ssize i = str.find (c);
   while (i != NPOS)
     {
-      std::string s = str.substr (0, i);
+      string s = str.substr (0, i);
       a.push_back (s);
       while (str[++i] == c)
        ;
@@ -334,7 +334,7 @@ String_convert::split (std::string str, char c)
   return a;
 }
 
-std::string
+string
 String_convert::long_string (long l)
 {
   char s[STRING_BUFFER_LEN];
@@ -342,7 +342,7 @@ String_convert::long_string (long l)
   return s;
 }
 
-std::string
+string
 String_convert::unsigned_string (unsigned u)
 {
   char s[STRING_BUFFER_LEN];
@@ -350,26 +350,26 @@ String_convert::unsigned_string (unsigned u)
   return s;
 }
 
-std::string
-String_convert::pad_to (std::string s, int n)
+string
+String_convert::pad_to (string s, int n)
 {
-  return s + std::string (max (int(n - s.length ()), 0), ' ');
+  return s + string (max (int(n - s.length ()), 0), ' ');
 }
 
-std::string
-String_convert::to_upper (std::string s)
+string
+String_convert::to_upper (string s)
 {
   return strnupr ((char *)s.c_str (), s.length ());
 }
 
-std::string
-String_convert::to_lower (std::string s)
+string
+String_convert::to_lower (string s)
 {
   return strnlwr ((char *)s.c_str (), s.length ());
 }
 
-std::string
-String_convert::reverse (std::string s)
+string
+String_convert::reverse (string s)
 {
   return (char*) memrev ((unsigned char *)s.data (), s.length ());
 }
index e6f0da3d3e5f4c4dcafeafc36235550d47aee13c..c2214418a594525ad59afbff1c90da8c1cff8e94 100644 (file)
@@ -189,7 +189,7 @@ init_unit_test_suite (int, char**)
   vector<char*> w;
   binary_search_bounds (w, (char*)1, &default_compare, &i, &j);
   
-  test_suite *test = BOOST_TEST_SUITE("std::Flower");
+  test_suite *test = BOOST_TEST_SUITE("Flower");
   test->add (BOOST_TEST_CASE (vector_erase));
   test->add (BOOST_TEST_CASE (vector_slice));
   test->add (BOOST_TEST_CASE (vector_sorting));
index 1dcf35773682f6785a4e767220eba67cad8aa70d..4014b73adbec90eda997dcce0217e4f3d67b3dc2 100644 (file)
@@ -20,7 +20,7 @@ static bool progress_newline = true;
 
 /* Display user information that is not a full message.  */
 void
-progress_indication (std::string s)
+progress_indication (string s)
 {
   /* Test if all silly progress_indication ("\n") can be dropped now.  */
   if (s == "\n")
@@ -34,7 +34,7 @@ progress_indication (std::string s)
 
 /* Display a single user message.  Always starts on a new line.  */
 void
-message (std::string s)
+message (string s)
 {
   if (!progress_newline)
     fputc ('\n', stderr);
@@ -43,27 +43,27 @@ message (std::string s)
 
 /* Display a warning message.  Always starts on a new line.  */
 void
-warning (std::string s)
+warning (string s)
 {
   message (_f ("warning: %s", s.c_str ()) + "\n");
 }
 
 void
-non_fatal_error (std::string s)
+non_fatal_error (string s)
 {
   message (_f ("error: %s", s.c_str ()) + "\n");
 }
 
 /* Display an error message.  Always starts on a new line.  */
 void
-error (std::string s)
+error (string s)
 {
   non_fatal_error (s);
   exit (1);
 }
 
 void
-programming_error (std::string s)
+programming_error (string s)
 {
   message (_f ("programming error: %s", s) + "\n");
   message (_ ("continuing, cross fingers") + "\n");
index 1c626529cae3df8b3444309a31e4f1509c421566..0534eebbd333f0539f92fd6614c2a3cf687c505a 100644 (file)
@@ -77,13 +77,13 @@ public:
     to store all information before we can really create the
     accidentals.
   */
-  std::vector<Grob*> left_objects_;
-  std::vector<Grob*> right_objects_;
+  vector<Grob*> left_objects_;
+  vector<Grob*> right_objects_;
 
   Grob *accidental_placement_;
 
-  std::vector<Accidental_entry> accidentals_;
-  std::vector<Spanner*> ties_;
+  vector<Accidental_entry> accidentals_;
+  vector<Spanner*> ties_;
 };
 
 /*
@@ -533,7 +533,7 @@ Accidental_engraver::acknowledge_rhythmic_head (Grob_info info)
       && note->is_mus_type ("note-event"))
     {
       /*
-       std::string harmonics usually don't have accidentals.
+       string harmonics usually don't have accidentals.
       */
       if (to_boolean (get_property ("harmonicAccidentals"))
          || !ly_is_equal (info.grob ()->get_property ("style"),
index f8000479883144573436d5dfb4ad73b9ee897001..d8702520e1817fc7637bf0a3740597486e022199 100644 (file)
@@ -57,8 +57,8 @@ Accidental_placement::add_accidental (Grob *me, Grob *a)
 */
 void
 Accidental_placement::split_accidentals (Grob *accs,
-                                        Link_array__Grob_ *break_reminder,
-                                        Link_array__Grob_ *real_acc)
+                                        vector<Grob*> *break_reminder,
+                                        vector<Grob*> *real_acc)
 {
   for (SCM acs = accs->get_object ("accidental-grobs"); scm_is_pair (acs);
        acs = scm_cdr (acs))
@@ -82,8 +82,8 @@ Accidental_placement::get_relevant_accidental_extent (Grob *me,
                                                      Item *item_col,
                                                      Grob *left_object)
 {
-  Link_array__Grob_ br, ra;
-  Link_array__Grob_ *which = 0;
+  vector<Grob*> br, ra;
+  vector<Grob*> *which = 0;
 
   Accidental_placement::split_accidentals (me, &br, &ra);
   concat (br, ra);
@@ -108,11 +108,11 @@ Accidental_placement::get_relevant_accidental_extent (Grob *me,
 
 struct Accidental_placement_entry
 {
-  std::vector<Skyline_entry> left_skyline_;
-  std::vector<Skyline_entry> right_skyline_;
+  vector<Skyline_entry> left_skyline_;
+  vector<Skyline_entry> right_skyline_;
   Interval vertical_extent_;
-  std::vector<Box> extents_;
-  Link_array__Grob_ grobs_;
+  vector<Box> extents_;
+  vector<Grob*> grobs_;
   Real offset_;
   int notename_;
   Accidental_placement_entry ()
@@ -149,9 +149,9 @@ int ape_rcompare (Accidental_placement_entry *const &a,
   placement
 */
 void
-stagger_apes (Link_array__Accidental_placement_entry_ *apes)
+stagger_apes (vector<Accidental_placement_entry*> *apes)
 {
-  Link_array__Accidental_placement_entry_ asc = *apes;
+  vector<Accidental_placement_entry*> asc = *apes;
 
   vector_sort (asc, &ape_compare);
 
@@ -233,7 +233,7 @@ Accidental_placement::calc_positioning_done (SCM smob)
     TODO: there is a bug in this code. If two accs are on the same
     Y-position, they share an Ape, and will be printed in overstrike.
   */
-  Link_array__Accidental_placement_entry_ apes;
+  vector<Accidental_placement_entry*> apes;
   for (SCM s = accs; scm_is_pair (s); s = scm_cdr (s))
     {
       Accidental_placement_entry *ape = new Accidental_placement_entry;
@@ -251,7 +251,7 @@ Accidental_placement::calc_positioning_done (SCM smob)
     First we must extract *all* pointers. We can only determine
     extents if we're sure that we've found the right common refpoint
   */
-  Link_array__Grob_ note_cols, heads;
+  vector<Grob*> note_cols, heads;
   for (vsize i = apes.size (); i--;)
     {
       Accidental_placement_entry *ape = apes[i];
@@ -306,7 +306,7 @@ Accidental_placement::calc_positioning_done (SCM smob)
        {
          Grob *a = apes[i]->grobs_[j];
 
-         std::vector<Box> boxes = Accidental_interface::accurate_boxes (a, common);
+         vector<Box> boxes = Accidental_interface::accurate_boxes (a, common);
 
          ape->extents_.insert (ape->extents_.end (), boxes.begin (), boxes.end ());
          for (vsize j = boxes.size (); j--;)
@@ -332,8 +332,8 @@ Accidental_placement::calc_positioning_done (SCM smob)
 
   Accidental_placement_entry *head_ape = new Accidental_placement_entry;
   common[X_AXIS] = common_refpoint_of_array (heads, common[X_AXIS], X_AXIS);
-  std::vector<Skyline_entry> head_skyline (empty_skyline (LEFT));
-  std::vector<Box> head_extents;
+  vector<Skyline_entry> head_skyline (empty_skyline (LEFT));
+  vector<Box> head_extents;
   for (vsize i = heads.size (); i--;)
     {
       Box b (heads[i]->extent (common[X_AXIS], X_AXIS),
@@ -347,7 +347,7 @@ Accidental_placement::calc_positioning_done (SCM smob)
 
   Real padding = robust_scm2double (me->get_property ("padding"), 0.2);
 
-  std::vector<Skyline_entry> left_skyline = head_ape->left_skyline_;
+  vector<Skyline_entry> left_skyline = head_ape->left_skyline_;
   heighten_skyline (&left_skyline,
                    -robust_scm2double (me->get_property ("right-padding"), 0));
   /*
@@ -364,7 +364,7 @@ Accidental_placement::calc_positioning_done (SCM smob)
 
       apes[i]->offset_ = offset;
 
-      std::vector<Skyline_entry> new_left_skyline = apes[i]->left_skyline_;
+      vector<Skyline_entry> new_left_skyline = apes[i]->left_skyline_;
       heighten_skyline (&new_left_skyline, apes[i]->offset_);
       merge_skyline (&new_left_skyline, left_skyline, LEFT);
       left_skyline = new_left_skyline;
index 29965135437d00182691bd1b84bd84ba3053b6db..d79c17a9e9af2f1e70de4726723e6c4bca0548df 100644 (file)
@@ -52,14 +52,14 @@ Accidental_interface::after_line_breaking (SCM smob)
   return SCM_UNSPECIFIED;
 }
 
-std::vector<Box>
+vector<Box>
 Accidental_interface::accurate_boxes (Grob *a, Grob **common)
 {
   Box b;
   b[X_AXIS] = a->extent (a, X_AXIS);
   b[Y_AXIS] = a->extent (a, Y_AXIS);
 
-  std::vector<Box> boxes;
+  vector<Box> boxes;
 
   bool parens = false;
   if (to_boolean (a->get_property ("cautionary")))
@@ -142,8 +142,8 @@ Accidental_interface::accurate_boxes (Grob *a, Grob **common)
 /*
   todo: this sort of stuff in Scheme. --hwn.
 */
-std::string
-Accidental_interface::get_fontcharname (std::string style, int alteration)
+string
+Accidental_interface::get_fontcharname (string style, int alteration)
 {
   if (alteration == DOUBLE_FLAT
       || alteration == DOUBLE_SHARP)
@@ -202,7 +202,7 @@ Accidental_interface::print (SCM smob)
     }
 
   SCM scm_style = me->get_property ("style");
-  std::string style;
+  string style;
   if (scm_is_symbol (scm_style))
     style = ly_symbol2string (scm_style);
   else
@@ -232,7 +232,7 @@ Accidental_interface::print (SCM smob)
        scm_is_pair (s); s = scm_cdr (s))
     {
       int alteration = scm_to_int (scm_car (s));
-      std::string font_char = get_fontcharname (style, alteration);
+      string font_char = get_fontcharname (style, alteration);
       Stencil acc (fm->find_by_name ("accidentals." + font_char));
 
       if (acc.is_empty ())
index 6faaa013c075f5f0345f1f6889e00eddfd2baca7..0b8bfc0b9c83731a156965bd6d5ecec1e8b03cdf 100644 (file)
@@ -89,13 +89,13 @@ Align_interface::align_to_fixed_distance (Grob *me, Axis a)
 
   extract_grob_set (me, "elements", elem_source);
 
-  Link_array__Grob_ elems (elem_source); // writable..
+  vector<Grob*> elems (elem_source); // writable..
 
   Real where_f = 0;
 
   Interval v;
   v.set_empty ();
-  std::vector<Real> translates;
+  vector<Real> translates;
 
   for (vsize j = elems.size (); j--;)
     {
@@ -160,8 +160,8 @@ Align_interface::align_elements_to_extents (Grob *me, Axis a)
   Interval threshold = robust_scm2interval (me->get_property ("threshold"),
                                            Interval (0, Interval::infinity ()));
 
-  std::vector<Interval> dims;
-  Link_array__Grob_ elems;
+  vector<Interval> dims;
+  vector<Grob*> elems;
 
   extract_grob_set (me, "elements", all_grobs);
   for (vsize i = 0; i < all_grobs.size (); i++)
@@ -196,7 +196,7 @@ Align_interface::align_elements_to_extents (Grob *me, Axis a)
                                   : SCM_EOL,
                                   extra_space);
   
-  std::vector<Real> translates;
+  vector<Real> translates;
   for (vsize j = 0; j < elems.size (); j++)
     {
       Real dy = -dims[j][-stacking_dir];
@@ -233,7 +233,7 @@ Align_interface::align_elements_to_extents (Grob *me, Axis a)
   /*
     also move the grobs that were empty, to maintain spatial order.
   */
-  std::vector<Real> all_translates;
+  vector<Real> all_translates;
   if (translates.size ())
     {
       Real w = translates[0];
index 576a9d86f11b7ed3239895d75bd6f7d8cfff335c..f7334849b84ab2eabe4b68d1ae395e7b810c3326 100644 (file)
@@ -18,7 +18,7 @@
 
 static char const *default_font_str0_ = "cmr10";
 
-All_font_metrics::All_font_metrics (std::string path)
+All_font_metrics::All_font_metrics (string path)
 {
   tfm_dict_ = new Scheme_hash_table;
   otf_dict_ = new Scheme_hash_table;
@@ -74,7 +74,7 @@ All_font_metrics::find_pango_font (PangoFontDescription *description,
   if (!pango_dict_->try_retrieve (key, &val))
     {
       if (be_verbose_global)
-       progress_indication ("[" + std::string (pango_fn));
+       progress_indication ("[" + string (pango_fn));
 
       Pango_font *pf = new Pango_font (pango_ft2_fontmap_,
                                       description,
@@ -97,11 +97,11 @@ All_font_metrics::find_pango_font (PangoFontDescription *description,
 
 #endif
 
-std::string
-kpathsea_find_file (std::string name, std::string ext)
+string
+kpathsea_find_file (string name, string ext)
 {
   name += "." + ext;
-  std::string path = global_path.find (name);
+  string path = global_path.find (name);
   if (path.length () > 0)
     return path;
 
@@ -124,14 +124,14 @@ kpathsea_find_file (std::string name, std::string ext)
 }
 
 Open_type_font *
-All_font_metrics::find_otf (std::string name)
+All_font_metrics::find_otf (string name)
 {
   SCM sname = ly_symbol2scm (name.c_str ());
   SCM name_string = scm_makfrom0str (name.c_str ());
   SCM val;
   if (!otf_dict_->try_retrieve (sname, &val))
     {
-      std::string file_name;
+      string file_name;
 
       if (file_name.empty ())
        file_name = search_path_.find (name + ".otf");
@@ -157,20 +157,20 @@ All_font_metrics::find_otf (std::string name)
 }
 
 Tex_font_metric *
-All_font_metrics::find_tfm (std::string name)
+All_font_metrics::find_tfm (string name)
 {
   SCM sname = ly_symbol2scm (name.c_str ());
   SCM name_string = scm_makfrom0str (name.c_str ());
   SCM val;
   if (!tfm_dict_->try_retrieve (sname, &val))
     {
-      std::string file_name;
+      string file_name;
 
       if (file_name.empty ())
        {
          /* FIXME: should add "cork-" prefix to lm* fonts.  How to do
             that, cleanly?  */
-         std::string p = kpathsea_find_file (name, "tfm");
+         string p = kpathsea_find_file (name, "tfm");
          if (p.length ())
            file_name = p;
        }
@@ -199,7 +199,7 @@ All_font_metrics::find_tfm (std::string name)
 }
 
 Font_metric *
-All_font_metrics::find_font (std::string name)
+All_font_metrics::find_font (string name)
 {
   Font_metric *f = find_otf (name);
 
@@ -214,7 +214,7 @@ All_font_metrics::find_font (std::string name)
       warning (_ ("loading default font"));
     }
 
-  std::string def_name = default_font_str0_;
+  string def_name = default_font_str0_;
 
   if (!f)
     f = find_tfm (def_name);
index 9f1f5e769d501a8ac815a5d122d06db6f55c528d..c27ebc468dab386e82c50a42af29ae15b157b9c6 100644 (file)
@@ -30,7 +30,7 @@ Ambitus::print (SCM smob)
       && heads.size () > 1)
     {
       Grob *common
-       = common_refpoint_of_array (Link_array__Grob_ (heads.begin (),
+       = common_refpoint_of_array (vector<Grob*> (heads.begin (),
                                                       heads.begin () + 2),
                                    me, Y_AXIS);
 
index edc322a052bdd373927d4e9d218565d75cd28900..f6dd6b471fa164870fd2573f75baf43bdc701a61 100644 (file)
@@ -25,11 +25,11 @@ Audio_element_info::Audio_element_info ()
   origin_trans_ = 0;
 }
 
-Link_array__Context_
+vector<Context*>
 Audio_element_info::origin_contexts (Translator *end) const
 {
   Context *t = origin_trans_->context ();
-  Link_array__Context_ r;
+  vector<Context*> r;
   do
     {
       r.push_back (t);
index b5edac5fbb68028a66dde6cea02c83ae87756c65..0e4ded6386cfc23d852df3548cd9ffe54ce3ca8e 100644 (file)
@@ -11,7 +11,7 @@
 #include "midi-item.hh"
 #include "audio-column.hh"
 
-Audio_instrument::Audio_instrument (std::string instrument_string)
+Audio_instrument::Audio_instrument (string instrument_string)
 {
   str_ = instrument_string;
 }
@@ -62,7 +62,7 @@ Audio_time_signature::Audio_time_signature (int beats, int one_beat)
   one_beat_ = one_beat;
 }
 
-Audio_text::Audio_text (Audio_text::Type type, std::string text_string)
+Audio_text::Audio_text (Audio_text::Type type, string text_string)
 {
   text_string_ = text_string;
   type_ = type;
index b7a92690571cfe26ce17bbae0468a85f436df170..a70755bc33a1913944329b9d75a9bbc2205184e7 100644 (file)
@@ -56,7 +56,7 @@ private:
   */
   Moment shortest_mom_;
   Spanner *finished_beam_;
-  Link_array__Item_ *stems_;
+  vector<Item*> *stems_;
 
   int process_acknowledged_count_;
   Moment last_add_mom_;
@@ -210,7 +210,7 @@ Auto_beam_engraver::begin_beam ()
       return;
     }
 
-  stems_ = new Link_array__Item_;
+  stems_ = new vector<Item*>;
   grouping_ = new Beaming_info_list;
   beam_settings_ = updated_grob_properties (context (), ly_symbol2scm ("Beam"));
 
index bc589b25bb1dc8e0f80386209a5b7c88f9ed2d5d..bbf2fe509f0d4e1f8b0b671f7b7c35355778022c 100644 (file)
@@ -22,11 +22,11 @@ protected:
   virtual void do_quit ();
   virtual void construct_children ();
   virtual void process (Moment);
-  std::vector<Pitch> pending_pitch (Moment) const;
+  vector<Pitch> pending_pitch (Moment) const;
 private:
   SCM split_list_;
   Direction where_dir_;
-  void change_to (Music_iterator *, SCM, std::string);
+  void change_to (Music_iterator *, SCM, string);
   Moment start_moment_;
 
   Context_handle up_;
@@ -35,7 +35,7 @@ private:
 
 void
 Auto_change_iterator::change_to (Music_iterator *it, SCM to_type_sym,
-                                std::string to_id)
+                                string to_id)
 {
   Context *current = it->get_outlet ();
   Context *last = 0;
@@ -58,7 +58,7 @@ Auto_change_iterator::change_to (Music_iterator *it, SCM to_type_sym,
 
   if (current && current->id_string () == to_id)
     {
-      std::string msg;
+      string msg;
       msg += _f ("can't change, already in translator: %s", to_id);
     }
 
@@ -101,7 +101,7 @@ Auto_change_iterator::process (Moment m)
       if (d && d != where_dir_)
        {
          where_dir_ = d;
-         std::string to_id = (d >= 0) ? "up" : "down";
+         string to_id = (d >= 0) ? "up" : "down";
          change_to (child_iter_,
                     ly_symbol2scm ("Staff"),
                     to_id);
index 8a672ea94f0eb3053144d243c883a7f6a8af3892..bc1449f8da1f34db0e0f8633131f14e44d46f7b8 100644 (file)
@@ -22,7 +22,7 @@ LY_DEFINE (ly_relative_group_extent, "ly:relative-group-extent",
   SCM_ASSERT_TYPE (unsmob_grob (common), common, SCM_ARG2, __FUNCTION__, "grob");
   SCM_ASSERT_TYPE (is_axis (axis), axis, SCM_ARG3, __FUNCTION__, "axis");
 
-  Link_array__Grob_ elts;
+  vector<Grob*> elts;
   if (!ga)
     {
       for (SCM s = elements; scm_is_pair (s); s = scm_cdr (s))
index a994a2b321913c1adf910f787dfe430d94404c31..b13eecd868d33c684e74cca529a3732aa8f650f0 100644 (file)
@@ -45,7 +45,7 @@ Axis_group_interface::has_axis (Grob *me, Axis a)
 }
 
 Interval
-Axis_group_interface::relative_group_extent (Link_array__Grob_ const &elts,
+Axis_group_interface::relative_group_extent (vector<Grob*> const &elts,
                                             Grob *common, Axis a)
 {
   Interval r;
@@ -88,7 +88,7 @@ Axis_group_interface::generic_group_extent (Grob *me, Axis a)
 }
 
 void
-Axis_group_interface::get_children (Grob *me, Link_array__Grob_ *found)
+Axis_group_interface::get_children (Grob *me, vector<Grob*> *found)
 {
   found->push_back (me);
 
index 85c98ead9c961ae532a73377b2e942efd96f3c0f..af7d39929e325dda69a7b13cd454ac46ce45a4b4 100644 (file)
@@ -21,7 +21,7 @@ class Bar_engraver : public Engraver
 {
 public:
   TRANSLATOR_DECLARATIONS (Bar_engraver);
-  void request_bar (std::string type_string);
+  void request_bar (string type_string);
 
 protected:
   virtual void finalize ();
index 28acd4f68ab219cba1c711edf0422d4448085374..4922a84d37b29921d1e5a79d29c4ccd1508f1f0d 100644 (file)
@@ -26,7 +26,7 @@ Bar_line::print (SCM smob)
   
   if (scm_is_string (s) && scm_is_number (barsize))
     {
-      std::string str = ly_scm2string (s);
+      string str = ly_scm2string (s);
       Real sz = robust_scm2double (barsize, 0);
       if (sz <= 0)
        return SCM_EOL;
@@ -37,7 +37,7 @@ Bar_line::print (SCM smob)
 }
 
 Stencil
-Bar_line::compound_barline (Grob *me, std::string str, Real h,
+Bar_line::compound_barline (Grob *me, string str, Real h,
                            bool rounded)
 {
   Real kern = robust_scm2double (me->get_property ("kern"), 1);
index 1b55e94004dff1aaa36124ac1b06d46027ed3550..47ee57bbf512f81dddd178b619857cc8ec553e8f 100644 (file)
@@ -10,7 +10,7 @@
 #include "directional-element-interface.hh"
 
 bool
-is_concave_single_notes (std::vector<int> const &positions, Direction beam_dir)
+is_concave_single_notes (vector<int> const &positions, Direction beam_dir)
 {
   Interval covering;
   covering.add_point (positions[0]);
@@ -57,7 +57,7 @@ is_concave_single_notes (std::vector<int> const &positions, Direction beam_dir)
 }
 
 Real
-calc_positions_concaveness (std::vector<int> const &positions, Direction beam_dir)
+calc_positions_concaveness (vector<int> const &positions, Direction beam_dir)
 {
   Real dy = positions.back () - positions[0];
   Real slope = dy / Real (positions.size () - 1);
@@ -87,7 +87,7 @@ Beam::calc_concaveness (SCM smob)
 {
   Grob *me = unsmob_grob (smob);
 
-  Link_array__Grob_ stems
+  vector<Grob*> stems
     = extract_grob_array (me, "stems");
 
   if (is_knee (me))
@@ -108,8 +108,8 @@ Beam::calc_concaveness (SCM smob)
   if (stems.size () <= 2)
     return SCM_UNSPECIFIED;
 
-  std::vector<int> close_positions;
-  std::vector<int> far_positions;
+  vector<int> close_positions;
+  vector<int> far_positions;
   for (vsize i = 0; i < stems.size (); i++)
     {
       /*
index e8a77ec1ffb8514ba77c149dcf5700fe1bed943d..d0ee1903d012c52b901d04693c756d7d44ed3ed9 100644 (file)
@@ -243,7 +243,7 @@ Beam_engraver::acknowledge_stem (Grob_info info)
   Music *m = info.ultimate_music_cause ();
   if (!m->is_mus_type ("rhythmic-event"))
     {
-      std::string s = _ ("stem must have Rhythmic structure");
+      string s = _ ("stem must have Rhythmic structure");
       if (info.music_cause ())
        info.music_cause ()->origin ()->warning (s);
       else
index 90e0bb7cdef31101736e127be02ff2ad18d96ff8..3bfa11dfd1229173e6c6432e8acd4fdf117f8636 100644 (file)
@@ -62,7 +62,7 @@ struct Quant_score
   Real demerits;
 
 #if DEBUG_QUANTING
-  std::string score_card_;
+  string score_card_;
 #endif
 };
 
@@ -78,7 +78,7 @@ struct Quant_score
 */
 
 int
-best_quant_score_idx (std::vector<Quant_score> const &qscores)
+best_quant_score_idx (vector<Quant_score> const &qscores)
 {
   Real best = 1e6;
   int best_idx = -1;
@@ -123,8 +123,8 @@ Beam::quanting (SCM smob, SCM posns)
   Real quants [] = {straddle, sit, inter, hang };
 
   int num_quants = int (sizeof (quants) / sizeof (Real));
-  std::vector<Real> quantsl;
-  std::vector<Real> quantsr;
+  vector<Real> quantsl;
+  vector<Real> quantsr;
 
   /*
     going to REGION_SIZE == 2, yields another 0.6 second with
@@ -139,11 +139,11 @@ Beam::quanting (SCM smob, SCM posns)
     Do stem computations.  These depend on YL and YR linearly, so we can
     precompute for every stem 2 factors.
   */
-  Link_array__Grob_ stems
+  vector<Grob*> stems
     = extract_grob_array (me, "stems");
-  std::vector<Stem_info> stem_infos;
-  std::vector<Real> base_lengths;
-  std::vector<Real> stem_xposns;
+  vector<Stem_info> stem_infos;
+  vector<Real> base_lengths;
+  vector<Real> stem_xposns;
 
   Drul_array<bool> dirs_found (0, 0);
   Grob *common[2];
@@ -209,7 +209,7 @@ Beam::quanting (SCM smob, SCM posns)
        quantsr.push_back (i + quants[j] + int (yr));
       }
 
-  std::vector<Quant_score> qscores;
+  vector<Quant_score> qscores;
 
   for (vsize l = 0; l < quantsl.size (); l++)
     for (vsize r = 0; r < quantsr.size (); r++)
@@ -327,10 +327,10 @@ Beam::quanting (SCM smob, SCM posns)
 }
 
 Real
-Beam::score_stem_lengths (Link_array__Grob_ const &stems,
-                         std::vector<Stem_info> const &stem_infos,
-                         std::vector<Real> const &base_stem_ys,
-                         std::vector<Real> const &stem_xs,
+Beam::score_stem_lengths (vector<Grob*> const &stems,
+                         vector<Stem_info> const &stem_infos,
+                         vector<Real> const &base_stem_ys,
+                         vector<Real> const &stem_xs,
                          Real xl, Real xr,
                          bool knee,
                          Real yl, Real yr,
index ce0f1aff2c82e1da286f33823b0266861f35e675..49acbbd541189fbc8b05b55a1f9b9d955ce8274e 100644 (file)
@@ -352,9 +352,9 @@ Beam::print (SCM grob)
       SCM left = (i > 0) ? scm_cdr (last_beaming) : SCM_EOL;
       SCM right = stem ? scm_car (this_beaming) : SCM_EOL;
 
-      std::vector<int> full_beams;
-      std::vector<int> lfliebertjes;
-      std::vector<int> rfliebertjes;
+      vector<int> full_beams;
+      vector<int> lfliebertjes;
+      vector<int> rfliebertjes;
 
       for (SCM s = left;
           scm_is_pair (s); s = scm_cdr (s))
@@ -506,7 +506,7 @@ Beam::print (SCM grob)
        should be switchable for those who want to twiddle with the
        parameters.
       */
-      std::string str;
+      string str;
       SCM properties = Font_interface::text_font_alist_chain (me);
 
       Direction stem_dir = stems.size () ? to_dir (stems[0]->get_property ("direction")) : UP;
@@ -614,7 +614,7 @@ Beam::consider_auto_knees (Grob *me)
   Grob *common = common_refpoint_of_array (stems, me, Y_AXIS);
   Real staff_space = Staff_symbol_referencer::staff_space (me);
 
-  std::vector<Interval> head_extents_array;
+  vector<Interval> head_extents_array;
   for (vsize i = 0; i < stems.size (); i++)
     {
       Grob *stem = stems[i];
@@ -785,7 +785,7 @@ Beam::calc_least_squares_positions (SCM smob, SCM posns)
   if (count < 1)
     return ly_interval2scm (pos);
   
-  std::vector<Real> x_posns;
+  vector<Real> x_posns;
   extract_grob_set (me, "stems", stems);
   Grob *commonx = common_refpoint_of_array (stems, me, X_AXIS);
   Grob *commony = common_refpoint_of_array (stems, me, Y_AXIS);
@@ -845,7 +845,7 @@ Beam::calc_least_squares_positions (SCM smob, SCM posns)
     }
   else
     {
-      std::vector<Offset> ideals;
+      vector<Offset> ideals;
       for (vsize i = 0; i < stems.size (); i++)
        {
          Grob *s = stems[i];
@@ -891,7 +891,7 @@ Beam::shift_region_to_valid (SCM grob, SCM posns)
   /*
     Code dup.
   */
-  std::vector<Real> x_posns;
+  vector<Real> x_posns;
   extract_grob_set (me, "stems", stems);
   Grob *commonx = common_refpoint_of_array (stems, me, X_AXIS);
   Grob *commony = common_refpoint_of_array (stems, me, Y_AXIS);
index 27dcc682654d69316d9bb1a35972635c4ee181cb..fb4b934a9e09efe4e530c0a050b06df82095dd8f 100644 (file)
@@ -68,9 +68,9 @@ Beaming_info_list::beamify (Moment &beat_length, bool subdivide)
   Drul_array<Beaming_info_list> splits;
   int m = best_splitpoint_index (beat_length, subdivide);
   bool split = subdivide && (m & at_beat); m = m & ~at_beat;
-  splits[LEFT].infos_ = std::vector<Beaming_info> (infos_.begin (),
+  splits[LEFT].infos_ = vector<Beaming_info> (infos_.begin (),
                                                   infos_.begin () + m);
-  splits[RIGHT].infos_ = std::vector<Beaming_info> (infos_.begin () + m,
+  splits[RIGHT].infos_ = vector<Beaming_info> (infos_.begin () + m,
                                                    infos_.end ());
 
   Direction d = LEFT;
index 47d0184329fa0e15696ac8bd85af493294be3657..f5489e7d40b16825bc18728800073f582895b7a3 100644 (file)
@@ -30,7 +30,7 @@ binomial_coefficient (Real over, int under)
 }
 
 void
-scale (std::vector<Offset> *array, Real x, Real y)
+scale (vector<Offset> *array, Real x, Real y)
 {
   for (vsize i = 0; i < array->size (); i++)
     {
@@ -40,7 +40,7 @@ scale (std::vector<Offset> *array, Real x, Real y)
 }
 
 void
-rotate (std::vector<Offset> *array, Real phi)
+rotate (vector<Offset> *array, Real phi)
 {
   Offset rot (complex_exp (Offset (0, phi)));
   for (vsize i = 0; i < array->size (); i++)
@@ -48,7 +48,7 @@ rotate (std::vector<Offset> *array, Real phi)
 }
 
 void
-translate (std::vector<Offset> *array, Offset o)
+translate (vector<Offset> *array, Offset o)
 {
   for (vsize i = 0; i < array->size (); i++)
     (*array)[i] += o;
@@ -67,7 +67,7 @@ Real
 Bezier::get_other_coordinate (Axis a, Real x) const
 {
   Axis other = Axis ((a +1) % NO_AXES);
-  std::vector<Real> ts = solve_point (a, x);
+  vector<Real> ts = solve_point (a, x);
 
   if (ts.size () == 0)
     {
@@ -169,8 +169,8 @@ Bezier::polynomial (Axis a) const
 /**
    Remove all numbers outside [0, 1] from SOL
 */
-std::vector<Real>
-filter_solutions (std::vector<Real> sol)
+vector<Real>
+filter_solutions (vector<Real> sol)
 {
   for (vsize i = sol.size (); i--;)
     if (sol[i] < 0 || sol[i] > 1)
@@ -181,7 +181,7 @@ filter_solutions (std::vector<Real> sol)
 /**
    find t such that derivative is proportional to DERIV
 */
-std::vector<Real>
+vector<Real>
 Bezier::solve_derivative (Offset deriv) const
 {
   Polynomial xp = polynomial (X_AXIS);
@@ -197,13 +197,13 @@ Bezier::solve_derivative (Offset deriv) const
 /*
   Find t such that curve_point (t)[AX] == COORDINATE
 */
-std::vector<Real>
+vector<Real>
 Bezier::solve_point (Axis ax, Real coordinate) const
 {
   Polynomial p (polynomial (ax));
   p.coefs_[0] -= coordinate;
 
-  std::vector<Real> sol (p.solve ());
+  vector<Real> sol (p.solve ());
   return filter_solutions (sol);
 }
 
@@ -217,7 +217,7 @@ Bezier::extent (Axis a) const
   Offset d;
   d[Axis (o)] = 1.0;
   Interval iv;
-  std::vector<Real> sols (solve_derivative (d));
+  vector<Real> sols (solve_derivative (d));
   sols.push_back (1.0);
   sols.push_back (0.0);
   for (vsize i = sols.size (); i--;)
index 818d5a4f2b066723443cfc38054ef9a84b7e5181..90d4a4ac02a10ee3a61501d32cd53694e2dd4fb7 100644 (file)
@@ -12,7 +12,7 @@ using namespace std;
 #include "binary-source-file.hh"
 #include "string-convert.hh"
 
-Binary_source_file::Binary_source_file (std::string &file_name_string)
+Binary_source_file::Binary_source_file (string &file_name_string)
   : Source_file (file_name_string)
 {
 }
@@ -21,7 +21,7 @@ Binary_source_file::~Binary_source_file ()
 {
 }
 
-std::string
+string
 Binary_source_file::quote_input (char const *pos_str0) const
 {
   assert (this);
@@ -31,18 +31,18 @@ Binary_source_file::quote_input (char const *pos_str0) const
   char const *begin_str0 = max (pos_str0 - 8, c_str ());
   char const *end_str0 = min (pos_str0 + 7, c_str () + length ());
 
-  std::string pre_string (begin_str0, pos_str0 - begin_str0);
+  string pre_string (begin_str0, pos_str0 - begin_str0);
   pre_string = String_convert::bin2hex (pre_string);
   for (ssize i = 2; i < pre_string.length (); i += 3)
     pre_string = pre_string.substr (0, i)
       + " " + pre_string.substr (i, NPOS);
-  std::string post_string (pos_str0, end_str0 - pos_str0);
+  string post_string (pos_str0, end_str0 - pos_str0);
   post_string = String_convert::bin2hex (post_string);
   for (ssize i = 2; i < post_string.length (); i += 3)
     post_string = post_string.substr (0, i)
       + " " + post_string.substr (i, NPOS);
 
-  std::string str = pre_string
+  string str = pre_string
     + to_string ('\n')
     + to_string (' ', pre_string.length () + 1)
     + post_string;
index 438bbe4c141503bf76b9e340fea3abcbc8ee020b..bf83b36def3e5044ff49d4ad33063bc08df87523 100644 (file)
 #include "cpu-timer.hh"
 #include "simple-spacer.hh"
 
-std::vector<int>
+vector<int>
 Break_algorithm::find_break_indices () const
 {
-  Link_array__Grob_ all = pscore_->root_system ()->columns ();
-  std::vector<int> retval;
+  vector<Grob*> all = pscore_->root_system ()->columns ();
+  vector<int> retval;
 
   for (vsize i = 0; i < all.size (); i++)
     if (Item::is_breakable (all[i]))
@@ -32,11 +32,11 @@ Break_algorithm::find_break_indices () const
   return retval;
 }
 
-Link_array__Grob_
+vector<Grob*>
 Break_algorithm::find_breaks () const
 {
-  Link_array__Grob_ all = pscore_->root_system ()->columns ();
-  Link_array__Grob_ retval;
+  vector<Grob*> all = pscore_->root_system ()->columns ();
+  vector<Grob*> retval;
 
   for (vsize i = 0; i < all.size (); i++)
     if (Item::is_breakable (all[i]))
@@ -50,7 +50,7 @@ Break_algorithm::find_breaks () const
 }
 
 Simple_spacer_wrapper *
-Break_algorithm::generate_spacing_problem (Link_array__Grob_ const &curline,
+Break_algorithm::generate_spacing_problem (vector<Grob*> const &curline,
                                           Interval line) const
 {
   Simple_spacer_wrapper *spw = new Simple_spacer_wrapper;
@@ -88,10 +88,10 @@ Break_algorithm::set_pscore (Paper_score *s)
   linewidth_ = s->layout ()->get_dimension (ly_symbol2scm ("line-width"));
 }
 
-std::vector<Column_x_positions>
+vector<Column_x_positions>
 Break_algorithm::solve () const
 {
-  std::vector<Column_x_positions> h= do_solve ();
+  vector<Column_x_positions> h= do_solve ();
 
   return h;
 }
index 854d2778edecc80467c7c971a0a4a9b343eb9d6a..7e494de706447880142333943c45f71adb6fbb69 100644 (file)
@@ -45,7 +45,7 @@ Break_align_interface::self_align_callback (SCM smob)
 
   So we return the correct order as an array.
 */
-Link_array__Grob_
+vector<Grob*>
 Break_align_interface::ordered_elements (Grob *grob)
 {
   Item *me = dynamic_cast<Item *> (grob);
@@ -56,14 +56,14 @@ Break_align_interface::ordered_elements (Grob *grob)
       || scm_c_vector_length (order_vec) < 3)
     return elts;
 
-  Link_array__Grob_ writable_elts (elts);
+  vector<Grob*> writable_elts (elts);
   SCM order = scm_vector_ref (order_vec,
                              scm_from_int (me->break_status_dir () + 1));
 
   /*
     Copy in order specified in BREAK-ALIGN-ORDER.
   */
-  Link_array__Grob_ new_elts;
+  vector<Grob*> new_elts;
   for (; scm_is_pair (order); order = scm_cdr (order))
     {
       SCM sym = scm_car (order);
@@ -95,8 +95,8 @@ Break_align_interface::calc_positioning_done (SCM smob)
   Grob *grob = unsmob_grob (smob);  
   Item *me = dynamic_cast<Item *> (grob);
 
-  Link_array__Grob_ elems = ordered_elements (me);
-  std::vector<Interval> extents;
+  vector<Grob*> elems = ordered_elements (me);
+  vector<Interval> extents;
 
   int last_nonempty = -1;
   for (vsize i = 0; i < elems.size (); i++)
@@ -111,7 +111,7 @@ Break_align_interface::calc_positioning_done (SCM smob)
   while (idx < extents.size () && extents[idx].is_empty ())
     idx++;
 
-  std::vector<Real> offsets;
+  vector<Real> offsets;
   offsets.resize (elems.size ());
   for (vsize i = 0; i < offsets.size ();i++)
     offsets[i] = 0.0;
@@ -183,11 +183,11 @@ Break_align_interface::calc_positioning_done (SCM smob)
       bool entry_found = scm_is_pair (entry);
       if (!entry_found)
        {
-         std::string sym_string;
+         string sym_string;
          if (scm_is_symbol (rsym))
            sym_string = ly_symbol2string (rsym);
 
-         std::string orig_string;
+         string orig_string;
          if (unsmob_grob (l->get_property ("cause")))
            orig_string = unsmob_grob (l->get_property ("cause"))->name ();
 
index 2c822f8548e3cf8029dc7297bd8a16b14df2cfc9..0c1e996580e7ca3826b8371ab72c489daf2b1079 100644 (file)
@@ -139,12 +139,12 @@ do_break_substitution (SCM src)
 /*
   Perform substitution on GROB_LIST using a constant amount of stack.
 */
-Link_array__Grob_ temporary_substition_array;
+vector<Grob*> temporary_substition_array;
 void
 substitute_grob_array (Grob_array *grob_arr, Grob_array *new_arr)
 {
-  Link_array__Grob_ &old_grobs (grob_arr->array_reference ());
-  Link_array__Grob_ *new_grobs (new_arr == grob_arr
+  vector<Grob*> &old_grobs (grob_arr->array_reference ());
+  vector<Grob*> *new_grobs (new_arr == grob_arr
                               ? & temporary_substition_array
                               : &new_arr->array_reference ());
 
@@ -356,15 +356,15 @@ Spanner::fast_substitute_grob_array (SCM sym,
   qsort (vec, item_index,
         sizeof (Substitution_entry), &Substitution_entry::item_compare);
 
-  std::vector<Slice> item_indices;
-  std::vector<Slice> spanner_indices;
+  vector<Slice> item_indices;
+  vector<Slice> spanner_indices;
   for (int i = 0; i <= system_range.length (); i++)
     {
       item_indices.push_back (Slice (len, 0));
       spanner_indices.push_back (Slice (len, 0));
     }
 
-  std::vector<Slice> *arrs[]
+  vector<Slice> *arrs[]
     = {
     &item_indices, &spanner_indices
   };
index ff13c3d204ee516370f86d7a0f4b3b079ad1b988..43631687c88c5594d580cde15daeee852b710955 100644 (file)
 #include "warn.hh"
 
 void
-Change_iterator::error (std::string reason)
+Change_iterator::error (string reason)
 {
-  std::string to_type = ly_symbol2string (get_music ()->get_property ("change-to-type"));
-  std::string to_id = ly_scm2string (get_music ()->get_property ("change-to-id"));
+  string to_type = ly_symbol2string (get_music ()->get_property ("change-to-type"));
+  string to_id = ly_scm2string (get_music ()->get_property ("change-to-id"));
 
-  std::string warn1 = _f ("can't change `%s' to `%s'", to_type, to_id)
+  string warn1 = _f ("can't change `%s' to `%s'", to_type, to_id)
     + ": " + reason;
 
   /*
     GUHG!
   */
-  std::string warn2= "Change_iterator::process (): "
+  string warn2= "Change_iterator::process (): "
     + get_outlet ()->context_name () + " = `"
     + get_outlet ()->id_string () + "': ";
   warning (warn2);
@@ -43,7 +43,7 @@ Change_iterator::process (Moment m)
   Context *last = 0;
 
   SCM to_type = get_music ()->get_property ("change-to-type");
-  std::string to_id = ly_scm2string (get_music ()->get_property ("change-to-id"));
+  string to_id = ly_scm2string (get_music ()->get_property ("change-to-id"));
 
   /* find the type  of translator that we're changing.
 
@@ -57,7 +57,7 @@ Change_iterator::process (Moment m)
 
   if (current && current->id_string () == to_id)
     {
-      std::string msg;
+      string msg;
       msg += _f ("can't change, already in translator: %s", to_id);
     }
 
index a5da925e604c31c6d5a07a5aaf03bb00f641247d..963c3033f22e67ecaf6b0a0c46ca73dd45cc2d63 100644 (file)
@@ -31,7 +31,7 @@ private:
   void add_note (Music *);
 
   Item *chord_name_;
-  Link_array__Music_ notes_;
+  vector<Music*> notes_;
 
   SCM last_chord_;
 };
index d28af332f6e892053a42a17c223da2380e9255c9..9c6cd1069f9b475363579816f45bf7f0f4f9e1b1 100644 (file)
@@ -159,7 +159,7 @@ Chord_tremolo_engraver::acknowledge_stem (Grob_info info)
        Beam::add_stem (beam_, s);
       else
        {
-         std::string s = _ ("stem must have Rhythmic structure");
+         string s = _ ("stem must have Rhythmic structure");
          if (info.music_cause ())
            info.music_cause ()->origin ()->warning (s);
          else
index 59d9375c007829534bb90f98869fc396708ef2cf..0718f8bd536ac9c2c1c0e3ce59e307284b8faa7e 100644 (file)
@@ -23,7 +23,7 @@ Clef::calc_glyph_name (SCM smob)
 
   if (scm_is_string (glyph))
     {
-      std::string str = ly_scm2string (glyph);
+      string str = ly_scm2string (glyph);
 
       if (to_boolean (s->get_property ("non-default"))
          && s->break_status_dir () != RIGHT
@@ -48,7 +48,7 @@ Clef::print (SCM smob)
   if (!scm_is_string (glyph_scm))
     return SCM_EOL;
 
-  std::string glyph = std::string (ly_scm2string (glyph_scm));
+  string glyph = string (ly_scm2string (glyph_scm));
   Font_metric *fm = Font_interface::get_default_font (me);
   Stencil out = fm->find_by_name (glyph);
   if (out.is_empty ())
index d564a2bdfcb752de8cb21f2ca67eddbed0641651..faac5f79d0c90c5e66e82cbc0f9c41aa089f9c77 100644 (file)
@@ -24,7 +24,7 @@ protected:
   void stop_translation_timestep ();
   virtual void finalize ();
 private:
-  Link_array__Music_ cluster_notes_;
+  vector<Music*> cluster_notes_;
   Item *beacon_;
 
   void typeset_grobs ();
index a9ac17408a2c8a294bf9c09b7f19b2a1e6a552d5..d4cb47eb0bf1ebed370dc1e94b9ee5ced9c7f6e2 100644 (file)
@@ -27,7 +27,7 @@ using namespace std;
   TODO: Add support for cubic spline segments.
 */
 Stencil
-brew_cluster_piece (Grob *me, std::vector<Offset> bottom_points, std::vector<Offset> top_points)
+brew_cluster_piece (Grob *me, vector<Offset> bottom_points, vector<Offset> top_points)
 {
   Real blotdiameter = Staff_symbol_referencer::staff_space (me) / 2;
 
@@ -38,7 +38,7 @@ brew_cluster_piece (Grob *me, std::vector<Offset> bottom_points, std::vector<Off
   Offset hvpadding = 0.5 * hpadding + vpadding;
 
   SCM shape_scm = me->get_property ("style");
-  std::string shape;
+  string shape;
 
   if (scm_is_symbol (shape_scm))
     shape = ly_symbol2string (shape_scm);
@@ -50,7 +50,7 @@ brew_cluster_piece (Grob *me, std::vector<Offset> bottom_points, std::vector<Off
     }
 
   Stencil out;
-  std::vector<Offset> points;
+  vector<Offset> points;
   points.clear ();
   int size = bottom_points.size ();
   if (shape == "leftsided-stairs")
@@ -133,7 +133,7 @@ Cluster::print (SCM smob)
 
   Grob *commonx = left_bound->common_refpoint (right_bound, X_AXIS);
 
-  Link_array__Grob_ const &cols = extract_grob_array (me, "columns");
+  vector<Grob*> const &cols = extract_grob_array (me, "columns");
   if (cols.empty ())
     {
       me->warning (_ ("junking empty cluster"));
@@ -144,8 +144,8 @@ Cluster::print (SCM smob)
 
   commonx = common_refpoint_of_array (cols, commonx, X_AXIS);
   Grob *commony = common_refpoint_of_array (cols, me, Y_AXIS);
-  std::vector<Offset> bottom_points;
-  std::vector<Offset> top_points;
+  vector<Offset> bottom_points;
+  vector<Offset> top_points;
 
   Real left_coord = left_bound->relative_coordinate (commonx, X_AXIS);
 
@@ -175,7 +175,7 @@ Cluster::print (SCM smob)
       if (spanner->get_break_index () < orig->broken_intos_.size () - 1)
        {
          Spanner *next = orig->broken_intos_[spanner->get_break_index () + 1];
-         Link_array__Grob_ const &next_cols = extract_grob_array (next, "columns");
+         vector<Grob*> const &next_cols = extract_grob_array (next, "columns");
          if (next_cols.size () > 0)
            {
              Grob *next_commony = common_refpoint_of_array (next_cols, next, Y_AXIS);
index 113c3b26660afab110e73bd5c30bfd7e42a238f3..ff1691ef643312fe78fd2ab2519216ff02b36402 100644 (file)
@@ -35,7 +35,7 @@
  * - collapse superflous space after each ligature (TODO).
  *
  * Concrete subclasses must implement function build_ligature (Spanner
- * *, std::vector<Grob_info>).  This function is responsible for actually
+ * *, vector<Grob_info>).  This function is responsible for actually
  * building the ligature by transforming the array of noteheads.
  *
  * Currently, there are two subclasses: Gregorian_ligature_engraver
@@ -116,7 +116,7 @@ Coherent_ligature_engraver::get_set_column (Item *item, Paper_column *column)
       return;
     }
 
-  std::string name = parent->name ();
+  string name = parent->name ();
   if (name != "PaperColumn")
     {
       // Change column not only for targeted item (NoteColumn), but
@@ -159,13 +159,13 @@ Coherent_ligature_engraver::get_set_column (Item *item, Paper_column *column)
  * occurs within the broken ligatures any more.
  */
 void
-Coherent_ligature_engraver::collect_accidentals (Spanner *, std::vector<Grob_info>)
+Coherent_ligature_engraver::collect_accidentals (Spanner *, vector<Grob_info>)
 {
   /* TODO */
 }
 
 void
-compute_delta_pitches (std::vector<Grob_info> primitives)
+compute_delta_pitches (vector<Grob_info> primitives)
 {
   int prev_pitch = 0;
   int delta_pitch = 0;
@@ -190,7 +190,7 @@ compute_delta_pitches (std::vector<Grob_info> primitives)
 
 void
 Coherent_ligature_engraver::typeset_ligature (Spanner *ligature,
-                                             std::vector<Grob_info> primitives)
+                                             vector<Grob_info> primitives)
 {
   // compute some commonly needed context info stored as grob
   // properties
index 1bdd9609680beadd640e899c352fe19dd4f126d6..404c1a5c71b1d73736bd26f1af8f7c5f0d195326 100644 (file)
@@ -14,7 +14,7 @@
 class Collision_engraver : public Engraver
 {
   Item *col_;
-  Link_array__Grob_ note_columns_;
+  vector<Grob*> note_columns_;
 
 protected:
   DECLARE_ACKNOWLEDGER (note_column);
index af0cb783f940c84c4bb447f6c5277f16fb4e0f36..6fe80dc30949e0bfb9638141c79bfd93c55ffdd5 100644 (file)
@@ -43,13 +43,13 @@ using namespace std;
 
 class Completion_heads_engraver : public Engraver
 {
-  Link_array__Item_ notes_;
-  Link_array__Item_ prev_notes_;
-  Link_array__Grob_ ties_;
+  vector<Item*> notes_;
+  vector<Item*> prev_notes_;
+  vector<Grob*> ties_;
 
-  Link_array__Item_ dots_;
-  Link_array__Music_ note_events_;
-  Link_array__Music_ scratch_note_events_;
+  vector<Item*> dots_;
+  vector<Music*> note_events_;
+  vector<Music*> scratch_note_events_;
 
   Moment note_end_mom_;
   bool is_first_;
index 80663c91857a4f1579360b7d69103d4553c85f04..d8349f4d97ad3a2fad5f9a0668bb14e82449e369 100644 (file)
@@ -192,20 +192,20 @@ Context_def::get_default_child (SCM user_mod) const
   return name;
 }
 
-Link_array__Context_def_
+vector<Context_def*>
 Context_def::path_to_acceptable_context (SCM type_sym, Output_def *odef) const
 {
   assert (scm_is_symbol (type_sym));
 
   SCM accepted = get_accepted (SCM_EOL);
 
-  Link_array__Context_def_ accepteds;
+  vector<Context_def*> accepteds;
   for (SCM s = accepted; scm_is_pair (s); s = scm_cdr (s))
     if (Context_def *t = unsmob_context_def (find_context_def (odef,
                                                               scm_car (s))))
       accepteds.push_back (t);
 
-  Link_array__Context_def_ best_result;
+  vector<Context_def*> best_result;
   for (vsize i = 0; i < accepteds.size (); i++)
     {
       /* do not check aliases, because \context Staff should not
@@ -222,7 +222,7 @@ Context_def::path_to_acceptable_context (SCM type_sym, Output_def *odef) const
     {
       Context_def *g = accepteds[i];
 
-      Link_array__Context_def_ result
+      vector<Context_def*> result
        = g->path_to_acceptable_context (type_sym, odef);
       if (result.size () && result.size () < best_depth)
        {
index 323dd7ca502a71fd560e30b7138ec4df63350163..9036d72fb6d616fa90bd2dbac66f9a8b690d169e 100644 (file)
@@ -22,7 +22,7 @@ Context_specced_music_iterator::construct_children ()
 {
   SCM ct = get_music ()->get_property ("context-type");
 
-  std::string c_id;
+  string c_id;
   SCM ci = get_music ()->get_property ("context-id");
   if (scm_is_string (ci))
     c_id = ly_scm2string (ci);
index 0fbdc207317fe272bd7a23201350799fb137e3d6..b1e4a6629de9589c28e907ae6cf4d4c3d482912b 100644 (file)
@@ -124,7 +124,7 @@ Context::create_unique_context (SCM n, SCM operations)
   /*
     TODO: use accepts_list_.
   */
-  Link_array__Context_def_ path
+  vector<Context_def*> path
     = unsmob_context_def (definition_)->path_to_acceptable_context (n, get_output_def ());
 
   if (path.size ())
@@ -161,7 +161,7 @@ Context::create_unique_context (SCM n, SCM operations)
 }
 
 Context *
-Context::find_create_context (SCM n, std::string id, SCM operations)
+Context::find_create_context (SCM n, string id, SCM operations)
 {
   /*
     Don't create multiple score contexts.
@@ -182,7 +182,7 @@ Context::find_create_context (SCM n, std::string id, SCM operations)
   /*
     TODO: use accepts_list_.
   */
-  Link_array__Context_def_ path
+  vector<Context_def*> path
     = unsmob_context_def (definition_)->path_to_acceptable_context (n, get_output_def ());
 
   if (path.size ())
@@ -194,7 +194,7 @@ Context::find_create_context (SCM n, std::string id, SCM operations)
        {
          SCM ops = (i == path.size () -1) ? operations : SCM_EOL;
 
-         std::string this_id = "";
+         string this_id = "";
          if (i == path.size () -1)
            this_id = id;
 
@@ -224,10 +224,10 @@ Context::find_create_context (SCM n, std::string id, SCM operations)
 
 Context *
 Context::create_context (Context_def *cdef,
-                        std::string id,
+                        string id,
                         SCM ops)
 {
-  std::string type = ly_symbol2string (cdef->get_context_name ());
+  string type = ly_symbol2string (cdef->get_context_name ());
   Object_key const *key = get_context_key (type, id);
   Context *new_context
     = cdef->instantiate (ops, key);
@@ -240,12 +240,12 @@ Context::create_context (Context_def *cdef,
 }
 
 Object_key const *
-Context::get_context_key (std::string type, std::string id)
+Context::get_context_key (string type, string id)
 {
   if (!use_object_keys)
     return 0;
 
-  std::string now_key = type + "@" + id;
+  string now_key = type + "@" + id;
 
   int disambiguation_count = 0;
   if (context_counts_.find (now_key) != context_counts_.end ())
@@ -260,7 +260,7 @@ Context::get_context_key (std::string type, std::string id)
 }
 
 Object_key const *
-Context::get_grob_key (std::string name)
+Context::get_grob_key (string name)
 {
   if (!use_object_keys)
     return 0;
@@ -273,7 +273,7 @@ Context::get_grob_key (std::string name)
   unique identifier for each (book,score) tuple.
 */
 Object_key const *
-Context::create_grob_key (std::string name)
+Context::create_grob_key (string name)
 {
   int disambiguation_count = 0;
   if (grob_counts_.find (name) != grob_counts_.end ())
@@ -314,7 +314,7 @@ Context::get_default_interpreter ()
       SCM nm = default_child_context_name ();
       SCM st = find_context_def (get_output_def (), nm);
 
-      std::string name = ly_symbol2string (nm);
+      string name = ly_symbol2string (nm);
       Context_def *t = unsmob_context_def (st);
       if (!t)
        {
@@ -425,7 +425,7 @@ Context::remove_context (Context *trans)
 */
 Context *
 find_context_below (Context *where,
-                   SCM type, std::string id)
+                   SCM type, string id)
 {
   if (where->is_alias (type))
     {
@@ -458,7 +458,7 @@ Context::context_name_symbol () const
   return td->get_context_name ();
 }
 
-std::string
+string
 Context::context_name () const
 {
   return ly_symbol2string (context_name_symbol ());
index b68ed603882f9a7c79325cfddb23632a0427297d..3b3f7610e0db9efd36c217fd8c7e851d1e5f74db 100644 (file)
@@ -37,8 +37,8 @@ public:
 private:
   Item *create_custos ();
   bool custos_permitted_;
-  Link_array__Grob_ custodes_;
-  std::vector<Pitch> pitches_;
+  vector<Grob*> custodes_;
+  vector<Pitch> pitches_;
 };
 
 Custos_engraver::Custos_engraver ()
index 5b6fc3df26e54339ad49ce59a92f77a9628b5b6e..f57cdc20eaa70fa4b3c3c9829a7fa0e0740e57cf 100644 (file)
@@ -33,7 +33,7 @@ Custos::print (SCM smob)
   Item *me = (Item *)unsmob_grob (smob);
 
   SCM scm_style = me->get_property ("style");
-  std::string style;
+  string style;
   if (scm_is_symbol (scm_style))
     style = ly_symbol2string (scm_style);
   else
@@ -53,7 +53,7 @@ Custos::print (SCM smob)
   int pos = Staff_symbol_referencer::get_rounded_position (me);
   int sz = Staff_symbol_referencer::line_count (me) - 1;
 
-  std::string font_char = "custodes." + style + ".";
+  string font_char = "custodes." + style + ".";
   if (pos < neutral_pos)
     font_char += "u";
   else if (pos > neutral_pos)
index f5c4a8ad9543ac066cdb4a04cc2caf9cdae07732..65a16a094e125637575ebbb344b22bb86d6bfc76 100644 (file)
@@ -17,7 +17,7 @@ class Dot_column_engraver : public Engraver
 {
   Grob *dotcol_;
   Grob *stem_;
-  Link_array__Item_ heads_;
+  vector<Item*> heads_;
 public:
   TRANSLATOR_DECLARATIONS (Dot_column_engraver);
 
index f3e2af55f9104e963971705622a02aa1d5c632be..2d01faa0268db39e3d16d74c4177ec5e7fd1d659 100644 (file)
@@ -204,7 +204,7 @@ SCM
 Dot_column::calc_positioning_done (SCM smob)
 {
   Grob *me = unsmob_grob (smob);  
-  Link_array__Grob_ dots
+  vector<Grob*> dots
     = extract_grob_array (me, "dots");
 
   { /*
index 0627b2b7201a2f3fe6aa10f3cc4b8fe1ebb61d7a..1b2c7be8799fc59eba0347cd9d362783cdeaf9f2 100644 (file)
@@ -26,7 +26,7 @@ Dots::print (SCM d)
 
   if (scm_is_number (c))
     {
-      Stencil d = Font_interface::get_default_font (sc)->find_by_name (std::string ("dots.dot"));
+      Stencil d = Font_interface::get_default_font (sc)->find_by_name (string ("dots.dot"));
       Real dw = d.extent (X_AXIS).length ();
 
       /*
index 9293fc72bc553c4c09839cf3e25c757c0d7dd0da..1d1b8d2331c226a0845850cfd9b9e0d2fa18d74b 100644 (file)
@@ -18,10 +18,10 @@ using namespace std;
 
 class Drum_notes_engraver : public Engraver
 {
-  Link_array__Item_ notes_;
-  Link_array__Item_ dots_;
-  Link_array__Item_ scripts_;
-  Link_array__Music_ events_;
+  vector<Item*> notes_;
+  vector<Item*> dots_;
+  vector<Item*> scripts_;
+  vector<Music*> events_;
 
 public:
   TRANSLATOR_DECLARATIONS (Drum_notes_engraver);
index 0dab3e2890f66377de3e4cc3ffbd0f7c44757000..a29b7a1dee7986a512317066d44f61c7e603fd92 100644 (file)
@@ -25,8 +25,8 @@ protected:
   void process_music ();
 
 private:
-  Link_array__Music_ note_evs_;
-  Link_array__Audio_note_ notes_;
+  vector<Music*> note_evs_;
+  vector<Audio_note*> notes_;
 };
 
 Drum_note_performer::Drum_note_performer ()
index b21ca97a97407844590ea7b4bbd596b7fa7cf00e..413ac889ec497e7447b5e443c8e783b3704513dd 100644 (file)
@@ -60,17 +60,17 @@ Duration::get_length () const
   return mom * factor_;
 }
 
-std::string
+string
 Duration::to_string () const
 {
-  std::string s;
+  string s;
 
   if (durlog_ < 0)
-    s = "log = " + std::to_string (durlog_);
+    s = "log = " + ::to_string (durlog_);
   else
-    s = std::to_string (1 << durlog_);
+    s = ::to_string (1 << durlog_);
 
-  s += std::to_string ('.', dots_);
+  s += ::to_string ('.', dots_);
   if (factor_ != Moment (Rational (1, 1)))
     s += "*" + factor_.to_string ();
   return s;
index 3dcbea5ce60669eceff71b6a0713525dc8ddebfd..8d4cb2880f195d1cd0c819092023872ffb154fb5 100644 (file)
@@ -55,8 +55,8 @@ class Dynamic_engraver : public Engraver
 
   Drul_array<Music *> accepted_spanevents_drul_;
 
-  Link_array__Note_column_ pending_columns_;
-  Link_array__Grob_ pending_elements_;
+  vector<Note_column*> pending_columns_;
+  vector<Grob*> pending_elements_;
 
   void typeset_all ();
 
@@ -187,7 +187,7 @@ Dynamic_engraver::process_music ()
     {
       if (current_cresc_ev_)
        {
-         std::string msg = _ ("already have a decrescendo");
+         string msg = _ ("already have a decrescendo");
          if (current_cresc_ev_->is_mus_type ("decrescendo-event"))
            msg = _ ("already have a crescendo");
 
@@ -205,7 +205,7 @@ Dynamic_engraver::process_music ()
            TODO: Use symbols.
          */
 
-         std::string start_type
+         string start_type
            = ly_symbol2string (current_cresc_ev_->get_property ("name"));
 
          /*
index 8d97f2998d96286d5b23d344ed99d5487db52294..d6c5f78c26ec7d6fc6c3b1e1955c355ec2f1789b 100644 (file)
@@ -63,12 +63,12 @@ struct Figured_bass_engraver : public Engraver
   void add_brackets ();
   void create_grobs ();
 
-  void center_continuations (Link_array__Spanner_ const &consecutive_lines);
+  void center_continuations (vector<Spanner*> const &consecutive_lines);
   void center_repeated_continuations ();
 protected:
-  std::vector<Figure_group> groups_;
+  vector<Figure_group> groups_;
   Spanner *alignment_;
-  Link_array__Music_ new_musics_;
+  vector<Music*> new_musics_;
   bool continuation_;
   bool new_music_found_;
   
@@ -165,11 +165,11 @@ Figured_bass_engraver::try_music (Music *m)
 }
 
 void
-Figured_bass_engraver::center_continuations (Link_array__Spanner_ const &consecutive_lines)
+Figured_bass_engraver::center_continuations (vector<Spanner*> const &consecutive_lines)
 {
   if (consecutive_lines.size () == 2)
     {
-      Link_array__Grob_ left_figs;
+      vector<Grob*> left_figs;
       for (vsize j = consecutive_lines.size(); j--;)
        left_figs.push_back (consecutive_lines[j]->get_bound (LEFT));
 
@@ -185,7 +185,7 @@ Figured_bass_engraver::center_continuations (Link_array__Spanner_ const &consecu
 void
 Figured_bass_engraver::center_repeated_continuations ()
 {  
-  Link_array__Spanner_ consecutive_lines;
+  vector<Spanner*> consecutive_lines;
   for (vsize i = 0; i <= groups_.size(); i++)
     {
       if (i < groups_.size ()
@@ -220,7 +220,7 @@ Figured_bass_engraver::clear_spanners ()
 void
 Figured_bass_engraver::add_brackets ()
 {
-  Link_array__Grob_ encompass;
+  vector<Grob*> encompass;
   bool inside = false;
   for (vsize i = 0; i < groups_.size (); i ++)
     {
@@ -318,7 +318,7 @@ Figured_bass_engraver::process_music ()
 
   if (use_extenders)
     {
-      std::vector<int> junk_continuations;
+      vector<int> junk_continuations;
       for (vsize i = 0; i < groups_.size(); i++)
        {
                Figure_group &group = groups_[i];
@@ -349,7 +349,7 @@ Figured_bass_engraver::process_music ()
       /*
        Ugh, repeated code.
        */
-      Link_array__Spanner_ consecutive;
+      vector<Spanner*> consecutive;
       if (to_boolean (get_property ("figuredBassCenterContinuations")))
        {
          for (vsize i = 0; i <= junk_continuations.size (); i++)
index 8d3eb19c8e3800623105ab5d0cf2288caa17ea47..c5c168bc140a2c38a5b4376f3337c369a6b45aba 100644 (file)
@@ -12,10 +12,10 @@ using namespace std;
 #include "file-name-map.hh"
 #include "lily-guile.hh"
 
-map<std::string, std::string> file_name_map_global;
+map<string, string> file_name_map_global;
 
-std::string
-map_file_name (std::string s)
+string
+map_file_name (string s)
 {
   if (file_name_map_global.find (s) != file_name_map_global.end ())
     s = file_name_map_global[s];
index daace643e49e110a421e5292b7004ba11cb4f07d..a8c4fcf68085bedfe8c5f78bd7e2306cc6345d8b 100644 (file)
@@ -15,8 +15,8 @@
 
 class Fingering_engraver : public Engraver
 {
-  Link_array__Music_ events_;
-  Link_array__Item_ fingerings_;
+  vector<Music*> events_;
+  vector<Item*> fingerings_;
 
 public:
   TRANSLATOR_DECLARATIONS (Fingering_engraver);
index c90598b72a2b44e9474058f8080baefc15721317..b404354e4db8d6e2988573ac3aebce9c3c1dbd25 100644 (file)
@@ -37,14 +37,14 @@ init_fontconfig ()
   if (!is_file ((char*)cache_file))
     message (_f ("Rebuilding FontConfig cache %s. this may take a while...", cache_file));
                        
-  std::vector<std::string> dirs;
+  vector<string> dirs;
 
   dirs.push_back (prefix_directory + "/fonts/otf/");
   dirs.push_back (prefix_directory + "/fonts/type1/");
   
   for (vsize i = 0; i < dirs.size (); i++)
     {
-      std::string dir = dirs[i];
+      string dir = dirs[i];
       if (!FcConfigAppFontAddDir (font_config_global, (FcChar8 *)dir.c_str ()))
        error (_f ("adding font directory: %s", dir.c_str ()));
       else if (be_verbose_global)
index 843d38701483a2cd7348269165a83a8b97587b56..eccc9d2441c02076e375a679e2983788f801a43f 100644 (file)
@@ -30,7 +30,7 @@ Font_metric::design_size () const
 }
 
 Stencil
-Font_metric::find_by_name (std::string s) const
+Font_metric::find_by_name (string s) const
 {
   replace_all (s, '-', 'M');
   int idx = name_to_index (s);
@@ -83,7 +83,7 @@ Font_metric::get_indexed_char (vsize k) const
 }
 
 vsize
-Font_metric::name_to_index (std::string) const
+Font_metric::name_to_index (string) const
 {
   return VPOS;
 }
@@ -129,10 +129,10 @@ Font_metric::font_file_name () const
   return scm_car (description_);
 }
 
-std::string
+string
 Font_metric::font_name () const
 {
-  std::string s ("unknown");
+  string s ("unknown");
   return s;
 }
 
@@ -168,7 +168,7 @@ Font_metric::get_indexed_char_stencil (vsize code) const
 }
 
 Offset
-Font_metric::attachment_point (std::string) const
+Font_metric::attachment_point (string) const
 {
   return Offset (0, 0);
 }
@@ -180,7 +180,7 @@ Font_metric::sub_fonts () const
 }
 
 Stencil
-Font_metric::text_stencil (std::string str) const
+Font_metric::text_stencil (string str) const
 {
   SCM lst = scm_list_3 (ly_symbol2scm ("text"),
                        this->self_scm (),
@@ -191,7 +191,7 @@ Font_metric::text_stencil (std::string str) const
 }
 
 Box
-Font_metric::text_dimension (std::string) const
+Font_metric::text_dimension (string) const
 {
   return Box (Interval (0, 0), Interval (0, 0));
 }
index 27caa90fbf684d16a29d2582f592afaf8ec017a6..5081d7eb58592dc082eabe6af715e3d000225dbc 100644 (file)
@@ -25,7 +25,7 @@ void ly_add_function_documentation (SCM func,
   if (!doc_hash_table)
     doc_hash_table = scm_permanent_object (scm_c_make_hash_table (59));
 
-  std::string s = std::string (" - ") + "LilyPond procedure: " + fname + " " + varlist
+  string s = string (" - ") + "LilyPond procedure: " + fname + " " + varlist
     + "\n" + doc;
 
   scm_set_procedure_property_x (func, ly_symbol2scm ("documentation"),
index 3e1d23cf11ef79b224f1d28a5db1d2d87bf78ff2..5c672a858d1f75599a45d43dc419fffbe49057bd 100644 (file)
@@ -31,8 +31,8 @@ LY_DEFINE (ly_find_file, "ly:find-file",
 {
   SCM_ASSERT_TYPE (scm_is_string (name), name, SCM_ARG1, __FUNCTION__, "string");
 
-  std::string nm = ly_scm2string (name);
-  std::string file_name = global_path.find (nm);
+  string nm = ly_scm2string (name);
+  string file_name = global_path.find (nm);
   if (file_name.empty ())
     return SCM_BOOL_F;
 
@@ -56,7 +56,7 @@ LY_DEFINE (ly_gulp_file, "ly:gulp-file",
       sz = scm_to_int (size);
     }
   
-  std::string contents = gulp_file_to_string (ly_scm2string (name), true, sz);
+  string contents = gulp_file_to_string (ly_scm2string (name), true, sz);
   return scm_from_locale_stringn (contents.c_str (), contents.length ());
 }
 
@@ -224,7 +224,7 @@ LY_DEFINE (ly_output_formats, "ly:output-formats",
           "Formats passed to --format as a list of strings, "
           "used for the output.")
 {
-  std::vector<std::string> output_formats = split_string (output_format_global, ',');
+  vector<string> output_formats = split_string (output_format_global, ',');
 
   SCM lst = SCM_EOL;
   int output_formats_count = output_formats.size ();
index b06ac56165b9086823415cce8fe7af98b2ced5f9..1219ac65735ad92dd79b3ce76eddc44641d9b6a3 100644 (file)
@@ -88,7 +88,7 @@ Glissando_engraver::finalize ()
 {
   if (line_)
     {
-      std::string msg = _ ("unterminated glissando");
+      string msg = _ ("unterminated glissando");
 
       if (event_)
        event_->origin ()->warning (msg);
index 2a81321e0a731a861398307494e26f7b329d8806..dd340e9941fd327642c58e83d80ac71328d05cfb 100644 (file)
 
 #include "std-vector.hh"
 
-static std::vector<Global_ctor> *ctor_global_statics_;
+static vector<Global_ctor> *ctor_global_statics_;
 
 void
 add_constructor (Global_ctor c)
 {
   if (!ctor_global_statics_)
-    ctor_global_statics_ = new std::vector<Global_ctor>;
+    ctor_global_statics_ = new vector<Global_ctor>;
   ctor_global_statics_->push_back (c);
 }
 
index 798d2435f9c9cd4ba40cfc623766f6327eaed550..dfbd0b0f5c3ae714058939b81f0a5e2a637c54af 100644 (file)
@@ -57,7 +57,7 @@ struct Break_node
 };
 
 void
-print_break_nodes (std::vector<Break_node> const &arr)
+print_break_nodes (vector<Break_node> const &arr)
 {
   for (vsize i = 0; i < arr.size (); i++)
     {
@@ -74,14 +74,14 @@ print_break_nodes (std::vector<Break_node> const &arr)
    TODO: should rewrite. See the function in scm/page-layout.scm for
    inspiration.
 */
-std::vector<Column_x_positions>
+vector<Column_x_positions>
 Gourlay_breaking::do_solve () const
 {
-  std::vector<Break_node> optimal_paths;
-  Link_array__Grob_ all
+  vector<Break_node> optimal_paths;
+  vector<Grob*> all
     = pscore_->root_system ()->columns ();
 
-  std::vector<int> breaks = find_break_indices ();
+  vector<int> breaks = find_break_indices ();
 
   Break_node first_node;
   optimal_paths.push_back (first_node);
@@ -104,7 +104,7 @@ Gourlay_breaking::do_solve () const
 
       for (vsize start_idx = break_idx; start_idx--;)
        {
-         Link_array__Grob_ line (all.begin () + breaks[start_idx],
+         vector<Grob*> line (all.begin () + breaks[start_idx],
                                  all.begin () + breaks[break_idx] + 1);
 
          line[0] = dynamic_cast<Item *> (line[0])->find_prebroken_piece (RIGHT);
@@ -176,17 +176,17 @@ Gourlay_breaking::do_solve () const
       optimal_paths.push_back (bnod);
 
       if (! (break_idx % HAPPY_DOTS))
-       progress_indication (std::string ("[") + to_string (break_idx) + "]");
+       progress_indication (string ("[") + to_string (break_idx) + "]");
     }
 
   /* do the last one */
   if (breaks.size () % HAPPY_DOTS)
-    progress_indication (std::string ("[") + to_string (breaks.size ()) + "]");
+    progress_indication (string ("[") + to_string (breaks.size ()) + "]");
 
   progress_indication ("\n");
 
-  std::vector<int> final_breaks;
-  std::vector<Column_x_positions> lines;
+  vector<int> final_breaks;
+  vector<Column_x_positions> lines;
 
   /* skip 0-th element, since it is a "dummy" elt*/
   for (vsize i = optimal_paths.size () - 1; i > 0;)
index 82c84ffc4c634403265c7c965264d9d3bf22bd75..31263e9a128c4b26204a492a91043e0a46fb63ca 100644 (file)
@@ -84,7 +84,7 @@ void fix_prefix_set (int *current_set, int min_set, int max_set, Grob *primitive
   fix_prefix ("pes_or_flexa", LINEA, current_set, min_set, max_set, primitive);
 }
 
-void check_and_fix_all_prefixes (std::vector<Grob_info> primitives)
+void check_and_fix_all_prefixes (vector<Grob_info> primitives)
 {
   /* Check for illegal head modifier combinations */
   for (vsize i = 0; i < primitives.size (); i++)
@@ -195,7 +195,7 @@ void check_and_fix_all_prefixes (std::vector<Grob_info> primitives)
  * Marks those heads that participate in a pes or flexa.
  */
 void
-provide_context_info (std::vector<Grob_info> primitives)
+provide_context_info (vector<Grob_info> primitives)
 {
   Grob *prev_primitive = 0;
   int prev_prefix_set = 0;
@@ -242,7 +242,7 @@ provide_context_info (std::vector<Grob_info> primitives)
 
 void
 Gregorian_ligature_engraver::build_ligature (Spanner *ligature,
-                                            std::vector<Grob_info> primitives)
+                                            vector<Grob_info> primitives)
 {
   // apply style-independent checking and transformation
   check_and_fix_all_prefixes (primitives);
index 43cc3c596711d2f18faf6eed9dde0e40cd63c57a..5047fa928b9ee22f062105e99c8f442ba6bad21c 100644 (file)
@@ -10,7 +10,7 @@
 
 #include "grob.hh"
 
-void check_prefix (std::string name, int mask, int prefix_set, std::string *str)
+void check_prefix (string name, int mask, int prefix_set, string *str)
 {
   if (prefix_set & mask)
     {
@@ -20,10 +20,10 @@ void check_prefix (std::string name, int mask, int prefix_set, std::string *str)
     }
 }
 
-std::string
+string
 Gregorian_ligature::prefixes_to_str (Grob *primitive)
 {
-  std::string str;
+  string str;
   int prefix_set
     = scm_to_int (primitive->get_property ("prefix-set"));
   check_prefix ("virga", VIRGA, prefix_set, &str);
index 742146402c6bcd12bd47f1e92f410d324a143188..e4cccb3c80a941cd377f2156d8fb68424e293c42 100644 (file)
@@ -13,7 +13,7 @@
 class Grid_line_span_engraver : public Engraver
 {
   Item *spanline_;
-  Link_array__Item_ lines_;
+  vector<Item*> lines_;
 
 public:
   TRANSLATOR_DECLARATIONS (Grid_line_span_engraver);
index 99230a5ec392e40c1cf5f414e0a1a4c166633749..1656fc821f44e4813e806c2ea0dcb3b1ae189307 100644 (file)
@@ -29,13 +29,13 @@ Grob_array::Grob_array ()
   ordered_ = false;
 }
 
-Link_array__Grob_ &
+vector<Grob*> &
 Grob_array::array_reference ()
 {
   return grobs_;
 }
 
-Link_array__Grob_ const &
+vector<Grob*> const &
 Grob_array::array () const
 {
   return grobs_;
@@ -89,7 +89,7 @@ Grob_array::empty () const
 }
 
 void
-Grob_array::set_array (Link_array__Grob_ const &src)
+Grob_array::set_array (vector<Grob*> const &src)
 {
   grobs_ = src;
 }
index 691d23b1a50743f72e0396484b4cd991fdad8c42..bd8279e5f7d7b67c692d7c45dff78b357246478b 100644 (file)
@@ -33,11 +33,11 @@ Grob_info::music_cause () const
   return unsmob_music (cause);
 }
 
-Link_array__Context_
+vector<Context*>
 Grob_info::origin_contexts (Translator *end) const
 {
   Context *t = origin_trans_->context ();
-  Link_array__Context_ r;
+  vector<Context*> r;
   do
     {
       r.push_back (t);
index 779f54377b2502186cf002df706be86560413042..9d52d4a56a435f40b0eaacdfa643d00e27b6a872 100644 (file)
@@ -45,7 +45,7 @@ check_interfaces_for_property (Grob const *me, SCM sym)
       SCM iface = scm_hashq_ref (all_ifaces, scm_car (ifs), SCM_BOOL_F);
       if (iface == SCM_BOOL_F)
        {
-         std::string msg = to_string (_f ("Unknown interface `%s'",
+         string msg = to_string (_f ("Unknown interface `%s'",
                                      ly_symbol2string (scm_car (ifs)).c_str ()));
          programming_error (msg);
          continue;
@@ -56,7 +56,7 @@ check_interfaces_for_property (Grob const *me, SCM sym)
 
   if (!found)
     {
-      std::string str = to_string (_f ("Grob `%s' has no interface for property `%s'",
+      string str = to_string (_f ("Grob `%s' has no interface for property `%s'",
                                  me->name ().c_str (),
                                  ly_symbol2string (sym).c_str ()));
       programming_error (str);
index a8e1081704e13c993a3cd022b2dd8c7fbba046e8..e4e8b944f968aefd5647185bc9f2ef21c87a560f 100644 (file)
@@ -32,7 +32,7 @@ protected:
   void start_translation_timestep ();
   void stop_translation_timestep ();
 
-  std::vector<Grob_pq_entry> started_now_;
+  vector<Grob_pq_entry> started_now_;
 };
 
 Grob_pq_engraver::Grob_pq_engraver ()
index bde3c630afb953b77aeefb2324dc8248299d1195..fc49f16d4ddd7b5b6b67fc3da0629f5252d87d56 100644 (file)
@@ -430,7 +430,7 @@ Grob::fixup_refpoint ()
   MESSAGES
 ****************************************************************/
 void
-Grob::warning (std::string s) const
+Grob::warning (string s) const
 {
   SCM cause = self_scm ();
   while (Grob *g = unsmob_grob (cause))
@@ -443,7 +443,7 @@ Grob::warning (std::string s) const
 }
 
 
-std::string
+string
 Grob::name () const
 {
   SCM meta = get_property ("meta");
@@ -453,7 +453,7 @@ Grob::name () const
 }
 
 void
-Grob::programming_error (std::string s) const
+Grob::programming_error (string s) const
 {
   SCM cause = self_scm ();
   while (Grob *g = unsmob_grob (cause))
@@ -608,7 +608,7 @@ common_refpoint_of_list (SCM elist, Grob *common, Axis a)
 }
 
 Grob *
-common_refpoint_of_array (Link_array__Grob_ const &arr, Grob *common, Axis a)
+common_refpoint_of_array (vector<Grob*> const &arr, Grob *common, Axis a)
 {
   for (vsize i = arr.size (); i--;)
     if (Grob *s = arr[i])
index 04fe1714280cbc337e5ecc618700ec4722b95462..3a686dfcf03974481f0f4ccb174c83544b8dad6e 100644 (file)
@@ -43,7 +43,7 @@ Hara_kiri_group_spanner::consider_suicide (Grob *me)
           == 0)) 
     return;
 
-  Link_array__Grob_ childs;
+  vector<Grob*> childs;
   Axis_group_interface::get_children (me, &childs);
   for (vsize i = 0; i < childs.size (); i++)
     childs[i]->suicide ();
index 15a4b575650c16f539a41b31b49806f440478141..5c553374a31a7fc378c2327259ba3643e060417f 100644 (file)
@@ -19,8 +19,8 @@ class Horizontal_bracket_engraver : public Engraver
 {
 public:
   TRANSLATOR_DECLARATIONS (Horizontal_bracket_engraver);
-  Link_array__Spanner_ bracket_stack_;
-  Link_array__Music_ events_;
+  vector<Spanner*> bracket_stack_;
+  vector<Music*> events_;
   vsize pop_count_;
   vsize push_count_;
 
index 10d65316e0d80524b1c2d1d8df43d893177c9506..bd8435d032fd5f8005c99225ca034a4df6219cdf 100644 (file)
@@ -47,7 +47,7 @@ Horizontal_bracket::make_bracket (Grob *me,
 
 Stencil
 Horizontal_bracket::make_enclosing_bracket (Grob *me, Grob *refpoint,
-                                           Link_array__Grob_ grobs,
+                                           vector<Grob*> grobs,
                                            Axis a, Direction dir)
 {
   Grob *common = common_refpoint_of_array (grobs, refpoint, a);
index f43feee573a8a7c0aa62a9da5f2e7ca63b759381..26eafeaf255cb40fdbd886987a1be30476bcffd2 100644 (file)
@@ -46,7 +46,7 @@ Includable_lexer::Includable_lexer ()
 
 /** Set the new input file to NAME, remember old file.  */
 void
-Includable_lexer::new_input (std::string name, Sources *sources)
+Includable_lexer::new_input (string name, Sources *sources)
 {
   if (!allow_includes_b_)
     {
@@ -57,7 +57,7 @@ Includable_lexer::new_input (std::string name, Sources *sources)
   Source_file *file = sources->get_file (name);
   if (!file)
     {
-      std::string msg = _f ("can't find file: `%s'", name);
+      string msg = _f ("can't find file: `%s'", name);
       msg += "\n";
       msg += _f ("(search path: `%s')",
                 sources->path_->to_string ().c_str ());
@@ -71,7 +71,7 @@ Includable_lexer::new_input (std::string name, Sources *sources)
     state_stack_.push_back (yy_current_buffer);
 
   if (be_verbose_global)
-    progress_indication (std::string ("[") + name);
+    progress_indication (string ("[") + name);
 
   include_stack_.push_back (file);
 
@@ -83,7 +83,7 @@ Includable_lexer::new_input (std::string name, Sources *sources)
 }
 
 void
-Includable_lexer::new_input (std::string name, std::string data, Sources *sources)
+Includable_lexer::new_input (string name, string data, Sources *sources)
 {
   Source_file *file = new Source_file (name, data);
   sources->add (file);
@@ -94,7 +94,7 @@ Includable_lexer::new_input (std::string name, std::string data, Sources *source
     state_stack_.push_back (yy_current_buffer);
 
   if (be_verbose_global)
-    progress_indication (std::string ("[") + name);
+    progress_indication (string ("[") + name);
   include_stack_.push_back (file);
 
   yy_switch_to_buffer (yy_create_buffer (file->get_istream (), YY_BUF_SIZE));
index b7154d59b5dafc96b7ec069afde14b2f388578bd..77cc815a6327d2b2e2c5f72dfecf3c05804029a3 100644 (file)
@@ -20,8 +20,8 @@ public:
   DECLARE_SCHEME_CALLBACK (after_line_breaking, (SCM));
   
   static bool has_interface (Grob *);
-  static std::string get_fontcharname (std::string style, int alteration);
-  static std::vector<Box> accurate_boxes (Grob *me,
+  static string get_fontcharname (string style, int alteration);
+  static vector<Box> accurate_boxes (Grob *me,
                                                          Grob **common);
 };
 
index bb6b6810030bd89800c625a713360411328b5648..43c33b8a9fa7cced0e6ba8eabeb6ff635b753e60 100644 (file)
@@ -21,8 +21,8 @@ public:
                                                  Item *item_col,
                                                  Grob *acc);
   static void split_accidentals (Grob *accs,
-                                Link_array__Grob_ *break_reminder,
-                                Link_array__Grob_ *real_acc);
+                                vector<Grob*> *break_reminder,
+                                vector<Grob*> *real_acc);
 
   DECLARE_SCHEME_CALLBACK(calc_positioning_done, (SCM));
   static bool has_interface (Grob *);
index 414233124e6d43bce876fb36c5307da5294654cb..8243ccbe34d27bb890afaf217f409ae66b709fc4 100644 (file)
@@ -35,7 +35,7 @@ class All_font_metrics
 
   All_font_metrics (All_font_metrics const &);
 public:
-  All_font_metrics (std::string search_path);
+  All_font_metrics (string search_path);
   ~All_font_metrics ();
 
 #if HAVE_PANGO_FT2
@@ -44,9 +44,9 @@ public:
                               Real scale);
 #endif
 
-  Tex_font_metric *find_tfm (std::string);
-  Font_metric *find_font (std::string name);
-  Open_type_font *find_otf (std::string name);
+  Tex_font_metric *find_tfm (string);
+  Font_metric *find_font (string name);
+  Open_type_font *find_otf (string name);
   SCM font_descriptions () const;
 };
 
index 0bffa4e45eb973f5d9037ce3c7a5e0cb46cafa69..77eee19537d2731c83f81f745722237d3be66f33 100644 (file)
@@ -24,7 +24,7 @@ public:
   void add_audio_item (Audio_item *i);
   Moment at_mom () const;
 
-  Link_array__Audio_item_ audio_items_;
+  vector<Audio_item*> audio_items_;
 
 private:
   Audio_column (Audio_column const &);
index 915fac9c5a4bfac485924d51e80ee8ff6bc20752..8eed5953733a9f25f6a9fd83f9e3c6690313a710 100644 (file)
@@ -22,7 +22,7 @@ public:
   Music *event_;
   Translator *origin_trans_;
 
-  Link_array__Context_ origin_contexts (Translator *) const;
+  vector<Context*> origin_contexts (Translator *) const;
 
   Audio_element_info (Audio_element *, Music *);
   Audio_element_info ();
index 7def69e34306348ce3ec246ea8f48e740a248fe6..1e7bfec32af1955df611231fdb9080ba9a07fbea 100644 (file)
@@ -47,9 +47,9 @@ public:
 class Audio_instrument : public Audio_item
 {
 public:
-  Audio_instrument (std::string instrument_string);
+  Audio_instrument (string instrument_string);
 
-  std::string str_;
+  string str_;
 };
 
 class Audio_note : public Audio_item
@@ -68,7 +68,7 @@ public:
 class Audio_piano_pedal : public Audio_item
 {
 public:
-  std::string type_string_;
+  string type_string_;
   Direction dir_;
 };
 
@@ -81,10 +81,10 @@ public:
       MARKER, CUE_POINT
     };
 
-  Audio_text (Audio_text::Type type, std::string text_string);
+  Audio_text (Audio_text::Type type, string text_string);
 
   Type type_;
-  std::string text_string_;
+  string text_string_;
 };
 
 class Audio_tempo : public Audio_item
index d2a2baeba32fd336b87330d5126e7f565b4ff063..e20fc1c4d77c2d7ce959d869a392dd39e934f793 100644 (file)
@@ -16,7 +16,7 @@ struct Audio_staff : public Audio_element
   void add_audio_item (Audio_item *l);
   void output (Midi_stream &midi_stream_r, int track_i);
 
-  Link_array__Audio_item_ audio_items_;
+  vector<Audio_item*> audio_items_;
   int channel_;
 };
 
index 535828577a8d70e67015a3f4144f5ba8923efdfb..42b4b8c35f67b56806d56c84b7d6896bbe5c9165 100644 (file)
@@ -19,7 +19,7 @@ class Axis_group_engraver : public Engraver
 {
 protected:
   Spanner *staffline_;
-  Link_array__Grob_ elts_;
+  vector<Grob*> elts_;
   void process_music ();
   virtual void finalize ();
   DECLARE_ACKNOWLEDGER (grob);
index 04da19759d4c8f661756ddbfbaee737984719de2..11e95233a6ec78faccce1bce066bfe17e49dfbff 100644 (file)
@@ -19,13 +19,13 @@ struct Axis_group_interface
   static SCM generic_group_extent (Grob *me, Axis a);
   DECLARE_SCHEME_CALLBACK (width, (SCM smob));
   DECLARE_SCHEME_CALLBACK (height, (SCM smob));
-  static Interval relative_group_extent (Link_array__Grob_ const &list,
+  static Interval relative_group_extent (vector<Grob*> const &list,
                                         Grob *common, Axis);
 
   static void add_element (Grob *me, Grob *);
   static void set_axes (Grob *, Axis, Axis);
   static bool has_axis (Grob *, Axis);
-  static void get_children (Grob *, Link_array__Grob_ *);
+  static void get_children (Grob *, vector<Grob*> *);
   static bool has_interface (Grob *);
 };
 
index dbc99745f23aeabe9382b757d4fd5250ea28281a..4744aef8554d11561513cd79505dc2f6fbcc3745 100644 (file)
@@ -18,7 +18,7 @@ class Bar_line
 public:
   static bool has_interface (Grob *);
 
-  static Stencil compound_barline (Grob *, std::string, Real height, bool rounded);
+  static Stencil compound_barline (Grob *, string, Real height, bool rounded);
   static Stencil simple_barline (Grob *, Real wid, Real height, bool rounded);
   DECLARE_SCHEME_CALLBACK (calc_bar_size, (SCM));
   DECLARE_SCHEME_CALLBACK (print, (SCM));
index 27fbe484a607443f7db1d642e4c589ec3835f5e9..b7ebca69a50b5583c51179d6db7fa1cbba45a060 100644 (file)
@@ -18,7 +18,7 @@ class Bar
 public:
   static bool has_interface (Grob *);
 
-  static Stencil compound_barline (Grob *, std::string, Real height);
+  static Stencil compound_barline (Grob *, string, Real height);
   static Stencil simple_barline (Grob *, Real wid, Real height);
   DECLARE_SCHEME_CALLBACK (get_staff_bar_size, (SCM));
   DECLARE_SCHEME_CALLBACK (print, (SCM));
index c852b443018d6b5437d4f33c7babfae5e3e76177..15ddae2bf1951c8ca791cf63f22adc904b2f0470 100644 (file)
@@ -72,10 +72,10 @@ public:
   
 static Real score_slopes_dy (Real, Real, Real, Real, Real, bool, Beam_quant_parameters const *);
 
-  static Real score_stem_lengths (Link_array__Grob_ const &stems,
-                                 std::vector<Stem_info> const &stem_infos,
-                                 std::vector<Real> const &base_stem_ys,
-                                 std::vector<Real> const &stem_xs,
+  static Real score_stem_lengths (vector<Grob*> const &stems,
+                                 vector<Stem_info> const &stem_infos,
+                                 vector<Real> const &base_stem_ys,
+                                 vector<Real> const &stem_xs,
                                  Real xl, Real xr,
                                  bool knee,
                                  Real yl, Real yr, Beam_quant_parameters const *);
index 0e877f684f056a5fe6c12de14ea70e09cad72cbe..40603cb478bdea96a33708023698f41184ad07ce 100644 (file)
@@ -28,7 +28,7 @@ struct Beaming_info
 */
 struct Beaming_info_list
 {
-  std::vector<Beaming_info> infos_;
+  vector<Beaming_info> infos_;
 
   int beam_extend_count (Direction) const;
   int best_splitpoint_index (Moment &beat_length, bool subdivide) const;
index 2dc8ef22d680f215e7631ab5bd89116ccb1e37f2..94f207a33bd15397f38cab02f41880d3531aec38 100644 (file)
@@ -24,8 +24,8 @@ public:
   void translate (Offset);
 
   Real get_other_coordinate (Axis a, Real x) const;
-  std::vector<Real> solve_point (Axis, Real coordinate) const;
-  std::vector<Real> solve_derivative (Offset) const;
+  vector<Real> solve_point (Axis, Real coordinate) const;
+  vector<Real> solve_derivative (Offset) const;
   Interval extent (Axis) const;
   Interval control_point_extent (Axis) const;
   
@@ -37,15 +37,15 @@ public:
 
   /*
     Bezier curves always have 4 control points. Making this into an
-    std::vector<> gives unnecessary overhead, and makes debugging a royal
+    vector<> gives unnecessary overhead, and makes debugging a royal
     pain.  */
 
   Offset control_[4];
 };
 
-void scale (std::vector<Offset> *array, Real xscale, Real yscale);
-void rotate (std::vector<Offset> *array, Real phi);
-void translate (std::vector<Offset> *array, Offset o);
+void scale (vector<Offset> *array, Real xscale, Real yscale);
+void rotate (vector<Offset> *array, Real phi);
+void translate (vector<Offset> *array, Offset o);
 
 Bezier slur_shape (Real width, Real height_limit,
                   Real height_proportion);
index 429a04d667d9249848fb1fece93d211cae571ecd..95d5b644de082a47d8c11cb53580290958d55cd0 100644 (file)
@@ -11,7 +11,7 @@
 class Binary_source_file : public Source_file
 {
 public:
-  Binary_source_file (std::string &file_name_string);
+  Binary_source_file (string &file_name_string);
   virtual ~Binary_source_file ();
 
   U8 get_U8 ();
@@ -20,7 +20,7 @@ public:
   Byte get_Byte () {return get_U8 (); }
   int get_int () { return get_U32 (); }
 
-  virtual std::string quote_input (char const *pos_str0) const;
+  virtual string quote_input (char const *pos_str0) const;
   virtual int get_line (char const *pos_str0) const;
 };
 
index 50943dc0aded49aaf2ab0a53ab1653468edee809..9ef2ca21301db146dba7f373061bbaec98747f08 100644 (file)
@@ -20,7 +20,7 @@ class Book : public Input
   DECLARE_SMOBS (Book, foo);
 
 public:
-  std::string user_key_;
+  string user_key_;
   SCM header_;
   Output_def *paper_;
   SCM scores_;
index ed1164ffdaef0363cb95bb98a6c2ee4ad1f5313e..c4afa2d373f9254edf46768728de6945e03eb916 100644 (file)
@@ -23,21 +23,21 @@ protected:
   Paper_score *pscore_;
   Real linewidth_;
 
-  Link_array__Grob_ find_breaks () const;
-  std::vector<int> find_break_indices () const;
+  vector<Grob*> find_breaks () const;
+  vector<int> find_break_indices () const;
   void solve_line (Column_x_positions *) const;
-  bool feasible (Link_array__Grob_ const &) const;
+  bool feasible (vector<Grob*> const &) const;
 
-  Simple_spacer_wrapper *generate_spacing_problem (Link_array__Grob_ const &,
+  Simple_spacer_wrapper *generate_spacing_problem (vector<Grob*> const &,
                                                   Interval) const;
-  virtual std::vector<Column_x_positions> do_solve () const = 0;
+  virtual vector<Column_x_positions> do_solve () const = 0;
 
 public:
   virtual ~Break_algorithm ();
   Simple_spacer *(*get_line_spacer) ();
   Break_algorithm ();
   void set_pscore (Paper_score *);
-  std::vector<Column_x_positions> solve () const;
+  vector<Column_x_positions> solve () const;
 };
 
 #endif // BREAK_HH
index 289d432cdbfaf63907424acb84557742a300cd2c..7fc83f3e83b2efb025201073a06394585cc6d741 100644 (file)
@@ -14,7 +14,7 @@
 class Break_align_interface
 {
 public:
-  static Link_array__Grob_ ordered_elements (Grob *me);
+  static vector<Grob*> ordered_elements (Grob *me);
   static bool has_interface (Grob *);
   static void add_element (Grob *me, Grob *add);
   DECLARE_SCHEME_CALLBACK (calc_positioning_done, (SCM element));
index 75c84286d9fd6d63c1e3a8750566748fe73bd17f..71aa7cb8d3abb2b4b98e00a8501c3523b6f72c7b 100644 (file)
@@ -20,7 +20,7 @@ public:
   DECLARE_CLASSNAME(Change_iterator);
 
 private:
-  void error (std::string);
+  void error (string);
 };
 
 #endif
index ede15b3e34c7cc7b7a02df4a682a72d3565db980..e8422d9eb182293d15c0f2883d4373f2fce3f181 100644 (file)
@@ -18,12 +18,12 @@ public:
 
 protected:
   virtual void build_ligature (Spanner *ligature,
-                              std::vector<Grob_info> primitives) = 0;
+                              vector<Grob_info> primitives) = 0;
   virtual void typeset_ligature (Spanner *ligature,
-                                std::vector<Grob_info> primitives);
+                                vector<Grob_info> primitives);
   virtual void get_set_column (Item *, Paper_column *);
 private:
-  void collect_accidentals (Spanner *, std::vector<Grob_info>);
+  void collect_accidentals (Spanner *, vector<Grob_info>);
 };
 
 #endif // COHERENT_LIGATURE_ENGRAVER_HH
index c5d0f928a78331f7515124602b4a8a85e2d13b43..aeb3060048793c876c7568c69274dc0eabd834ce 100644 (file)
 
 struct Column_x_positions
 {
-  Link_array__Grob_ cols_;
-  Link_array__Grob_ loose_cols_;
+  vector<Grob*> cols_;
+  vector<Grob*> loose_cols_;
 
-  std::vector<Real> config_;
+  vector<Real> config_;
   Real force_;
   bool satisfies_constraints_;
 
index faddf38f73cfa14492cae4cef8c2763fa6ef39b3..48828927303e8bb13d7b80ed9dfdb0875277b190 100644 (file)
@@ -41,7 +41,7 @@ public:
   SCM get_translator_names (SCM) const;
   void set_acceptor (SCM accepts, bool add);
 
-  Link_array__Context_def_ path_to_acceptable_context (SCM type_string,
+  vector<Context_def*> path_to_acceptable_context (SCM type_string,
                                                      Output_def *) const;
   Context *instantiate (SCM extra_ops, Object_key const *);
 
index 5c3b93fa14b1b28350ce891b98fff0e175d7ebf4..22e7e142210fa7acf041551a59366a0873199db6 100644 (file)
@@ -30,8 +30,8 @@ private:
   int iterator_count_;
   bool init_;
 
-  map<std::string, int> grob_counts_;
-  map<std::string, int> context_counts_;
+  map<string, int> grob_counts_;
+  map<string, int> context_counts_;
 
 protected:
   Object_key const *key_;
@@ -43,19 +43,19 @@ protected:
   SCM accepts_list_;
   SCM aliases_;
   Translator_group *implementation_;
-  std::string id_string_;
+  string id_string_;
 
   friend class Context_def;
   void clear_key_disambiguations ();
 
 public:
   Object_key const *key () const { return key_; }
-  Object_key const *create_grob_key (std::string);
-  Object_key const *get_grob_key (std::string);
-  Object_key const *get_context_key (std::string, std::string);
+  Object_key const *create_grob_key (string);
+  Object_key const *get_grob_key (string);
+  Object_key const *get_context_key (string, string);
 
-  Context *create_context (Context_def *, std::string, SCM);
-  std::string id_string () const { return id_string_; }
+  Context *create_context (Context_def *, string, SCM);
+  string id_string () const { return id_string_; }
   SCM children_contexts () const { return context_list_; }
   SCM default_child_context_name () const;
 
@@ -72,7 +72,7 @@ public:
 
   Context *remove_context (Context *trans);
   void check_removal ();
-  std::string context_name () const;
+  string context_name () const;
   SCM context_name_symbol () const;
   Global_context *get_global_context () const;
 
@@ -89,10 +89,10 @@ public:
   bool try_music (Music *);
 
   Context *find_create_context (SCM context_name,
-                               std::string id, SCM ops);
+                               string id, SCM ops);
   Context *create_unique_context (SCM context_name,
                                  SCM ops);
-  Link_array__Context_ path_to_acceptable_context (SCM alias,
+  vector<Context*> path_to_acceptable_context (SCM alias,
                                                  Output_def *) const;
 };
 
@@ -106,7 +106,7 @@ void execute_general_pushpop_property (Context *context,
                                       SCM context_property, SCM grob_property_path, SCM val);
 SCM updated_grob_properties (Context *tg, SCM sym);
 Context *find_context_below (Context *where,
-                            SCM type_sym, std::string id);
+                            SCM type_sym, string id);
 bool melisma_busy (Context *);
 
 Context *get_voice_to_lyrics (Context *lyrics);
index aa01197611f0a48887e1092764ca3bf7c2046e90..a0e2f25edd9203e83f24288e4dde9c1c6b2db5ad 100644 (file)
@@ -37,7 +37,7 @@ const Real PT_TO_MM = (1.0 / MM_TO_PT);
 
 #endif
 
-std::string print_dimen (Real);
+string print_dimen (Real);
 const Real point_constant = 1 PT;
 const Real inch_constant = 1 INCH;
 const Real cm_constant = 1 CM;
index 6d7bdf6a32f8ad238d5cf0297021866a705b1166..377d54ef0e973a8895d123e127478912c8e570a1 100644 (file)
@@ -20,7 +20,7 @@ public:
 
   Duration ();
   Duration (int, int);
-  std::string to_string () const;
+  string to_string () const;
 
   Duration compressed (Rational) const;
   Rational get_length () const;
index d894c9ada6cad02783598a2eb171870ee70ba8ca..0af77fca311bd8344f2bd83b1ebc43dbf94f4b64 100644 (file)
@@ -15,7 +15,7 @@
 class Engraver_group : public virtual Translator_group
 {
 protected:
-  std::vector<Grob_info> announce_infos_;
+  vector<Grob_info> announce_infos_;
   SCM acknowledge_hash_table_;
 public:
   VIRTUAL_COPY_CONSTRUCTOR (Translator_group, Engraver_group);
index 28a5d30aecd62d98badfa7dd5520cf346eddfe9b..35697d753dd0158c1ef040c152f423f477c4cc14 100644 (file)
@@ -11,7 +11,7 @@
 
 #include "std-string.hh"
 
-std::string map_file_name (std::string s);
+string map_file_name (string s);
 
 #endif /* FILE_NAME_MAP_HH */
 
index 3deebd03ca0dbb881256f93be7a9f5116901725b..d4507a45aef0a785f817dd19f226293cd8fdbc1e 100644 (file)
@@ -20,21 +20,21 @@ class Font_metric
 
 public:
   SCM description_;
-  std::string file_name_;
+  string file_name_;
 
-  virtual Stencil text_stencil (std::string) const;
-  virtual Box text_dimension (std::string) const;
-  virtual std::string font_name () const;
+  virtual Stencil text_stencil (string) const;
+  virtual Box text_dimension (string) const;
+  virtual string font_name () const;
   virtual vsize count () const;
-  virtual Offset attachment_point (std::string) const;
+  virtual Offset attachment_point (string) const;
   virtual Offset get_indexed_wxwy (vsize) const;
   virtual Box get_indexed_char (vsize index) const;
   virtual Box get_ascii_char (vsize ascii) const;
-  virtual vsize name_to_index (std::string) const;
+  virtual vsize name_to_index (string) const;
   virtual vsize index_to_charcode (vsize) const;
   virtual vsize index_to_ascii (vsize) const;
   virtual Real design_size () const;
-  virtual Stencil find_by_name (std::string) const;
+  virtual Stencil find_by_name (string) const;
   virtual Stencil get_indexed_char_stencil (vsize k) const;
   virtual Stencil get_ascii_char_stencil (vsize k) const;
   virtual SCM sub_fonts () const;
@@ -51,7 +51,7 @@ protected:
   Font_metric ();
 };
 
-int get_encoded_index (Font_metric *m, std::string input_coding, int code);
+int get_encoded_index (Font_metric *m, string input_coding, int code);
 
 class Simple_font_metric : public Font_metric
 {
index 72ff32b99c628f9375151c47850a47f6bcf1af04..416c85984cef6e7623611996157de69f69b0a15a 100644 (file)
@@ -17,7 +17,7 @@
 void init_freetype ();
 extern FT_Library freetype2_library;
 
-FT_Face open_ft_face (std::string str);
+FT_Face open_ft_face (string str);
 
 #endif /* FREETYPE_HH */
 
index 9d0e841824bdaa58dc2277c3bb8c1e18e1378e26..23bb173d2831ab5ee595a6629dcdd1c3c240a0e6 100644 (file)
@@ -16,7 +16,7 @@
 */
 struct Gourlay_breaking : public Break_algorithm
 {
-  std::vector<Column_x_positions> do_solve () const;
+  vector<Column_x_positions> do_solve () const;
   Gourlay_breaking ();
   Real combine_demerits (Column_x_positions const &, Column_x_positions const &) const;
 };
index 2524d0669efc52e627ba2dd3f9687a6e882f75a8..96b87f84f24090687b99ac6d97ea16f8504ff1ce 100644 (file)
@@ -21,9 +21,9 @@ public:
 protected:
   Gregorian_ligature_engraver ();
   virtual bool try_music (Music *);
-  virtual void build_ligature (Spanner *ligature, std::vector<Grob_info> primitives);
+  virtual void build_ligature (Spanner *ligature, vector<Grob_info> primitives);
   virtual void transform_heads (Spanner *ligature,
-                               std::vector<Grob_info> primitives) = 0;
+                               vector<Grob_info> primitives) = 0;
   void stop_translation_timestep ();
 };
 
index d59833a1617e77977129b6c269eafd0013c761c5..a6d8adc95084285306fdf4f199efdd5c938315d0 100644 (file)
@@ -16,7 +16,7 @@ class Gregorian_ligature
 {
 public:
   static bool has_interface (Grob *);
-  static std::string prefixes_to_str (Grob *);
+  static string prefixes_to_str (Grob *);
 };
 
 /*
index 7d8bf9be1d36bffc2b0aa9c672350b924c71486f..47580b38d168116e3605da9a75216356c9e1e721 100644 (file)
@@ -15,7 +15,7 @@
 
 class Grob_array
 {
-  Link_array__Grob_ grobs_;
+  vector<Grob*> grobs_;
   bool ordered_;
 
   DECLARE_SIMPLE_SMOBS (Grob_array,);
@@ -31,15 +31,15 @@ public:
   bool empty () const;
   void clear ();
   void add (Grob *x) { grobs_.push_back (x); }
-  void set_array (Link_array__Grob_ const &src);
-  Link_array__Grob_ &array_reference ();
-  Link_array__Grob_ const &array () const;
+  void set_array (vector<Grob*> const &src);
+  vector<Grob*> &array_reference ();
+  vector<Grob*> const &array () const;
   static SCM make_array ();
 };
 
 DECLARE_UNSMOB (Grob_array, grob_array);
 
-Link_array__Grob_ const &ly_scm2link_array (SCM x);
+vector<Grob*> const &ly_scm2link_array (SCM x);
 SCM grob_list_to_grob_array (SCM lst);
 
 #endif /* GROB_ARRAY_HH */
index 89b1054552a0bbff8a6c9a463aa07436ce25fc05..35e3eab64e60de6617f891da69d7b1bc08e66def 100644 (file)
@@ -29,7 +29,7 @@ public:
   Context *context () const;
   Music *music_cause () const;
   Music *ultimate_music_cause () const;
-  Link_array__Context_ origin_contexts (Translator *) const;
+  vector<Context*> origin_contexts (Translator *) const;
   Grob_info (Translator *, Grob *);
   Grob_info ();
 
index 522cfd555c8280f9ce708dcf313aa262f8f54506..6c3ef612bd7a81c3526592c0a50baf31bd246a91 100644 (file)
@@ -73,7 +73,7 @@ public:
   bool is_live () const;
 
   /* naming. */
-  std::string name () const;
+  string name () const;
 
   /* Properties */
   SCM get_property_alist_chain (SCM) const;
@@ -85,8 +85,8 @@ public:
   void internal_set_object (SCM sym, SCM val);
 
   /* messages */  
-  void warning (std::string) const;
-  void programming_error (std::string) const;
+  void warning (string) const;
+  void programming_error (string) const;
 
 
   /* class hierarchy */
@@ -128,7 +128,7 @@ Item *unsmob_item (SCM);
 
 /* refpoints */
 Grob *common_refpoint_of_list (SCM elt_list, Grob *, Axis a);
-Grob *common_refpoint_of_array (Link_array__Grob_ const &, Grob *, Axis a);
+Grob *common_refpoint_of_array (vector<Grob*> const &, Grob *, Axis a);
 System *get_root_system (Grob *me);
 
 /* extents */ 
index 79925bc9345acb9180939261f3d1aa9d55b1ec4e..7cc2b21b094d8564aa7391284aa9d744e643c757 100644 (file)
@@ -17,7 +17,7 @@ struct Horizontal_bracket
   DECLARE_SCHEME_CALLBACK (print, (SCM));
   static Stencil make_bracket (Grob *, Real, Axis, Direction);
   static Stencil make_enclosing_bracket (Grob *me, Grob *refpoint,
-                                        Link_array__Grob_ grobs,
+                                        vector<Grob*> grobs,
                                         Axis a, Direction dir);
   static bool has_interface (Grob *);
 };
index f495424f282336e0dfc55180a7b017491ca9687e..5f03e978548579351b15ebb57f1eeb6ff43dd014 100644 (file)
@@ -25,12 +25,12 @@ typedef struct yy_buffer_state *YY_BUFFER_STATE;
 */
 class Includable_lexer : public yyFlexLexer
 {
-  std::vector<YY_BUFFER_STATE> state_stack_;
+  vector<YY_BUFFER_STATE> state_stack_;
 
 protected:
   bool close_input ();
-  Link_array__Source_file_ include_stack_;
-  std::vector<int> char_count_stack_;
+  vector<Source_file*> include_stack_;
+  vector<int> char_count_stack_;
 
 public:
   bool allow_includes_b_;
@@ -39,11 +39,11 @@ public:
   ~Includable_lexer ();
 
   /// store dependencies for Makefile stuff.
-  std::vector<std::string> file_name_strings_;
+  vector<string> file_name_strings_;
 
   Source_file *get_source_file () const;
-  void new_input (std::string s, Sources *);
-  void new_input (std::string name, std::string data, Sources *);
+  void new_input (string s, Sources *);
+  void new_input (string name, string data, Sources *);
 
   char const *here_str0 () const;
 };
index 9c255b70f0cc5ce83e09c7338c8652fc850e3d86..e1b4169841000f48b806fdfd0a81cd8c3fe0c175 100644 (file)
@@ -27,17 +27,17 @@ public:
   char const *end () const;
 
   void set (Source_file *, char const *, char const *);
-  void warning (std::string) const; // should use member func?
-  void non_fatal_error (std::string) const;
-  void error (std::string) const;
-  void message (std::string) const;
+  void warning (string) const; // should use member func?
+  void non_fatal_error (string) const;
+  void error (string) const;
+  void message (string) const;
   void set_spot (Input const &);
   void step_forward ();
   void set_location (Input const &, Input const &);
   Input spot () const;
-  std::string location_string () const;
-  std::string line_number_string () const;
-  std::string file_string ()const;
+  string location_string () const;
+  string line_number_string () const;
+  string file_string ()const;
 
   int line_number ()const;
   int column_number ()const;
index dfd355e1afed3ead4352908bf0945ad068b76abc..ba4867204da0879d227715627ebecf183588073e 100644 (file)
@@ -21,7 +21,7 @@ struct Keyword_ent
 */
 struct Keyword_table
 {
-  std::vector<Keyword_ent> table_;
+  vector<Keyword_ent> table_;
 
   Keyword_table (Keyword_ent *);
   vsize lookup (char const *s) const;
index ec74c7027a71d2cf89398fdbd0ab4f19b53edebd..baffaf1ffc9104a531c17f191408f53e7f13d266 100644 (file)
@@ -11,7 +11,7 @@
 
 #include "std-string.hh"
 
-std::string kpathsea_find_tfm (char const *name);
+string kpathsea_find_tfm (char const *name);
 void initialize_kpathsea (char *av0);
 
 #endif /* KPATH_HH */
index 8dcb2470b6e40a051e45ef59649698ca196e88dc..49a5574f1fb0d9ae61ed66a16ab683c60397dcc3 100644 (file)
@@ -12,7 +12,7 @@
 /**
    Least squares minimisation in 2 variables.
 */
-void minimise_least_squares (Real *coef, Real *offset, std::vector<Offset> const &);
+void minimise_least_squares (Real *coef, Real *offset, vector<Offset> const &);
 
 #endif // LEASTSQUARE_HH
 
index 16ce68f92b5e07115d86b258a4757b90c23eceeb..c70523ae915103069fd52c8ca10e2c8d7cee1c03 100644 (file)
@@ -25,7 +25,7 @@ protected:
   void process_music ();
   virtual Spanner *create_ligature_spanner () = 0;
   virtual void typeset_ligature (Spanner *ligature,
-                                std::vector<Grob_info> primitives) = 0;
+                                vector<Grob_info> primitives) = 0;
   virtual Spanner *current_ligature ();
   SCM brew_ligature_primitive_proc;
 
@@ -37,10 +37,10 @@ private:
   Drul_array<Music *> events_drul_;
 
   Spanner *ligature_;
-  std::vector<Grob_info> primitives_;
+  vector<Grob_info> primitives_;
 
   Spanner *finished_ligature_;
-  std::vector<Grob_info> finished_primitives_;
+  vector<Grob_info> finished_primitives_;
 
   Music *prev_start_event_;
 
index 5ee84590c372910a20faa0bc659cf847638ae5da..ef0db4747900b271fe9c362d06eeefe9bdbbf020 100644 (file)
@@ -87,13 +87,13 @@ inline SCM ly_symbol2scm (char const *x) { return scm_str2symbol ((x)); }
 /*
   Make TYPE::FUNC available as a Scheme function.
 */
-std::string mangle_cxx_identifier (std::string);
+string mangle_cxx_identifier (string);
 #define MAKE_SCHEME_CALLBACK(TYPE, FUNC, ARGCOUNT)                     \
   SCM TYPE ::FUNC ## _proc;                                            \
   void                                                                 \
   TYPE ## _ ## FUNC ## _init_functions ()                              \
   {                                                                    \
-    std::string id = mangle_cxx_identifier (std::string (#TYPE) + "::" + std::string (#FUNC)); \
+    string id = mangle_cxx_identifier (string (#TYPE) + "::" + string (#FUNC)); \
     TYPE ::FUNC ## _proc = scm_c_define_gsubr (id.c_str(),                     \
                                               (ARGCOUNT), 0, 0,        \
                                               (Scheme_function_unknown) TYPE::FUNC); \
index b51629fa150f015c7b1cb8a209d468c8a8a9f579..98e7ceadcf5e1098d599e919e7d0aa3ef5ab5f42 100644 (file)
@@ -41,10 +41,10 @@ SCM ly_to_symbol (SCM scm);
 
 extern SCM global_lily_module;
 
-std::string gulp_file_to_string (std::string fn, bool must_exist, int size);
+string gulp_file_to_string (string fn, bool must_exist, int size);
 
-std::string ly_scm2string (SCM s);
-std::string ly_symbol2string (SCM);
+string ly_scm2string (SCM s);
+string ly_symbol2string (SCM);
 SCM ly_offset2scm (Offset);
 Offset ly_scm2offset (SCM);
 SCM ly_chain_assoc (SCM key, SCM achain);
@@ -67,7 +67,7 @@ Offset robust_scm2offset (SCM, Offset);
 
 SCM ly_quote_scm (SCM s);
 bool type_check_assignment (SCM val, SCM sym, SCM type_symbol);
-std::string print_scm_val (SCM val);
+string print_scm_val (SCM val);
 SCM ly_number2string (SCM s);
 
 SCM parse_symbol_list (char const *);
@@ -121,7 +121,7 @@ extern "C" {
   void ly_display_scm (SCM s);
 }
 
-void read_lily_scm_file (std::string);
+void read_lily_scm_file (string);
 void ly_c_init_guile ();
 
 bool is_direction (SCM s);
index fcad09d52626fe6cc3c78b7185b36df70b9c996c..d0a188ab69883d77fca0c278266a74ff67f9e4ac 100644 (file)
@@ -24,10 +24,10 @@ class Lily_lexer : public Includable_lexer
   DECLARE_SMOBS (Lily_lexer,);
 
 private:
-  int lookup_keyword (std::string);
-  int scan_bare_word (std::string);
-  SCM scan_markup_word (std::string);
-  int scan_escaped_word (std::string);
+  int lookup_keyword (string);
+  int scan_bare_word (string);
+  SCM scan_markup_word (string);
+  int scan_escaped_word (string);
   int identifier_type (SCM);
   char escaped_char (char) const;
 
@@ -35,7 +35,7 @@ private:
   SCM scopes_;
   SCM start_module_;
 public:
-  std::string main_input_name_;
+  string main_input_name_;
   void *lexval;
   Input *lexloc;
   bool is_main_input_;
@@ -65,7 +65,7 @@ public:
 
   void start_main_input ();
 
-  SCM lookup_identifier (std::string s);
+  SCM lookup_identifier (string s);
   SCM lookup_identifier_symbol (SCM s);
   void push_chord_state (SCM tab);
   void push_figuredbass_state ();
index 7c89bdca0e80b6bd3a18c5c76528cfe8f45ad90c..c460ffcd09d870df96ec2b16b31a30b61dcfd136 100644 (file)
@@ -25,11 +25,11 @@ class Lily_parser
   DECLARE_SMOBS (Lily_parser,);
   friend int yyparse (void *);
 
-  std::vector<Input> define_spots_;
+  vector<Input> define_spots_;
 
   char const *here_str0 () const;
   Simultaneous_music *get_chord (Pitch tonic,
-                                std::vector<Pitch> *adds, std::vector<Pitch> *subs,
+                                vector<Pitch> *adds, vector<Pitch> *subs,
                                 Pitch *inversion, Pitch *bass, Duration d);
   void set_chord_tremolo (int type_i);
   void set_last_duration (Duration const *);
@@ -39,7 +39,7 @@ public:
   Lily_lexer *lexer_;
   Sources *sources_;
   Duration default_duration_;
-  std::string output_basename_;
+  string output_basename_;
 
   int fatal_error_;
   int error_level_;
@@ -52,10 +52,10 @@ public:
 
   void do_init_file ();
   void do_yyparse ();
-  void parse_file (std::string init, std::string name, std::string out_name);
-  void parse_string (std::string ly_code);
-  void parser_error (std::string);
-  void parser_error (Input const &, std::string);
+  void parse_file (string init, string name, string out_name);
+  void parse_string (string ly_code);
+  void parser_error (string);
+  void parser_error (Input const &, string);
   void set_yydebug (bool);
 };
 
index 99c768d29387a97f9f459470f7851f94c9e4b3ef..e13feab6edae0a3014107bc5c7ed98a85026f445 100644 (file)
@@ -8,6 +8,7 @@
 
 #ifndef LILY_PROTO_HH
 #define LILY_PROTO_HH
+
 #include "flower-proto.hh"
 
 class All_font_metrics;
@@ -177,29 +178,4 @@ class yyFlexLexer;
 typedef void (*Engraver_void_function_engraver_grob_info) (Engraver *, Grob_info);
 typedef void (*Translator_void_method_ptr) (Translator *);
 
-
-/* FIXME: when Link_array is dropped, do grand s/r to vector<TYPE*>.  */
-
-#include "std-vector.hh"
-
-#define Link_array__char_ std::vector<char*>
-#define Link_array__Grob_ std::vector<Grob*>
-#define Link_array__Accidental_placement_entry_ std::vector<Accidental_placement_entry*>
-#define Link_array__Audio_item_ std::vector<Audio_item*>
-#define Link_array__Audio_note_ std::vector<Audio_note*>
-#define Link_array__Audio_piano_pedal_ std::vector<Audio_piano_pedal*>
-#define Link_array__Audio_staff_ std::vector<Audio_staff*>
-#define Link_array__Bracket_nesting_node_ std::vector<Bracket_nesting_node*>
-#define Link_array__Context_ std::vector<Context*>
-#define Link_array__Context_def_ std::vector<Context_def*>
-#define Link_array__Grob_ std::vector<Grob*>
-#define Link_array__Item_ std::vector<Item*>
-#define Link_array__Music_ std::vector<Music*>
-#define Link_array__Note_column_ std::vector<Note_column*>
-#define Link_array__Output_def_ std::vector<Output_def*>
-#define Link_array__Slur_configuration_ std::vector<Slur_configuration*>
-#define Link_array__Source_file_ std::vector<Source_file*>
-#define Link_array__Spanner_ std::vector<Spanner*>
-#define Link_array__Tie_configuration_ std::vector<Tie_configuration*>
-
 #endif /* LILY_PROTO_HH */
index d4df9e0529d2b9d446655b59b11bfc50213d1ea3..eab4462df26a1e3495c3997db10bdd6fa120ae56 100644 (file)
@@ -11,9 +11,9 @@
 
 #include "std-string.hh"
 
-std::string version_string ();
-std::string gnu_lilypond_string ();
-std::string gnu_lilypond_version_string ();
+string version_string ();
+string gnu_lilypond_string ();
+string gnu_lilypond_version_string ();
 
 #endif // LILY_VERSION_HH
 
index 69e13e3b8692c16f6570c2cd77e81be0862b4a22..12c4782205f5d828a58e4522a468cd318418b376 100644 (file)
 struct Lilypond_version
 {
   Lilypond_version (int major, int minor, int patch);
-  Lilypond_version (std::string str);
+  Lilypond_version (string str);
 
-  std::string to_string () const;
+  string to_string () const;
   operator int () const;
 
   int major_;
   int minor_;
   int patch_;
-  std::string extra_patch_string_;
+  string extra_patch_string_;
 };
 
 extern Lilypond_version oldest_version;
index dc27c98fea978bd7424b9f72e9015be23bfa57e3..4196ffd5f2d24580f092fcb872f8c28a6a2f0b36 100644 (file)
@@ -17,13 +17,13 @@ class Lilypond_grob_key : public Object_key
 {
   Object_key const *context_;
   Moment creation_moment_;
-  std::string grob_name_;
+  string grob_name_;
   int disambiguation_count_;
 
 public:
   Lilypond_grob_key (Object_key const *context,
                     Moment start,
-                    std::string name, int);
+                    string name, int);
 
   static Object_key *from_scheme (SCM);
 protected:
@@ -37,15 +37,15 @@ class Lilypond_context_key : public Object_key
 {
   Object_key const *parent_context_;
   Moment start_moment_;
-  std::string context_name_;
-  std::string id_;
+  string context_name_;
+  string id_;
   int disambiguation_count_;
 
 public:
   Lilypond_context_key (Object_key const *parent,
                        Moment start,
-                       std::string type,
-                       std::string id,
+                       string type,
+                       string id,
                        int count);
 
   static Object_key *from_scheme (SCM);
@@ -59,10 +59,10 @@ protected:
 class Lilypond_general_key : public Object_key
 {
   Object_key const *parent_;
-  std::string name_;
+  string name_;
   int disambiguation_count_;
 public:
-  Lilypond_general_key (Object_key const *parent, std::string name,
+  Lilypond_general_key (Object_key const *parent, string name,
                        int count);
 
   static Object_key *from_scheme (SCM);
index bb3f030b71104747bfedafa0e8c039662c90cad2..edde1945383edb68f5bab06603e5229087d15847 100644 (file)
@@ -17,7 +17,7 @@ struct Lookup
   static Stencil dot (Offset p, Real radius);
   static Stencil bracket (Axis a, Interval iv, Real thick, Real protude, Real blot);
   static Stencil accordion (SCM arg, Real interline_f, Font_metric *fm);
-  static Stencil round_filled_polygon (std::vector<Offset> const &points, Real blotdiameter);
+  static Stencil round_filled_polygon (vector<Offset> const &points, Real blotdiameter);
   static Stencil frame (Box b, Real thick, Real blot);
   static Stencil slur (Bezier controls, Real cthick, Real thick);
   static Stencil bezier_sandwich (Bezier top_curve, Bezier bottom_curve);
index a64b82a958dfa7c9d884648f4c73baea1a6fa3c2..bd396a16f771ad6e7c64b3784df00472dac07dd1 100644 (file)
@@ -17,37 +17,37 @@ void set_debug (bool);
 void do_scores ();
 void clear_scores ();
 void add_score (Score *s);
-void set_default_output (std::string s);
-std::string find_file (std::string);
+void set_default_output (string s);
+string find_file (string);
 void call_constructors ();
-std::vector<std::string> get_inclusion_names ();
-void set_inclusion_names (std::vector<std::string>);
+vector<string> get_inclusion_names ();
+void set_inclusion_names (vector<string>);
 
-extern std::string init_name_global;
+extern string init_name_global;
 
 /* options */
-extern std::vector<std::string> dump_header_fieldnames_global;
-extern std::string output_backend_global;
-extern std::string output_name_global;
+extern vector<string> dump_header_fieldnames_global;
+extern string output_backend_global;
+extern string output_name_global;
 extern bool be_safe_global;
 extern bool be_verbose_global;
 extern bool do_internal_type_checking_global;
 extern bool is_pango_format_global;
 extern bool is_TeX_format_global;
 extern bool point_and_click_global;
-extern std::string prefix_directory;
+extern string prefix_directory;
 extern bool use_object_keys;
 
 /*
   todo: collect in Output_option struct?
 */
-extern std::string output_format_global;
+extern string output_format_global;
 
 extern bool make_preview;
 extern bool make_print;
 
 /* misc */
-extern std::vector<std::string> failed_files;
+extern vector<string> failed_files;
 extern int exit_status_global;
 extern File_path global_path;
 extern const char *LILYPOND_DATADIR;
index 4f0e22a19fd29e533a1a950e199e490881f30c24..178ddedbf5bc792f1592633f94c57660bdbdb605 100644 (file)
@@ -26,9 +26,9 @@ public:
   /// factory
   static Midi_item *get_midi (Audio_item *a);
 
-  static std::string i2varint_string (int i);
+  static string i2varint_string (int i);
 
-  virtual std::string to_string () const = 0;
+  virtual string to_string () const = 0;
 
   int channel_;
 };
@@ -43,7 +43,7 @@ public:
 
   Moment delta_mom_;
   Midi_item *midi_;
-  std::string to_string () const;
+  string to_string () const;
 };
 
 /**
@@ -52,15 +52,15 @@ public:
 class Midi_chunk : public Midi_item
 {
 public:
-  void set (std::string header_string, std::string data_string, std::string footer_string);
-  virtual std::string to_string () const;
-  virtual std::string data_string () const;
+  void set (string header_string, string data_string, string footer_string);
+  virtual string to_string () const;
+  virtual string data_string () const;
   DECLARE_CLASSNAME(Midi_chunk);
 
 private:
-  std::string data_string_;
-  std::string footer_string_;
-  std::string header_string_;
+  string data_string_;
+  string footer_string_;
+  string header_string_;
 };
 
 class Midi_duration : public Midi_item
@@ -68,7 +68,7 @@ class Midi_duration : public Midi_item
 public:
   Midi_duration (Real seconds_f);
 
-  virtual std::string to_string () const;
+  virtual string to_string () const;
   Real seconds_;
 };
 
@@ -89,7 +89,7 @@ public:
   Midi_instrument (Audio_instrument *);
 
   DECLARE_CLASSNAME(Midi_instrument);
-  virtual std::string to_string () const;
+  virtual string to_string () const;
 
   Audio_instrument *audio_;
 };
@@ -100,7 +100,7 @@ public:
   Midi_key (Audio_key *);
   DECLARE_CLASSNAME(Midi_key);
 
-  virtual std::string to_string () const;
+  virtual string to_string () const;
 
   Audio_key *audio_;
 };
@@ -111,7 +111,7 @@ public:
   Midi_time_signature (Audio_time_signature *);
   DECLARE_CLASSNAME(Midi_time_signature);
 
-  virtual std::string to_string () const;
+  virtual string to_string () const;
 
   Audio_time_signature *audio_;
   int clocks_per_1_;
@@ -129,7 +129,7 @@ public:
   Moment get_length () const;
   int get_pitch () const;
   int get_fine_tuning () const;
-  virtual std::string to_string () const;
+  virtual string to_string () const;
 
   Audio_note *audio_;
 
@@ -146,7 +146,7 @@ public:
   Midi_note_off (Midi_note *);
   DECLARE_CLASSNAME(Midi_note_off);
 
-  virtual std::string to_string () const;
+  virtual string to_string () const;
 
   Midi_note *on_;
   Byte aftertouch_byte_;
@@ -164,7 +164,7 @@ public:
 
   Midi_text (Audio_text *);
 
-  virtual std::string to_string () const;
+  virtual string to_string () const;
 
   Audio_text *audio_;
 };
@@ -175,7 +175,7 @@ public:
   Midi_dynamic (Audio_dynamic *);
   DECLARE_CLASSNAME(Midi_dynamic);
 
-  virtual std::string to_string () const;
+  virtual string to_string () const;
 
   Audio_dynamic *audio_;
 };
@@ -186,7 +186,7 @@ public:
   Midi_piano_pedal (Audio_piano_pedal *);
   DECLARE_CLASSNAME(Midi_piano_pedal);
 
-  virtual std::string to_string () const;
+  virtual string to_string () const;
 
   Audio_piano_pedal *audio_;
 };
@@ -197,7 +197,7 @@ public:
   Midi_tempo (Audio_tempo *);
   DECLARE_CLASSNAME(Midi_tempo);
 
-  virtual std::string to_string () const;
+  virtual string to_string () const;
 
   Audio_tempo *audio_;
 };
@@ -216,7 +216,7 @@ public:
   Midi_track ();
 
   void add (Moment delta_time_mom, Midi_item *midi);
-  virtual std::string data_string () const;
+  virtual string data_string () const;
 };
 
 #endif // MIDI_ITEM_HH
index 1d460c29daa4ad5d912dcdfe06a0e8f775075675..4f02d6cbca7a9f469ceb2317587aff3927750182 100644 (file)
@@ -17,17 +17,17 @@ class Midi_item;
 /// Midi outputfile
 struct Midi_stream
 {
-  Midi_stream (std::string file_name_string);
+  Midi_stream (string file_name_string);
   ~Midi_stream ();
 
-  Midi_stream &operator << (std::string str);
+  Midi_stream &operator << (string str);
   Midi_stream &operator << (Midi_item const &midi_c_r);
   Midi_stream &operator << (int i);
 
   void open ();
 
   FILE *out_file_;
-  std::string file_name_string_;
+  string file_name_string_;
 };
 
 #endif // MIDI_STREAM_HH
index 396b721daf74c8ddcc5096eec81396e4bc950fe1..a01add8f1e1d41daa337111893747abae3adf941 100644 (file)
@@ -41,7 +41,7 @@ private:
   Midi_track *track_;
   Audio_staff *staff_;
   vsize index_;
-  Link_array__Audio_item_ *items_;
+  vector<Audio_item*> *items_;
   PQueue<Midi_note_event> stop_note_queue;
   Moment last_mom_;
 };
index 4799900b6c42c0e765e635ddb7c08679338e72e7..c7dd1e51a97d7d99ddb19ae577e4a6823714bcd5 100644 (file)
@@ -28,7 +28,7 @@ sign (int i)
   else return 0;
 }
 
-std::vector<std::string> split_string (std::string s, char c);
+vector<string> split_string (string s, char c);
 
 inline Real
 linear_interpolate (Real x, Real x1, Real x2, Real y1, Real y2)
index 823211ddf426e6b43a71dd8534f7a2b8fa2926fe..c2f66f9292d65a1573c628007bd15f6ad1fa5b0b 100644 (file)
 struct Modified_font_metric : public Font_metric
 {
 public:
-  Box text_dimension (std::string) const;
-  Stencil text_stencil (std::string) const;
+  Box text_dimension (string) const;
+  Stencil text_stencil (string) const;
 
   static SCM make_scaled_font_metric (Font_metric *fm, Real magnification);
   vsize count () const;
   Offset get_indexed_wxwy (vsize) const;
-  Offset attachment_point (std::string) const;
-  vsize name_to_index (std::string) const;
+  Offset attachment_point (string) const;
+  vsize name_to_index (string) const;
   vsize index_to_charcode (vsize) const;
   Font_metric *original_font () const;
 
@@ -32,13 +32,13 @@ protected:
 
   Modified_font_metric (Font_metric *fm, Real magnification);
   SCM sub_fonts () const;
-  std::string font_name () const;
+  string font_name () const;
   Real design_size () const;
   void derived_mark () const;
   Box get_indexed_char (vsize) const;
   vsize index_to_ascii (vsize) const;
   Box get_ascii_char (vsize) const;
-  Box tex_kludge (std::string) const;
+  Box tex_kludge (string) const;
 };
 
 #endif /* MODIFIED_FONT_METRIC_HH */
index 8d594d4931bd04be5e71a3bfb33ee9be94af8c61..f0c6fbb21b79b418f11b65e0a74ac3c72c0bbf56 100644 (file)
@@ -46,7 +46,7 @@ public:
   /*
     Deliver a copy of THIS as a smobified SCM
   */
-  std::string to_string () const;
+  string to_string () const;
   static int compare (Moment const &, Moment const &);
   SCM as_scheme () const;
 };
index 00ed6ad386aabf5fe3cd1980d9370cfff81c52b7..0b738aa0b338569bf7409d3a04c4606c6650a963 100644 (file)
@@ -94,7 +94,7 @@ bool is_child_context (Context *me, Context *child);
 
 #define IMPLEMENT_CTOR_CALLBACK(Class)                                 \
   LY_DEFINE_MEMBER_FUNCTION (Class, constructor, \
-                            mangle_cxx_identifier (std::string (#Class) + "::constructor").c_str(), \
+                            mangle_cxx_identifier (string (#Class) + "::constructor").c_str(), \
                             0, 0, 0,                                   \
                             (),                                        \
                             "")                                        \
index 70be17119ccf81ffe1ed5d0af4b12448beb2916e..11f578ce8152da85c0abe7727b51494937905d97 100644 (file)
 class Note_collision_interface
 {
 public:
-  static SCM automatic_shift (Grob *, Drul_array<Link_array__Grob_ >);
+  static SCM automatic_shift (Grob *, Drul_array<vector<Grob*> >);
   static SCM forced_shift (Grob *);
 
-  static Drul_array<Link_array__Grob_ > get_clash_groups (Grob *me);
+  static Drul_array<vector<Grob*> > get_clash_groups (Grob *me);
   DECLARE_SCHEME_CALLBACK (calc_positioning_done, (SCM smob));
   static void add_column (Grob *me, Grob *ncol);
   static bool has_interface (Grob *);
index 57518b2b5721edbe8168e689832367348381b102..e1d798611bb6d84c36ff48703074a782c28d9ea4 100644 (file)
@@ -38,22 +38,22 @@ public:
   SCM get_char_table () const;
   SCM glyph_list () const;
     
-  std::string get_otf_table (std::string tag) const;
-  static SCM make_otf (std::string);
-  std::string font_name () const;
+  string get_otf_table (string tag) const;
+  static SCM make_otf (string);
+  string font_name () const;
   ~Open_type_font ();
-  Offset attachment_point (std::string) const;
+  Offset attachment_point (string) const;
   vsize count () const;
   Box get_indexed_char (vsize) const;
-  vsize name_to_index (std::string) const;
-  //vsize glyph_name_to_charcode (std::string) const;
+  vsize name_to_index (string) const;
+  //vsize glyph_name_to_charcode (string) const;
   vsize index_to_charcode (vsize) const;
   void derived_mark () const;
   SCM sub_fonts () const;
   Real design_size () const;
 };
 
-std::string get_otf_table (FT_Face face, std::string tag);
-FT_Face open_ft_face (std::string str);
+string get_otf_table (FT_Face face, string tag);
+FT_Face open_ft_face (string str);
 
 #endif /* OPEN_TYPE_FONT_HH */
index 8b4dfe943f216cb3c37f2e5c9665ddbe69e250a9..7d5563d4743487118d0f45792b9c9507c8031af3 100644 (file)
@@ -47,7 +47,7 @@ public:
   Output_def *parent_;
   
   Input input_origin_;
-  std::string user_key_;
+  string user_key_;
 
   Lily_parser *parser_;
   Lily_parser *get_parser () const;
@@ -58,7 +58,7 @@ public:
   /*
     variables.
    */
-  SCM c_variable (std::string id) const;
+  SCM c_variable (string id) const;
   SCM lookup_variable (SCM sym) const;
   void set_variable (SCM sym, SCM val);
   Real get_dimension (SCM symbol) const;
index b3d4ebd934758cdde5ba9724cf484dd0438bb642..fcf5984bacff4342a0a5c71100f6b88f889e9e5a 100644 (file)
@@ -36,9 +36,9 @@ public:
   ~Pango_font ();
 
   SCM font_file_name () const;
-  void register_font_file (std::string, std::string);
-  Stencil text_stencil (std::string) const;
-  Stencil pango_item_string_stencil (PangoItem const *, std::string) const;
+  void register_font_file (string, string);
+  Stencil text_stencil (string) const;
+  Stencil pango_item_string_stencil (PangoItem const *, string) const;
 
   virtual void derived_mark () const;
 };
index ef0fc75363cb5e6e1c2cb0594f0713565fe01ec0..c35a6a2e51d1282c590036b377d570e525775ff3 100644 (file)
@@ -34,7 +34,7 @@ protected:
   int breaks_;                 // used for stat printing
   Paper_column *command_column_;
   Paper_column *musical_column_;
-  Link_array__Item_ items_;
+  vector<Item*> items_;
   bool first_;
   Moment last_moment_;
 public:
index 106b6645f5eac889e9186dc0bfda2826ed772d9f..4f31eb51251791e9ad23e326a586d193b59c2ecc 100644 (file)
@@ -22,7 +22,7 @@
 class Paper_outputter
 {
   SCM output_module_;
-  std::string file_name_;
+  string file_name_;
   SCM file_;
 
 public:
@@ -32,13 +32,13 @@ public:
   SCM file () const;
   SCM dump_string (SCM);
   void output_scheme (SCM scm);
-  Paper_outputter (SCM port, std::string format);
+  Paper_outputter (SCM port, string format);
   SCM scheme_to_string (SCM);
   void output_stencil (Stencil);
   void close ();
 };
 
-Paper_outputter *get_paper_outputter (std::string, std::string);
+Paper_outputter *get_paper_outputter (string, string);
 DECLARE_UNSMOB (Paper_outputter, outputter);
 
 #endif /* PAPER_OUTPUTTER_HH */
index 3056b478aaa2ed952ca80bad1627fec2825d57d5..1082b3330a6e3d8bfeaafae0673ac7725af6dde4 100644 (file)
@@ -28,7 +28,7 @@ public:
   System *root_system () const;
 
   void typeset_system (System *);
-  std::vector<Column_x_positions> calc_breaking ();
+  vector<Column_x_positions> calc_breaking ();
 
   SCM get_paper_systems () const;
 protected:
index f264ecdb6cb8becaacf708b103b3eed0307cc0f3..ff90bfd417161fa9a4f7bb677ceac799302db0cb 100644 (file)
@@ -25,9 +25,9 @@ public:
   void output_header_track (Midi_stream &midi_stream_r);
 
   void print () const;
-  void write_output (std::string filename);
+  void write_output (string filename);
 
-  Link_array__Audio_staff_ audio_staffs_;
+  vector<Audio_staff*> audio_staffs_;
   Cons<Audio_element> *audio_element_list_;
   Output_def *midi_;
 };
index 2b83f61496c2c367239d46dc1e90db707fbea1bd..f5c1256a22eed053387d7a70338accea6187d331 100644 (file)
@@ -24,7 +24,7 @@ public:
   virtual int get_tempo () const;
 
 protected:
-  std::vector<Audio_element_info> announce_infos_;
+  vector<Audio_element_info> announce_infos_;
 
 private:
   void acknowledge_audio_elements ();
index cce03371f110ce9da9b956988648e1d522c1c661..da61960ecb08ef60f9f0f5f1f7af45a3b3050a32 100644 (file)
@@ -57,7 +57,7 @@ public:
   int steps () const;
   int semitone_pitch () const;
   int quartertone_pitch () const;
-  std::string to_string () const;
+  string to_string () const;
 
   DECLARE_SCHEME_CALLBACK (less_p, (SCM a, SCM b));
   DECLARE_SIMPLE_SMOBS (Pitch,);
@@ -82,7 +82,7 @@ DECLARE_UNSMOB (Pitch, pitch);
 
 INSTANTIATE_COMPARE (Pitch, Pitch::compare);
 
-int compare (std::vector<Pitch> *, std::vector<Pitch> *);
+int compare (vector<Pitch> *, vector<Pitch> *);
 extern SCM pitch_less_proc;
 Pitch pitch_interval (Pitch const &from, Pitch const &to);
 
index 7ec2d625133c1a1e2fbcdad1c9596db9d32ab03b..52adf53942380b97c6d8914ddd5b25a642075b58 100644 (file)
@@ -21,8 +21,8 @@ public:
   static void add_grob (Grob *, SCM nm, SCM x);
 };
 
-Link_array__Grob_ const &internal_extract_grob_array (Grob const *elt, SCM symbol);
-Link_array__Item_ internal_extract_item_array (Grob const *elt, SCM symbol);
+vector<Grob*> const &internal_extract_grob_array (Grob const *elt, SCM symbol);
+vector<Item*> internal_extract_item_array (Grob const *elt, SCM symbol);
 
 #define extract_grob_array(x, prop) internal_extract_grob_array (x, ly_symbol2scm (prop))
 #define extract_item_array(x, prop) internal_extract_item_array (x, ly_symbol2scm (prop))
@@ -32,9 +32,9 @@ Link_array__Item_ internal_extract_item_array (Grob const *elt, SCM symbol);
   representation of grob sets again.
 */
 #define extract_grob_set(grob, prop, set)                              \
-  Link_array__Grob_ const &set (internal_extract_grob_array (grob, ly_symbol2scm (prop)))
+  vector<Grob*> const &set (internal_extract_grob_array (grob, ly_symbol2scm (prop)))
 #define extract_item_set(grob, prop, set)                              \
-  Link_array__Item_ set (internal_extract_item_array (grob, ly_symbol2scm (prop)))
+  vector<Item*> set (internal_extract_item_array (grob, ly_symbol2scm (prop)))
 
 #endif /* POINTER_GROUP_INTERFACE_HH */
 
index 719c140651e1e8aac903b6182d7f9fa3e259d86d..141aba49b396ddc502790972ea544dadd36ae26a 100644 (file)
@@ -36,7 +36,7 @@ protected:
 public:
   Prob (SCM, SCM);
   Prob (Prob const &);
-  virtual std::string name () const;
+  virtual string name () const;
   SCM type () const { return type_; }
   SCM get_property_alist (bool mutble) const;
   SCM internal_get_property (SCM sym) const;
index c8ccacc02951121d76393228470e6cda39bafb22..18188e01b5af22ebb6d41da5aacd93f4053d699f 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "std-string.hh"
 
-int sane_putenv (char const *key, std::string value, bool overwrite);
+int sane_putenv (char const *key, string value, bool overwrite);
 void setup_paths (char const *argv0);
 extern bool relocate_binary;
 
index 19e3abc3d4da1bf630c0225c90f7aec069f711d5..357b76bcb22c84a6903a323790d16d9417b29c77 100644 (file)
@@ -18,7 +18,7 @@ class Rest
 public:
   DECLARE_SCHEME_CALLBACK (y_offset_callback, (SCM));
   static bool has_interface (Grob *);
-  static std::string glyph_name (Grob *, int, std::string, bool);
+  static string glyph_name (Grob *, int, string, bool);
   static SCM brew_internal_stencil (Grob*, bool);
   static SCM generic_extent_callback (Grob*, Axis);
   DECLARE_SCHEME_CALLBACK (polyphonic_offset_callback, (SCM));
index 286210dde5e0a7cc267b204b335279440c79eebb..aa23392888653ddf553e11bfc94f75a93ab39bd3 100644 (file)
@@ -17,7 +17,7 @@ class Score_engraver : public virtual Score_translator,
 {
   System *system_;
 
-  Link_array__Grob_ elems_;
+  vector<Grob*> elems_;
   Paper_score *pscore_;
 
   void typeset_all ();
index 092ddd0c8d9b3ae74abd2b5a838c176b049af481..004e251dd9c78a5b310f74e4563772156b2c5111 100644 (file)
@@ -24,8 +24,8 @@ class Score : public Input
   SCM music_;
 
 public:
-  Link_array__Output_def_ defs_;
-  std::string user_key_;
+  vector<Output_def*> defs_;
+  string user_key_;
   SCM header_;
   bool error_found_;
 
index b1499339e7f4e5f4ba51c79b238e394b2de997d8..15b6aecbe839b10b5c897aa18179148360ea5308 100644 (file)
@@ -14,7 +14,7 @@
 class Separating_group_spanner
 {
   static void find_rods (Item *,
-                        Link_array__Grob_ const &separators,
+                        vector<Grob*> const &separators,
                         vsize idx,
                         Real);
 public:
index 16c9494ed6ff78229e2ddbbc24258906ad8e45f2..c98d13a395d1e4a4336ef73c7269f486ddd4e827 100644 (file)
@@ -29,7 +29,7 @@ struct Spring_description
 class Simple_spacer
 {
 public:
-  std::vector<Spring_description> springs_;
+  vector<Spring_description> springs_;
   Real force_;
   Real indent_;
   Real line_len_;
@@ -56,11 +56,11 @@ public:
 struct Simple_spacer_wrapper
 {
   Simple_spacer *spacer_;
-  Link_array__Grob_ spaced_cols_;
-  Link_array__Grob_ loose_cols_;
+  vector<Grob*> spaced_cols_;
+  vector<Grob*> loose_cols_;
 
   Simple_spacer_wrapper ();
-  void add_columns (Link_array__Grob_ const &);
+  void add_columns (vector<Grob*> const &);
   void solve (Column_x_positions *, bool);
   ~Simple_spacer_wrapper ();
 private:
index f24781a7505289782746e069ed7a5bacb501f501..fc8d3acedd14d1f5a680378ee537014b518809a6 100644 (file)
@@ -21,20 +21,20 @@ struct Skyline_entry
 };
 
 void
-merge_skyline (std::vector<Skyline_entry> *a1, std::vector<Skyline_entry> const &a2,
+merge_skyline (vector<Skyline_entry> *a1, vector<Skyline_entry> const &a2,
               Direction);
-void insert_extent_into_skyline (std::vector<Skyline_entry> *line, Box b, Axis line_axis,
+void insert_extent_into_skyline (vector<Skyline_entry> *line, Box b, Axis line_axis,
                                 Direction d);
-std::vector<Skyline_entry>
-extents_to_skyline (std::vector<Box> const &extents, Axis a, Direction d);
-std::vector<Skyline_entry> empty_skyline (Direction d);
-void heighten_skyline (std::vector<Skyline_entry> *buildings, Real ground);
+vector<Skyline_entry>
+extents_to_skyline (vector<Box> const &extents, Axis a, Direction d);
+vector<Skyline_entry> empty_skyline (Direction d);
+void heighten_skyline (vector<Skyline_entry> *buildings, Real ground);
 Real
-skyline_meshing_distance (std::vector<Skyline_entry> const &buildings,
-                         std::vector<Skyline_entry> const &clouds);
+skyline_meshing_distance (vector<Skyline_entry> const &buildings,
+                         vector<Skyline_entry> const &clouds);
 
 Real
-skyline_height (std::vector<Skyline_entry> const &buildings,
+skyline_height (vector<Skyline_entry> const &buildings,
                Real airplane, Direction sky_dir);
 
 #endif /* SKYLINE_HH */
index 285a8da7df6a9acccd4638caf596e6e3f8611cb8..de6a54ca377f6dbdc58eae7071560dc219b60a3e 100644 (file)
@@ -24,13 +24,13 @@ public:
   int index_;
 
 #if DEBUG_SLUR_SCORING
-  std::string score_card_;
+  string score_card_;
 #endif
 
   Slur_configuration ();
 
   void generate_curve (Slur_score_state const &state, Real r0, Real h_inf,
-                      std::vector<Offset> const &);
+                      vector<Offset> const &);
   void score (Slur_score_state const &);
 protected:
   void score_extra_encompass (Slur_score_state const &);
index 51be36672cb1a224a071587061fe273cfc6ac126..0164116a148cee6cb629d4558a3ed6633231455c 100644 (file)
@@ -104,15 +104,15 @@ struct Slur_score_state
   bool has_same_beam_;
 
   Real musical_dy_;
-  Link_array__Grob_ columns_;
-  std::vector<Encompass_info> encompass_infos_;
-  std::vector<Extra_collision_info> extra_encompass_infos_;
+  vector<Grob*> columns_;
+  vector<Encompass_info> encompass_infos_;
+  vector<Extra_collision_info> extra_encompass_infos_;
 
   Direction dir_;
   Slur_score_parameters parameters_;
   Drul_array<Bound_info> extremes_;
   Drul_array<Offset> base_attachments_;
-  Link_array__Slur_configuration_ configurations_;
+  vector<Slur_configuration*> configurations_;
   Real staff_space_;
   Real thickness_;
 
@@ -123,14 +123,14 @@ struct Slur_score_state
   void fill (Grob *);
   void set_next_direction ();
 
-  std::vector<Offset> generate_avoid_offsets () const;
+  vector<Offset> generate_avoid_offsets () const;
   Drul_array<Bound_info> get_bound_info () const;
   void generate_curves () const;
-  Link_array__Slur_configuration_ enumerate_attachments (Drul_array<Real> end_ys) const;
+  vector<Slur_configuration*> enumerate_attachments (Drul_array<Real> end_ys) const;
   Drul_array<Offset> get_base_attachments () const;
   Drul_array<Real> get_y_attachment_range () const;
   Encompass_info get_encompass_info (Grob *col) const;
-  std::vector<Extra_collision_info> get_extra_encompass_infos () const;
+  vector<Extra_collision_info> get_extra_encompass_infos () const;
   Real move_away_from_staffline (Real y, Grob *on_staff) const;
   int get_closest_index (SCM inspect_quants) const;
 };
index 42a2be56b2514d1755e2cf2a7fbbe468c7f00bf4..546367244685b70f19a4d6942ada64c867346d99 100644 (file)
@@ -29,19 +29,19 @@ using namespace std;
 class Source_file
 {
 public:
-  Source_file (std::string fn);
-  Source_file (std::string, std::string);
+  Source_file (string fn);
+  Source_file (string, string);
 
   virtual ~Source_file ();
 
   char const *c_str () const;
-  virtual std::string quote_input (char const *pos_str0) const;
+  virtual string quote_input (char const *pos_str0) const;
   istream *get_istream ();
   bool contains (char const *pos_str0) const;
   int length () const;
   virtual int get_line (char const *pos_str0) const;
-  std::string name_string () const;
-  std::string file_line_column_string (char const *str0) const;
+  string name_string () const;
+  string file_line_column_string (char const *str0) const;
 
   // return start + n
   char const *seek_str0 (int n);
@@ -50,11 +50,11 @@ public:
   // return here + n bytes
   char const *forward_str0 (int n);
   char const *pos_str0 () { return pos_str0_; }
-  std::string get_string (int n);
+  string get_string (int n);
   void set_pos (char const *pos_str0);
 public:
   Slice line_slice (char const *pos_str0) const;
-  std::string line_string (char const *pos_str0) const;
+  string line_string (char const *pos_str0) const;
   void get_counts (char const *pos_str0, int *, int *, int *) const;
 
   /*
@@ -65,13 +65,13 @@ public:
   char const *pos_str0_;
 
   SCM get_port () const;
-  std::string name_;
+  string name_;
 
 private:
-  Link_array__char_ newline_locations_;
+  vector<char*> newline_locations_;
   istream *istream_;
   char *contents_str0_;
-  std::vector<char> chs_;
+  vector<char> chs_;
   int length_;
   void load_stdin ();
   void init_port ();
@@ -79,7 +79,7 @@ private:
   Protected_scm str_port_;
 };
 
-char *gulp_file (std::string fn, int *len);
+char *gulp_file (string fn, int *len);
 
 #endif /* SOURCE_FILE_HH */
 
index a786bea4ae5cfed6cbd9118de587a109b1a9b7c1..eaa0a3085099023dc31567036667224be75f8cfd 100644 (file)
@@ -22,7 +22,7 @@ public:
   Sources ();
   ~Sources ();
 
-  Source_file *get_file (std::string &file_name);
+  Source_file *get_file (string &file_name);
   Source_file *get_sourcefile (char const *);
   void add (Source_file *sourcefile);
   void set_path (File_path *);
index 1b7a86b10334603139f4e31188b611c964dde9c0..c713c8755aa680dc4724f6a2959563b8fafb45b9 100644 (file)
@@ -43,13 +43,13 @@ public:
   static Real default_bar_spacing (Grob *, Grob *, Grob *, Moment);
   static Real note_spacing (Grob *, Grob *, Grob *, Spacing_options const *, bool *);
   static Real get_duration_space (Moment dur, Spacing_options const *, bool *);
-  static Rational find_shortest (Grob *, Link_array__Grob_ const &);
-  static Rational effective_shortest_duration (Grob *me, Link_array__Grob_ const &all);
+  static Rational find_shortest (Grob *, vector<Grob*> const &);
+  static Rational effective_shortest_duration (Grob *me, vector<Grob*> const &all);
   static void breakable_column_spacing (Grob *, Item *l, Item *r, Spacing_options const *);
-  static void prune_loose_columns (Grob *, Link_array__Grob_ *cols, Spacing_options const *);
-  static void set_explicit_neighbor_columns (Link_array__Grob_ const &cols);
-  static void set_implicit_neighbor_columns (Link_array__Grob_ const &cols);
-  static void generate_springs (Grob *me, Link_array__Grob_ const &cols, Spacing_options const *);
+  static void prune_loose_columns (Grob *, vector<Grob*> *cols, Spacing_options const *);
+  static void set_explicit_neighbor_columns (vector<Grob*> const &cols);
+  static void set_implicit_neighbor_columns (vector<Grob*> const &cols);
+  static void generate_springs (Grob *me, vector<Grob*> const &cols, Spacing_options const *);
   static void musical_column_spacing (Grob *, Item *, Item *, Spacing_options const *);
   DECLARE_SCHEME_CALLBACK (set_springs, (SCM));
   static bool has_interface (Grob *);
index 6f87f8d58576bf88746a89680a9ff720bec7d1b6..c64c61d6364a1f664b8a8fe334b1a32e1586636c 100644 (file)
@@ -36,7 +36,7 @@ class Spanner : public Grob
 public:
   DECLARE_SCHEME_CALLBACK (set_spacing_rods, (SCM));
 
-  Link_array__Spanner_ broken_intos_;
+  vector<Spanner*> broken_intos_;
 
   vsize get_break_index () const;
 
index b9d69c7ba5052cbc27d4bded0b8906b8704bd3a7..09daee1d16a06c856374ecfe392eb8c43bd6ab7c 100644 (file)
@@ -14,7 +14,7 @@
 class Stem
 {
 public:
-  static std::vector<int> note_head_positions (Grob *);
+  static vector<int> note_head_positions (Grob *);
   static int duration_log (Grob *);
   static void set_beaming (Grob *, int, Direction d);
   static int get_beaming (Grob *, Direction d);
index fe33920d647bf6da82fdbe65bce4e5928f05bce1..4c938da6856a0ced1b122a4226adad4058127dc6 100644 (file)
 using namespace std;
 
 #if __GNUC__ > 2
-ostream *open_file_stream (std::string file_name,
+ostream *open_file_stream (string file_name,
                                ios_base::openmode mode = ios::out);
 #else
-ostream *open_file_stream (std::string file_name, int mode = ios::out);
+ostream *open_file_stream (string file_name, int mode = ios::out);
 #endif
 void close_file_stream (ostream *os);
 
index 8b82baeff262df428cb30e3bdcb0f33c901f15ec..2fe740fddb954d6c5dc0befbec6ca6d2dc92c3ed 100644 (file)
@@ -38,11 +38,11 @@ public:
   int element_count () const;
   int spanner_count () const;
 
-  void break_into_pieces (std::vector<Column_x_positions> const &);
+  void break_into_pieces (vector<Column_x_positions> const &);
   static bool has_interface (Grob *);
 
-  Link_array__Item_ broken_col_range (Item const *, Item const *) const;
-  Link_array__Grob_ columns () const;
+  vector<Item*> broken_col_range (Item const *, Item const *) const;
+  vector<Grob*> columns () const;
 
   void add_column (Paper_column *);
   void typeset_grob (Grob *);
index 47004766e9d66f74dff1509a1822f4936407b5be..030a9ad34413e68c62ec9d3b1188762897978fa7 100644 (file)
@@ -12,7 +12,7 @@
 #include "lily-guile.hh"
 #include "box.hh"
 
-void try_load_text_metrics (std::string);
+void try_load_text_metrics (string);
 SCM ly_load_text_dimensions (SCM);
 Box lookup_tex_text_dimension (Font_metric *font,
                               SCM text);
index 96979fbe477bd8ea87157f5bd539ac00e9de5c81..91433ad7af2297307f95ec5b49192627a5ccdc50 100644 (file)
@@ -20,24 +20,24 @@ class Tex_font_metric_reader
 private:
   Real get_U32_fix ();
   Real get_U32_fix_scaled ();
-  std::string get_bcpl_string ();
+  string get_bcpl_string ();
   void read_header ();
   void read_params ();
   void read_char_metrics ();
   Tex_font_char_metric read_char_metric (Char_code code);
   Tex_font_char_metric read_char ();
-  void read_lig_kern_program (std::vector<Tfm_ligature> *ligatures,
-                             std::vector<Tfm_kern> *kerns);
+  void read_lig_kern_program (vector<Tfm_ligature> *ligatures,
+                             vector<Tfm_kern> *kerns);
 
   Binary_source_file input_;
 
 public:
-  Tex_font_metric_reader (std::string name);
+  Tex_font_metric_reader (string name);
 
   Tfm_info info_;
   Tfm_header header_;
-  std::vector<Tex_font_char_metric> char_metrics_;
-  std::vector<vsize> ascii_to_metric_idx_;
+  vector<Tex_font_char_metric> char_metrics_;
+  vector<vsize> ascii_to_metric_idx_;
 };
 
 #endif /* TFM_READER_HH */
index 15a74268ece6dfb19e6b9603863202fed330451e..4aa4845d7ddac3dceb8fd18a193d6a7b57e1607d 100644 (file)
@@ -103,7 +103,7 @@ struct Tfm_info
   Char_code first_charcode, last_charcode;
   U32 checksum;
   Real design_size;
-  std::string coding_scheme;
+  string coding_scheme;
   unsigned parameter_count;
   // Real parameters [Tex_font_metric::MAX_FONTDIMENS];
   Real parameters [TFM_MAX_FONTDIMENS];
@@ -132,8 +132,8 @@ struct Tex_font_char_metric
   Char_code code_;
   Real width_, height_, depth_, italic_correction_;
   Fix width_fix_, height_fix_, depth_fix_, italic_correction_fix_;
-  std::vector<Tfm_kern> kerns_;
-  std::vector<Tfm_ligature> ligatures_;
+  vector<Tfm_kern> kerns_;
+  vector<Tfm_ligature> ligatures_;
 
   Tex_font_char_metric ();
 
@@ -145,24 +145,24 @@ class Tex_font_metric : public Simple_font_metric
   DECLARE_CLASSNAME(Tex_font_metric);
 
 public:
-  static SCM make_tfm (std::string file_name);
+  static SCM make_tfm (string file_name);
 
   vsize count () const;
   Box get_ascii_char (vsize) const;
   Real design_size () const;
   void derived_mark () const;
-  vsize name_to_index (std::string) const;
-  std::string font_name () const;
+  vsize name_to_index (string) const;
+  string font_name () const;
 
   Tfm_info const &info () const;
 
 protected:
   Tfm_info info_;
   Tfm_header header_;
-  std::vector<Tex_font_char_metric> char_metrics_;
-  std::vector<vsize> ascii_to_metric_idx_;
+  vector<Tex_font_char_metric> char_metrics_;
+  vector<vsize> ascii_to_metric_idx_;
   SCM encoding_table_;
-  std::string font_name_;
+  string font_name_;
 
 private:
   Tex_font_char_metric const *find_ascii (vsize ascii, bool warn = true) const;
index 600e11eedd2fdef10bed48536ed52e8778550fd8..1c82c4269efb65615db0504c97a102e77f1a19c9 100644 (file)
@@ -13,8 +13,8 @@
 #include "lily-proto.hh"
 #include "tie-configuration.hh"
 
-void set_chord_outline (std::vector<Skyline_entry> *skyline,
-                       Link_array__Item_ bounds,
+void set_chord_outline (vector<Skyline_entry> *skyline,
+                       vector<Item*> bounds,
                        Grob *common,
                        Direction d);
 void set_tie_config_directions (Ties_configuration *tie_configs_ptr);
@@ -25,8 +25,8 @@ void final_shape_adjustment (Tie_configuration &conf,
                             Tie_formatting_problem const&,
                             Grob *staff_referencer);
 void
-set_chord_outlines (Drul_array< std::vector<Skyline_entry> > *skyline_drul,
-                   Link_array__Grob_ ties,
+set_chord_outlines (Drul_array< vector<Skyline_entry> > *skyline_drul,
+                   vector<Grob*> ties,
                    Grob *common);
 
 void
index 3608a94bc6ce00193f026d1c3997dc15fb611ebd..999d1ea8b6f721533d95bd6720d3e83dbfe27066 100644 (file)
@@ -40,7 +40,7 @@ public:
 
 INSTANTIATE_COMPARE (Tie_configuration, Tie_configuration::compare);
 
-typedef std::vector<Tie_configuration> Ties_configuration;
+typedef vector<Tie_configuration> Ties_configuration;
 
 #endif /* TIE_CONFIGURATION_HH */
 
index 7f89b21a65de36f392222292fb93f39fbb175d2d..50b6bcba93f01e75db806a70606150319896bcdb 100644 (file)
@@ -76,11 +76,11 @@ struct Tie_configuration_variation
 
 class Tie_formatting_problem
 {
-  Drul_array< std::vector<Skyline_entry> > chord_outlines_;
+  Drul_array< vector<Skyline_entry> > chord_outlines_;
   Drul_array< Box > stem_extents_;
   set<int> dot_positions_;
   Interval dot_x_;
-  std::vector<Tie_specification> specifications_;
+  vector<Tie_specification> specifications_;
   
   Tie_configuration_map possibilities_;
 
@@ -89,7 +89,7 @@ class Tie_formatting_problem
   
   Tie_configuration *get_configuration (int position, Direction dir);
   Tie_configuration *generate_configuration (int position, Direction dir) const;
-  std::vector<Tie_configuration_variation> get_variations (Ties_configuration const &ties);
+  vector<Tie_configuration_variation> get_variations (Ties_configuration const &ties);
 
   Real score_configuration (Tie_configuration const &) const;
   Real score_aptitude (Tie_configuration const &, Tie_specification const &) const;
@@ -110,10 +110,10 @@ public:
   Ties_configuration generate_optimal_chord_configuration ();
   Ties_configuration generate_ties_configuration (Ties_configuration const &);
   Tie_configuration find_optimal_tie_configuration (Tie_specification const &) const;
-  void from_ties (Link_array__Grob_ const &ties);
+  void from_ties (vector<Grob*> const &ties);
   void from_tie (Grob *tie);
-  void from_lv_ties (Link_array__Grob_ const &);
-  void set_chord_outline (Link_array__Item_, Direction);
+  void from_lv_ties (vector<Grob*> const &);
+  void set_chord_outline (vector<Item*>, Direction);
   void set_manual_tie_configuration (SCM);
   Interval get_attachment (Real) const;
   Grob *common_x_refpoint () const;
index dd17643d2d68785b64e0e2ade4a830539337ba5a..060ab173aff7d4c582aac7ffe2b4ee4de713627b 100644 (file)
@@ -22,7 +22,7 @@ struct Engraver_dispatch_entry
 
 class Engraver_dispatch_list
 {
-  std::vector<Engraver_dispatch_entry> dispatch_entries_;
+  vector<Engraver_dispatch_entry> dispatch_entries_;
 public:
   void apply (Grob_info);
   SCM static create (SCM trans_list,
index 625944ba2d6c9e6c6177cc1451d430d1549b83b3..9a6940ac06be2fe26c9f3cdd56a70b5e284d428a 100644 (file)
@@ -40,7 +40,7 @@ class Translator_group
 {
 private:
   void precompute_method_bindings ();
-  std::vector<Translator_method_binding>
+  vector<Translator_method_binding>
   precomputed_method_bindings_[TRANSLATOR_METHOD_PRECOMPUTE_COUNT];
 
   Translator_group_void_method
index 2121da90efd108b3314c4a9baeb53bb43083a92f..ab587cb5d28e644d454d9a77c48d4ba99299d7e8 100644 (file)
@@ -27,7 +27,7 @@ struct Acknowledge_information
   NAME ();                                                             \
   VIRTUAL_COPY_CONSTRUCTOR (Translator, NAME);                         \
   static SCM static_description_;                                      \
-  static std::vector<Acknowledge_information> acknowledge_static_array_;       \
+  static vector<Acknowledge_information> acknowledge_static_array_;    \
   virtual void fetch_precomputable_methods (Translator_void_method_ptr methods[]); \
   virtual SCM static_translator_description () const;                  \
   virtual SCM translator_description () const;                         \
index 68f44c816dd3d13d186f7818de1a2aa65f3c5df6..255adc3ff9634535dc249816145fbd4eb90ffa23 100644 (file)
@@ -31,7 +31,7 @@
   ADD_GLOBAL_CTOR (_ ## T ## _adder);
 
 #define ADD_TRANSLATOR(classname, desc, grobs, accepted, read, write)  \
-  std::vector<Acknowledge_information> classname::acknowledge_static_array_;   \
+  vector<Acknowledge_information> classname::acknowledge_static_array_;        \
   IMPLEMENT_FETCH_PRECOMPUTABLE_METHODS (classname);                   \
   ADD_THIS_TRANSLATOR (classname);                                     \
   Engraver_void_function_engraver_grob_info                            \
 
 void add_acknowledger (Engraver_void_function_engraver_grob_info ptr,
                       char const *func_name,
-                      std::vector<Acknowledge_information> *ack_array);
+                      vector<Acknowledge_information> *ack_array);
 
 Engraver_void_function_engraver_grob_info
 generic_get_acknowledger (SCM sym,
-                         std::vector<Acknowledge_information> const *ack_array);
+                         vector<Acknowledge_information> const *ack_array);
 
 #define ADD_ACKNOWLEDGER(CLASS, NAME)                                  \
   void CLASS ## NAME ## _ack_adder ()                                  \
index 3b0c0d735dcd1eb3d7fc6b6a5a4c5b591120ffc3..fc6830dd12b728c6cd2028cfb4deb258f238e6b2 100644 (file)
@@ -25,7 +25,7 @@ public:
   static void get_bounds (Grob *, Grob **, Grob **);
   static void add_column (Grob *me, Item *);
   static void add_beam (Grob *me, Grob *);
-  static Grob *parallel_beam (Grob *me, Link_array__Grob_ const &cols, bool *equally_long);
+  static Grob *parallel_beam (Grob *me, vector<Grob*> const &cols, bool *equally_long);
   static void calc_position_and_height (Grob *, Real *, Real *dy);
   static Stencil make_bracket (Grob *me, Axis protusion_axis,
                               Offset dz, Drul_array<Real> height,
index f477beeb3e7e4d6a12bdbb378816099d17e35a51..637c68878b15126f75357f6bc781e11c5132a6b9 100644 (file)
@@ -17,7 +17,7 @@
 class Type_swallow_translator : public Translator
 {
 protected:
-  std::string swallow_string_;
+  string swallow_string_;
   bool try_music (Music *);
 public:
   VIRTUAL_COPY_CONS (Translator);
index bf5793f52dfc49f55981ccbf0f667d6d826b716a..a13ca876e7998431653c8e4f6b16eac62292e8c6 100644 (file)
@@ -28,7 +28,7 @@ LY_DEFINE (ly_input_message, "ly:input-message", 2, 0, 1, (SCM sip, SCM msg, SCM
 
   msg = scm_simple_format (SCM_BOOL_F, msg, rest);
 
-  std::string m = ly_scm2string (msg);
+  string m = ly_scm2string (msg);
   ip->message (m);
 
   return SCM_UNSPECIFIED;
index be2816719434b168dac7559437730e0100e2e37f..e3bc5d275d8f90907351184820cf01091c4cf971 100644 (file)
@@ -26,7 +26,7 @@ SCM mark_smob (SCM)
 static int
 print_smob (SCM s, SCM port, scm_print_state *)
 {
-  std::string str = "#<location " + unsmob_input (s)->location_string () + ">";
+  string str = "#<location " + unsmob_input (s)->location_string () + ">";
   scm_puts (str.c_str (), port);
   return 1;
 }
index ef78037fad33bbd9eb8baac75f37774bc9583f9e..1379f1c7b579ed76f3937f4c84ae891149668882 100644 (file)
@@ -67,7 +67,7 @@ Input::set_location (Input const &i_start, Input const &i_end)
   [file:line:column:][warning:]message
 */
 void
-Input::message (std::string s) const
+Input::message (string s) const
 {
   if (source_file_)
     s = location_string () + ": " + s + "\n"
@@ -76,13 +76,13 @@ Input::message (std::string s) const
 }
 
 void
-Input::warning (std::string s) const
+Input::warning (string s) const
 {
   message (_f ("warning: %s", s));
 }
 
 void
-Input::error (std::string s) const
+Input::error (string s) const
 {
   message (_f ("error: %s", s));
   // UGH, fix naming or usage
@@ -90,12 +90,12 @@ Input::error (std::string s) const
 }
 
 void
-Input::non_fatal_error (std::string s) const
+Input::non_fatal_error (string s) const
 {
   message (_f ("error: %s", s));
 }
 
-std::string
+string
 Input::location_string () const
 {
   if (source_file_)
@@ -103,7 +103,7 @@ Input::location_string () const
   return " (" + _ ("position unknown") + ")";
 }
 
-std::string
+string
 Input::line_number_string () const
 {
   if (source_file_)
@@ -111,7 +111,7 @@ Input::line_number_string () const
   return "?";
 }
 
-std::string
+string
 Input::file_string () const
 {
   if (source_file_)
index d591d105d979d3c20878ee112e88a472bb77233a..5705b46ccf7899ee584032ec77cad99499b244d5 100644 (file)
@@ -92,7 +92,7 @@ Key_signature_interface::print (SCM smob)
   Real inter = Staff_symbol_referencer::staff_space (me) / 2.0;
 
   SCM scm_style = me->get_property ("style");
-  std::string style;
+  string style;
   if (scm_is_symbol (scm_style))
     style = ly_symbol2string (scm_style);
   else
@@ -116,7 +116,7 @@ Key_signature_interface::print (SCM smob)
   for (SCM s = newas; scm_is_pair (s); s = scm_cdr (s))
     {
       int alteration = scm_to_int (scm_cdar (s));
-      std::string font_char
+      string font_char
        = Accidental_interface::get_fontcharname (style, alteration);
       Stencil acc (fm->find_by_name ("accidentals." + font_char));
 
index 33cf854eb4443d44785ba2a90b3230c93d34ead0..4568dd19e482f17c1ac209c120abd0c54d1399b1 100644 (file)
@@ -19,7 +19,7 @@ class Laissez_vibrer_engraver : public Engraver
 
   Music *event_;
   Grob *lv_column_;
-  Link_array__Grob_ lv_ties_;
+  vector<Grob*> lv_ties_;
   
   void stop_translation_timestep (); 
   DECLARE_ACKNOWLEDGER (note_head);
index 3553d35b70fa78c6c1fce6baabdfe6a00d5f459b..7b99d6e3ce09b1950935adadadb83ed1d5636365 100644 (file)
@@ -42,7 +42,7 @@ Laissez_vibrer_tie_column::calc_positioning_done (SCM smob)
   Grob *me = unsmob_grob (smob);
   
   extract_grob_set (me, "ties", lv_ro_ties);
-  Link_array__Grob_ lv_ties (lv_ro_ties);
+  vector<Grob*> lv_ties (lv_ro_ties);
 
   vector_sort (lv_ties, &Laissez_vibrer_tie::compare);
 
index cba93dd6052ba9a400d4e45c50b55abd9133dd53..c7ca185bbfa4ea8de4763339bbaf30c65dab0edb 100644 (file)
@@ -12,7 +12,7 @@
 
 void
 minimise_least_squares (Real *coef, Real *offset,
-                       std::vector<Offset> const &input)
+                       vector<Offset> const &input)
 {
   Real sx = 0.0;
   Real sy = 0.0;
index abd0c101de8293f12f001f706d85ae46eb4f0b52..a31f25e43bc3d1c785092ea045147e541c6bfd0f 100644 (file)
@@ -57,21 +57,21 @@ RH 7 fix (?)
 */
 #define isatty HORRIBLEKLUDGE
 
-void strip_trailing_white (std::string&);
-void strip_leading_white (std::string&);
-std::string lyric_fudge (std::string s);
+void strip_trailing_white (string&);
+void strip_leading_white (string&);
+string lyric_fudge (string s);
 int music_function_type (SCM);
-SCM lookup_markup_command (std::string s);
-bool is_valid_version (std::string s);
+SCM lookup_markup_command (string s);
+bool is_valid_version (string s);
 
 
 #define start_quote()  \
        yy_push_state (quote);\
-       yylval.string = new std::string
+       yylval.string = new string
 
 #define start_lyric_quote()    \
        yy_push_state (lyric_quote);\
-       yylval.string = new std::string
+       yylval.string = new string
 
 #define yylval \
        (*(YYSTYPE*)lexval)
@@ -87,7 +87,7 @@ LYRICS                ({AA}|{TEX})[^0-9 \t\n\f]*
 */
 
 
-SCM scan_fraction (std::string);
+SCM scan_fraction (string);
 SCM (* scm_parse_error_handler) (void *);
 
 
@@ -186,7 +186,7 @@ BOM_UTF8    \357\273\277
        yy_push_state (sourcefilename);
 }
 <version>\"[^"]*\"     { /* got the version number */
-       std::string s (YYText () + 1);
+       string s (YYText () + 1);
        s = s.substr (0, s.rfind ('\"'));
 
        yy_pop_state ();
@@ -198,7 +198,7 @@ BOM_UTF8    \357\273\277
 
 }
 <sourcefilename>\"[^"]*\"     {
-       std::string s (YYText () + 1);
+       string s (YYText () + 1);
        s = s.substr (0, s.rfind ('\"'));
 
        yy_pop_state ();
@@ -250,14 +250,14 @@ BOM_UTF8  \357\273\277
        yy_push_state (incl);
 }
 <incl>\"[^"]*\"   { /* got the include file name */
-       std::string s (YYText ()+1);
+       string s (YYText ()+1);
        s = s.substr (0, s.rfind ('"'));
 
        new_input (s, sources_);
        yy_pop_state ();
 }
 <incl>\\{BLACK}*{WHITE} { /* got the include identifier */
-       std::string s = YYText () + 1;
+       string s = YYText () + 1;
        strip_trailing_white (s);
        if (s.length () && (s[s.length () - 1] == ';'))
          s = s.substr (0, s.length () - 1);
@@ -267,7 +267,7 @@ BOM_UTF8    \357\273\277
                new_input (ly_scm2string (sid), sources_);
                yy_pop_state ();
        } else { 
-           std::string msg (_f ("wrong or undefined identifier: `%s'", s ));
+           string msg (_f ("wrong or undefined identifier: `%s'", s ));
 
            LexerError (msg.c_str ());
            SCM err = scm_current_error_port ();
@@ -349,15 +349,15 @@ BOM_UTF8  \357\273\277
        }
 
        {DIGIT}         {
-               yylval.i = String_convert::dec2int (std::string (YYText ()));
+               yylval.i = String_convert::dec2int (string (YYText ()));
                return DIGIT;
        }
        {UNSIGNED}              {
-               yylval.i = String_convert::dec2int (std::string (YYText ()));
+               yylval.i = String_convert::dec2int (string (YYText ()));
                return UNSIGNED;
        }
        {E_UNSIGNED}    {
-               yylval.i = String_convert::dec2int (std::string (YYText () +1));
+               yylval.i = String_convert::dec2int (string (YYText () +1));
                return E_UNSIGNED;
        }
        \" {
@@ -380,7 +380,7 @@ BOM_UTF8    \357\273\277
                yy_pop_state ();
 
                /* yylval is union. Must remember STRING before setting SCM*/
-               std::string *sp = yylval.string;
+               string *sp = yylval.string;
                yylval.scm = scm_makfrom0str (sp->c_str ());
                delete sp;
                return STRING;
@@ -401,7 +401,7 @@ BOM_UTF8    \357\273\277
                yy_pop_state ();
 
                /* yylval is union. Must remember STRING before setting SCM*/
-               std::string *sp = yylval.string;
+               string *sp = yylval.string;
                yylval.scm = scm_makfrom0str (sp->c_str ());
                delete sp;
                return LYRICS_STRING;
@@ -420,7 +420,7 @@ BOM_UTF8    \357\273\277
                return FRACTION;
        }
        {UNSIGNED}              {
-               yylval.i = String_convert::dec2int (std::string (YYText ()));
+               yylval.i = String_convert::dec2int (string (YYText ()));
                return UNSIGNED;
        }
        {NOTECOMMAND}   {
@@ -428,7 +428,7 @@ BOM_UTF8    \357\273\277
        }
        {LYRICS} {
                /* ugr. This sux. */
-               std::string s (YYText ()); 
+               string s (YYText ()); 
                if (s == "__")
                        return yylval.i = EXTENDER;
                if (s == "--")
@@ -460,7 +460,7 @@ BOM_UTF8    \357\273\277
                return FRACTION;
        }
        {UNSIGNED}              {
-               yylval.i = String_convert::dec2int (std::string (YYText ()));
+               yylval.i = String_convert::dec2int (string (YYText ()));
                return UNSIGNED;
        }
        \" {
@@ -495,7 +495,7 @@ BOM_UTF8    \357\273\277
                return SCORE;
        }
        {MARKUPCOMMAND} {
-               std::string str (YYText () + 1);
+               string str (YYText () + 1);
                SCM s = lookup_markup_command (str);
 
                if (scm_is_pair (s) && scm_is_symbol (scm_cdr (s)) ) {
@@ -531,7 +531,7 @@ BOM_UTF8    \357\273\277
                return YYText ()[0];
        }
        [^#{}"\\ \t\n\r\f]+ {
-               std::string s (YYText ()); 
+               string s (YYText ()); 
 
                char c = s[s.length () - 1];
                /* brace open is for not confusing dumb tools.  */
@@ -587,7 +587,7 @@ BOM_UTF8    \357\273\277
 }
 
 {UNSIGNED}     {
-       yylval.i = String_convert::dec2int (std::string (YYText ()));
+       yylval.i = String_convert::dec2int (string (YYText ()));
        return UNSIGNED;
 }
 
@@ -637,7 +637,7 @@ BOM_UTF8    \357\273\277
 }
 
 <*>.           {
-       std::string msg = _f ("invalid character: `%c'", YYText ()[0]);
+       string msg = _f ("invalid character: `%c'", YYText ()[0]);
        LexerError (msg.c_str ());
        return YYText ()[0];
 }
@@ -699,7 +699,7 @@ Lily_lexer::identifier_type (SCM sid)
 
 
 int
-Lily_lexer::scan_escaped_word (std::string str)
+Lily_lexer::scan_escaped_word (string str)
 {
        // use more SCM for this.
 
@@ -724,7 +724,7 @@ Lily_lexer::scan_escaped_word (std::string str)
                return identifier_type (sid);
        }
 
-       std::string msg (_f ("unknown escaped string: `\\%s'", str));   
+       string msg (_f ("unknown escaped string: `\\%s'", str));        
        LexerError (msg.c_str ());
 
        yylval.scm = scm_makfrom0str (str.c_str ());
@@ -733,7 +733,7 @@ Lily_lexer::scan_escaped_word (std::string str)
 }
 
 int
-Lily_lexer::scan_bare_word (std::string str)
+Lily_lexer::scan_bare_word (string str)
 {
        SCM sym = ly_symbol2scm (str.c_str ());
        if ((YYSTATE == notes) || (YYSTATE == chords)) {
@@ -784,11 +784,11 @@ Lily_lexer::is_figure_state () const
 }
 
 /*
- urg, belong to std::string (_convert)
+ urg, belong to string (_convert)
  and should be generalised 
  */
 void
-strip_leading_white (std::string&s)
+strip_leading_white (string&s)
 {
        ssize i = 0;
        for (;  i < s.length (); i++)
@@ -799,7 +799,7 @@ strip_leading_white (std::string&s)
 }
 
 void
-strip_trailing_white (std::string&s)
+strip_trailing_white (string&s)
 {
        ssize i = s.length ();  
        while (i--) 
@@ -816,7 +816,7 @@ Lilypond_version oldest_version ("2.3.22");
 
 
 bool
-is_valid_version (std::string s)
+is_valid_version (string s)
 {
   Lilypond_version current ( MAJOR_VERSION "." MINOR_VERSION "." PATCH_LEVEL );
   Lilypond_version ver (s);
@@ -833,8 +833,8 @@ is_valid_version (std::string s)
 /*
   substitute _ and \,
 */
-std::string
-lyric_fudge (std::string s)
+string
+lyric_fudge (string s)
 {
   char *chars = string_copy (s);
 
@@ -844,7 +844,7 @@ lyric_fudge (std::string s)
        *p = ' ';
     }
   
-  s = std::string (chars);
+  s = string (chars);
   delete[] chars;
 
   ssize i = 0; 
@@ -861,11 +861,11 @@ lyric_fudge (std::string s)
 Convert "NUM/DEN" into a '(NUM . DEN) cons.
 */
 SCM
-scan_fraction (std::string frac)
+scan_fraction (string frac)
 {
        ssize i = frac.find ('/');
-       std::string left = frac.substr (0, i);
-       std::string right = frac.substr (i + 1, (frac.length () - i + 1));
+       string left = frac.substr (0, i);
+       string right = frac.substr (i + 1, (frac.length () - i + 1));
 
        int n = String_convert::dec2int (left);
        int d = String_convert::dec2int (right);
@@ -873,7 +873,7 @@ scan_fraction (std::string frac)
 }
 
 SCM
-lookup_markup_command (std::string s)
+lookup_markup_command (string s)
 {
        SCM proc = ly_lily_module_constant ("lookup-markup-command");
        return scm_call_1 (proc, scm_makfrom0str (s.c_str ()));
index 3382193a6722063dc8972f2b24410c8f246bf6c2..4e73a7df2fae309bf582dce71a077995925cc3a5 100644 (file)
@@ -22,7 +22,7 @@ class Ligature_bracket_engraver : public Ligature_engraver
 protected:
   virtual Spanner *create_ligature_spanner ();
   virtual void typeset_ligature (Spanner *ligature,
-                                std::vector<Grob_info> primitives);
+                                vector<Grob_info> primitives);
   DECLARE_ACKNOWLEDGER (rest);
   DECLARE_ACKNOWLEDGER (note_column);
 public:
@@ -40,7 +40,7 @@ Ligature_bracket_engraver::create_ligature_spanner ()
 }
 
 void
-Ligature_bracket_engraver::typeset_ligature (Spanner *, std::vector<Grob_info>)
+Ligature_bracket_engraver::typeset_ligature (Spanner *, vector<Grob_info>)
 {
   // no real ligature to typeset; the LigatureBracket just does it
 }
index e120095cb0a7abc29a1897cb33175b46775f0d14..0cb04c2c365a22175145c8846d715e497443a76f 100644 (file)
@@ -27,7 +27,7 @@
  *
  * A concrete ligature engraver must subclass this class and provide
  * functions create_ligature_spanner () and typeset_ligature
- * (Spanner *, std::vector<Grob_info>).  Subclasses of this class basically
+ * (Spanner *, vector<Grob_info>).  Subclasses of this class basically
  * fall into two categories.
  *
  * The first category consists of engravers that engrave ligatures in
index ead2e3a8359a1804bf4f5b2d578e1c0a94307cc0..935846a8eca8bbba0ab5a1a32ae94dcaf4c07416 100644 (file)
@@ -75,7 +75,7 @@ ly_quote_scm (SCM s)
   return scm_list_n (ly_symbol2scm ("quote"), s, SCM_UNDEFINED);
 }
 
-std::string
+string
 ly_symbol2string (SCM s)
 {
   /*
@@ -85,15 +85,15 @@ ly_symbol2string (SCM s)
   return ly_scm2string (str);
 }
 
-std::string
-gulp_file_to_string (std::string fn, bool must_exist, int size)
+string
+gulp_file_to_string (string fn, bool must_exist, int size)
 {
-  std::string s = global_path.find (fn);
+  string s = global_path.find (fn);
   if (s == "")
     {
       if (must_exist)
        {
-         std::string e = _f ("can't find file: `%s'", fn);
+         string e = _f ("can't find file: `%s'", fn);
          e += " ";
          e += _f ("(load path: `%s')", global_path.to_string ());
          error (e);
@@ -107,7 +107,7 @@ gulp_file_to_string (std::string fn, bool must_exist, int size)
 
   int n = size;
   char *str = gulp_file (s, &n);
-  std::string result (str, n);
+  string result (str, n);
   delete[] str;
 
   if (be_verbose_global)
@@ -126,11 +126,11 @@ extern "C" {
   }
 };
 
-std::string
+string
 ly_scm2string (SCM str)
 {
   assert (scm_is_string (str));
-  return std::string (scm_i_string_chars (str),
+  return string (scm_i_string_chars (str),
                     (int) scm_i_string_length (str));
 }
 
@@ -179,12 +179,12 @@ is_number_pair (SCM p)
 }
 
 typedef void (*Void_fptr) ();
-std::vector<Void_fptr> *scm_init_funcs_;
+vector<Void_fptr> *scm_init_funcs_;
 
 void add_scm_init_func (void (*f) ())
 {
   if (!scm_init_funcs_)
-    scm_init_funcs_ = new std::vector<Void_fptr>;
+    scm_init_funcs_ = new vector<Void_fptr>;
 
   scm_init_funcs_->push_back (f);
 }
@@ -356,7 +356,7 @@ ly_assoc_cdr (SCM key, SCM alist)
 }
 
 SCM
-ly_string_array_to_scm (std::vector<std::string> a)
+ly_string_array_to_scm (vector<string> a)
 {
   SCM s = SCM_EOL;
   for (vsize i = a.size (); i ; i--)
@@ -370,7 +370,7 @@ parse_symbol_list (char const *symbols)
 {
   while (isspace (*symbols))
     *symbols++;
-  std::string s = symbols;
+  string s = symbols;
   replace_all (s, '\n', ' ');
   replace_all (s, '\t', ' ');
   return ly_string_array_to_scm (String_convert::split (s, ' '));
@@ -394,10 +394,10 @@ ly_truncate_list (int k, SCM lst)
   return lst;
 }
 
-std::string
+string
 print_scm_val (SCM val)
 {
-  std::string realval = ly_scm2string (ly_write2scm (val));
+  string realval = ly_scm2string (ly_write2scm (val));
   if (realval.length () > 200)
     realval = realval.substr (0, 100)
       + "\n :\n :\n"
@@ -722,8 +722,8 @@ procedure_arity (SCM proc)
   return scm_to_int (fixed);
 }
 
-std::string
-mangle_cxx_identifier (std::string cxx_id)
+string
+mangle_cxx_identifier (string cxx_id)
 {
   if (cxx_id.substr (0, 3) == "ly_")
     cxx_id = cxx_id.replace (0, 3, "ly:");
index c4f2731cac66e0460eada184ecc2158827d8d271..e677b9e5c51bcef8a5763f1aa7139be8cbaa5d90 100644 (file)
@@ -170,7 +170,7 @@ Lily_lexer::set_current_scope ()
 }
 
 int
-Lily_lexer::lookup_keyword (std::string s)
+Lily_lexer::lookup_keyword (string s)
 {
   return keytable_->lookup (s.c_str ());
 }
@@ -189,7 +189,7 @@ Lily_lexer::lookup_identifier_symbol (SCM sym)
 }
 
 SCM
-Lily_lexer::lookup_identifier (std::string name)
+Lily_lexer::lookup_identifier (string name)
 {
   return lookup_identifier_symbol (ly_symbol2scm (name.c_str ()));
 }
@@ -219,7 +219,7 @@ Lily_lexer::set_identifier (SCM name, SCM s)
     {
       if (lookup_keyword (ly_symbol2string (sym)) >= 0)
        {
-         std::string symstr = ly_symbol2string (sym);
+         string symstr = ly_symbol2string (sym);
          warning (_f ("identifier name is a keyword: `%s'", symstr.c_str ()));
        }
 
index 212ca92e682b8e783323f6d820c2a1b972e22ec8..7603487665096a28753677ece6aaf5de9d4a121b 100644 (file)
@@ -39,7 +39,7 @@ LY_DEFINE (ly_parse_file, "ly:parse-file",
   char const *file = scm_i_string_chars (name);
   char const *extensions[] = {"ly", "", 0};
 
-  std::string file_name = global_path.find (file, extensions);
+  string file_name = global_path.find (file, extensions);
 
   /* By default, use base name of input file for output file name,
      write output to cwd; do not use root and directory parts of input
@@ -83,13 +83,13 @@ LY_DEFINE (ly_parse_file, "ly:parse-file",
        out_file_name = File_name (output_name_global);
     }
 
-  std::string init;
+  string init;
   if (!init_name_global.empty ())
     init = init_name_global;
   else
     init = "init.ly";
 
-  std::string out_file = out_file_name.to_string ();
+  string out_file = out_file_name.to_string ();
 
   if (init.length () && global_path.find (init).empty ())
     {
@@ -110,7 +110,7 @@ LY_DEFINE (ly_parse_file, "ly:parse-file",
       Sources sources;
       sources.set_path (&global_path);
 
-      std::string mapped_fn = map_file_name (file_name);
+      string mapped_fn = map_file_name (file_name);
       message (_f ("Processing `%s'", mapped_fn.c_str ()));
       progress_indication ("\n");
 
index 256402a841a7ddadfa2ab66d53bbda267fb98305..65160851e16ee39ceb01f7805f7112fd228676b3 100644 (file)
@@ -82,7 +82,7 @@ Lily_parser::print_smob (SCM s, SCM port, scm_print_state*)
 
 /* Process one .ly file, or book.  */
 void
-Lily_parser::parse_file (std::string init, std::string name, std::string out_name)
+Lily_parser::parse_file (string init, string name, string out_name)
 {
   if (output_backend_global == "tex")
     try_load_text_metrics (out_name);
@@ -102,7 +102,7 @@ Lily_parser::parse_file (std::string init, std::string name, std::string out_nam
   lexer_->new_input (init, sources_);
 
   File_name f (name);
-  std::string s = global_path.find (f.base_ + ".twy");
+  string s = global_path.find (f.base_ + ".twy");
   s = gulp_file_to_string (s, false, -1);
   scm_eval_string (scm_makfrom0str (s.c_str ()));
 
@@ -132,7 +132,7 @@ Lily_parser::parse_file (std::string init, std::string name, std::string out_nam
 }
 
 void
-Lily_parser::parse_string (std::string ly_code)
+Lily_parser::parse_string (string ly_code)
 {
   // TODO: use $parser 
   lexer_->set_identifier (ly_symbol2scm ("parser"),
@@ -165,14 +165,14 @@ Lily_parser::here_str0 () const
 }
 
 void
-Lily_parser::parser_error (std::string s)
+Lily_parser::parser_error (string s)
 {
   lexer_->here_input ().error (_ (s.c_str ()));
   error_level_ = 1;
 }
 
 void
-Lily_parser::parser_error (Input const &i, std::string s)
+Lily_parser::parser_error (Input const &i, string s)
 {
   i.error (s);
   error_level_ = 1;
index 28f2fbaa1ac041cb0b3a80b00667dddf5dbf1919..c15c76e6287845d411fb243e653931308d8df7b1 100644 (file)
 #include "config.hh"
 #include "version.hh"
 
-std::string
+string
 version_string ()
 {
-  std::string str = MAJOR_VERSION "." MINOR_VERSION "." PATCH_LEVEL;
-  std::string mpl ("." MY_PATCH_LEVEL);
+  string str = MAJOR_VERSION "." MINOR_VERSION "." PATCH_LEVEL;
+  string mpl ("." MY_PATCH_LEVEL);
   if (mpl != ".")
     str += mpl;
   return str;
 }
 
-std::string
+string
 gnu_lilypond_string ()
 {
-  std::string str = "GNU LilyPond";
+  string str = "GNU LilyPond";
   return str;
 }
 
-std::string
+string
 gnu_lilypond_version_string ()
 {
-  std::string str = gnu_lilypond_string () + " " + version_string ();
+  string str = gnu_lilypond_string () + " " + version_string ();
   return str;
 }
 
index f43d247a00e4c2d68354568197ca01c1c1ed445d..99b190bcc4801346fe4624f6288b49eb57e3a7fd 100644 (file)
@@ -10,7 +10,7 @@
 
 Lilypond_grob_key::Lilypond_grob_key (Object_key const *context,
                                      Moment start,
-                                     std::string name,
+                                     string name,
                                      int disambiguation_count)
 {
   context_ = context;
@@ -87,8 +87,8 @@ Lilypond_context_key::derived_mark () const
 
 Lilypond_context_key::Lilypond_context_key (Object_key const *parent,
                                            Moment start,
-                                           std::string type,
-                                           std::string id,
+                                           string type,
+                                           string id,
                                            int count)
 {
   disambiguation_count_ = count;
@@ -177,7 +177,7 @@ Lilypond_general_key::derived_mark () const
 }
 
 Lilypond_general_key::Lilypond_general_key (Object_key const *parent,
-                                           std::string name,
+                                           string name,
                                            int count)
 {
   parent_ = parent;
index e12dbcbea865d94aa526fd19e79c70c21f1f22b4..252366251d365ffcf53fffcd8e50bedbfa388a42 100644 (file)
@@ -19,13 +19,13 @@ 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;
+  vector<string> version;
   version = String_convert::split (str, '.');
 
   if (version.size () > 0 && isdigit (version[0][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
index a9ef0fe67a2a28740b80c1a0ba0c84f85ef931ff..6401b3896ae942ced9333c9b101ab43582275ef4 100644 (file)
@@ -18,7 +18,7 @@ Line_interface::make_arrow (Offset begin, Offset end,
                            Real length, Real width)
 {
   Real angle = (end - begin).arg ();
-  std::vector<Offset> points;
+  vector<Offset> points;
 
   points.push_back (Offset (0, 0));
   points.push_back (Offset (-length, width));
index e5fda585958fc02ec82b6b0a08606bb04bc8f259..fb64bc16041861d9afdc3c47123677c57d022279 100644 (file)
@@ -227,7 +227,7 @@ Lookup::round_filled_box (Box b, Real blotdiameter)
  * shrinked polygon). --jr
  */
 Stencil
-Lookup::round_filled_polygon (std::vector<Offset> const &points,
+Lookup::round_filled_polygon (vector<Offset> const &points,
                              Real blotdiameter)
 {
   /* TODO: Maybe print a warning if one of the above limitations
@@ -256,7 +256,7 @@ Lookup::round_filled_polygon (std::vector<Offset> const &points,
     return Line_interface::make_line (blotdiameter, points[0], points[1]);
 
   /* shrink polygon in size by 0.5 * blotdiameter */
-  std::vector<Offset> shrunk_points;
+  vector<Offset> shrunk_points;
   shrunk_points.resize (points.size ());
   bool ccw = 1; // true, if three adjacent points are counterclockwise ordered
   for (vsize i = 0; i < points.size (); i++)
@@ -451,8 +451,8 @@ Stencil
 Lookup::accordion (SCM s, Real staff_space, Font_metric *fm)
 {
   Stencil m;
-  std::string sym = ly_scm2string (scm_car (s));
-  std::string reg = ly_scm2string (scm_car (scm_cdr (s)));
+  string sym = ly_scm2string (scm_car (s));
+  string reg = ly_scm2string (scm_car (scm_cdr (s)));
 
   if (sym == "Discant")
     {
@@ -649,7 +649,7 @@ Stencil
 Lookup::repeat_slash (Real w, Real s, Real t)
 {
 #if 0 /*  TODO */
-  std::vector<Offset> points;
+  vector<Offset> points;
   Real blotdiameter = 0.0;
 
   Offset p1 (0, 0);
index 4048ed2f26dac76a30e1bd243344317ec15a9a04..176c9b7166157228e5eb82571d6685a5236bd671 100644 (file)
@@ -83,7 +83,7 @@ get_voice_to_lyrics (Context *lyrics)
     return c;
 
   SCM voice_name = lyrics->get_property ("associatedVoice");
-  std::string nm = lyrics->id_string ();
+  string nm = lyrics->id_string ();
 
   if (scm_is_string (voice_name))
     nm = ly_scm2string (voice_name);
index 35a17bc3e77c05cf5c00eab9c78e702cdb1764b4..935f06c35eb42e1e9a76a49a1fb715b9c988c291 100644 (file)
@@ -21,7 +21,7 @@ protected:
    void process_music ();
 
 private:
-  Link_array__Music_ events_;
+  vector<Music*> events_;
   Audio_text *audio_;
 };
 
index 71e6eb22c165ae135013c76c774a11e5b29038ed..7e9927e34d2c64ea4c3ee63753f7666b4d47c239 100644 (file)
@@ -49,22 +49,22 @@ using namespace std;
  */
 
 /* Names of header fields to be dumped to a separate file. */
-std::vector<std::string> dump_header_fieldnames_global;
+vector<string> dump_header_fieldnames_global;
 
 /* Name of initialisation file. */
-std::string init_name_global;
+string init_name_global;
 
 /* Selected output backend
    One of (gnome, ps [default], eps, scm, svg, tex, texstr)") */
-std::string output_backend_global = "ps";
+string output_backend_global = "ps";
 /* Output formats to generate.  */
-std::string output_format_global = "";
+string output_format_global = "";
 
 bool is_pango_format_global;
 bool is_TeX_format_global;
 
 /* Current output name. */
-std::string output_name_global;
+string output_name_global;
 
 /* Run in safe mode? */
 bool be_safe_global = false;
@@ -77,8 +77,8 @@ bool be_verbose_global = false;
 
 /* Scheme code to execute before parsing, after .scm init.
    This is where -e arguments are appended to.  */
-std::string init_scheme_code_string;
-std::string init_scheme_variables;
+string init_scheme_code_string;
+string init_scheme_variables;
 
 /* Generate preview of first system.  */
 bool make_preview = false;
@@ -136,10 +136,10 @@ static char const *WARRANTY
 /* Where the init files live.  Typically:
    LILYPOND_DATADIR = /usr/share/lilypond
 */
-std::string prefix_directory;
+string prefix_directory;
 
 /* The jail specification: USER,GROUP,JAIL,DIR. */
-std::string jail_spec;
+string jail_spec;
 
 /*  The option parser */
 static Getopt_long *option_parser = 0;
@@ -276,9 +276,9 @@ warranty ()
 }
 
 static void
-prepend_load_path (std::string dir)
+prepend_load_path (string dir)
 {
-  std::string s = "(set! %load-path (cons \"" + dir + "\" %load-path))";
+  string s = "(set! %load-path (cons \"" + dir + "\" %load-path))";
   scm_c_eval_string (s.c_str ());
 }
 
@@ -300,7 +300,7 @@ do_chroot_jail ()
       USER_NAME, GROUP_NAME, JAIL, DIR, JAIL_MAX
     };
 
-  std::vector<std::string> components = String_convert::split (jail_spec, ',');
+  vector<string> components = String_convert::split (jail_spec, ',');
   if (components.size () != JAIL_MAX)
     {
       error (_f ("expected %d arguments with jail, found: %d", JAIL_MAX,
@@ -451,7 +451,7 @@ setup_localisation ()
      Disable localisation of float values.  This breaks TeX output.  */
   setlocale (LC_NUMERIC, "C");
 
-  std::string localedir = LOCALEDIR;
+  string localedir = LOCALEDIR;
   if (char const *env = getenv ("LILYPOND_LOCALEDIR"))
     localedir = env;
 
@@ -461,7 +461,7 @@ setup_localisation ()
 }
 
 static void
-add_output_format (std::string format)
+add_output_format (string format)
 {
   if (output_format_global != "")
     output_format_global += ",";
@@ -478,27 +478,27 @@ parse_argv (int argc, char **argv)
       switch (opt->shortname_char_)
        {
        case 0:
-         if (std::string (opt->longname_str0_) == "dvi"
-             || std::string (opt->longname_str0_) == "pdf"
-             || std::string (opt->longname_str0_) == "png"
-             || std::string (opt->longname_str0_) == "ps"
-             || std::string (opt->longname_str0_) == "tex")
+         if (string (opt->longname_str0_) == "dvi"
+             || string (opt->longname_str0_) == "pdf"
+             || string (opt->longname_str0_) == "png"
+             || string (opt->longname_str0_) == "ps"
+             || string (opt->longname_str0_) == "tex")
            add_output_format (opt->longname_str0_);
-         else if (std::string (opt->longname_str0_) == "preview")
+         else if (string (opt->longname_str0_) == "preview")
            make_preview = true;
-         else if (std::string (opt->longname_str0_) == "no-pages")
+         else if (string (opt->longname_str0_) == "no-pages")
            make_print = false;
-         else if (std::string (opt->longname_str0_) == "relocate")
+         else if (string (opt->longname_str0_) == "relocate")
            relocate_binary = true;
          break;
 
        case 'd':
          {
-           std::string arg (option_parser->optional_argument_str0_);
+           string arg (option_parser->optional_argument_str0_);
            ssize eq = arg.find ('=');
 
-           std::string key = arg;
-           std::string val = "#t";
+           string key = arg;
+           string val = "#t";
 
            if (eq != NPOS)
              {
@@ -517,7 +517,7 @@ parse_argv (int argc, char **argv)
          break;
        case 'o':
          {
-           std::string s = option_parser->optional_argument_str0_;
+           string s = option_parser->optional_argument_str0_;
            File_name file_name (s);
            output_name_global = file_name.to_string ();
          }
index 053c7c34ccdeef44e2dd385a38a739112034949c..d0544ab2d21e6a4d90a7af969c21df463306e9b4 100644 (file)
@@ -31,7 +31,7 @@ Melody_spanner::calc_neutral_stem_direction (SCM smob)
   
   extract_grob_set (me, "stems", stems);
 
-  std::vector<Direction> dirs;
+  vector<Direction> dirs;
   for (vsize i = 0; i < stems.size (); i++)
     dirs.push_back (to_dir (stems[i]->get_property ("default-direction")));
 
index f6fafa12278b2ab38fc5d74d280ecd0b500ec6bd..5adc44122c27406832319d8d226d9f055da5a666 100644 (file)
@@ -46,15 +46,15 @@ class Mensural_ligature_engraver : public Coherent_ligature_engraver
 
 protected:
   virtual Spanner *create_ligature_spanner ();
-  virtual void build_ligature (Spanner *ligature, std::vector<Grob_info> primitives);
+  virtual void build_ligature (Spanner *ligature, vector<Grob_info> primitives);
 
 public:
   TRANSLATOR_DECLARATIONS (Mensural_ligature_engraver);
 
 private:
-  void transform_heads (std::vector<Grob_info> primitives);
-  void propagate_properties (Spanner *ligature, std::vector<Grob_info> primitives);
-  void fold_up_primitives (std::vector<Grob_info> primitives);
+  void transform_heads (vector<Grob_info> primitives);
+  void propagate_properties (Spanner *ligature, vector<Grob_info> primitives);
+  void fold_up_primitives (vector<Grob_info> primitives);
 };
 
 Mensural_ligature_engraver::Mensural_ligature_engraver ()
@@ -70,7 +70,7 @@ Mensural_ligature_engraver::create_ligature_spanner ()
 }
 
 void
-Mensural_ligature_engraver::transform_heads (std::vector<Grob_info> primitives)
+Mensural_ligature_engraver::transform_heads (vector<Grob_info> primitives)
 {
   if (primitives.size () < 2)
     {
@@ -296,7 +296,7 @@ Mensural_ligature_engraver::transform_heads (std::vector<Grob_info> primitives)
  */
 void
 Mensural_ligature_engraver::propagate_properties (Spanner *ligature,
-                                                 std::vector<Grob_info> primitives)
+                                                 vector<Grob_info> primitives)
 {
   Real thickness
     = robust_scm2double (ligature->get_property ("thickness"), 1.4);
@@ -352,7 +352,7 @@ Mensural_ligature_engraver::propagate_properties (Spanner *ligature,
 }
 
 void
-Mensural_ligature_engraver::fold_up_primitives (std::vector<Grob_info> primitives)
+Mensural_ligature_engraver::fold_up_primitives (vector<Grob_info> primitives)
 {
   Item *first = 0;
   Real distance = 0;
@@ -375,7 +375,7 @@ Mensural_ligature_engraver::fold_up_primitives (std::vector<Grob_info> primitive
 
 void
 Mensural_ligature_engraver::build_ligature (Spanner *ligature,
-                                           std::vector<Grob_info> primitives)
+                                           vector<Grob_info> primitives)
 {
   transform_heads (primitives);
   propagate_properties (ligature, primitives);
index 23ab0b614f333a07f6f8cc47a38826547409b358..46906cd7e99590d8949f54ef702e050df786be25 100644 (file)
@@ -52,25 +52,25 @@ Midi_item::get_midi (Audio_item *a)
 }
 
 void
-Midi_chunk::set (std::string header_string, std::string data_string, std::string footer_string)
+Midi_chunk::set (string header_string, string data_string, string footer_string)
 {
   data_string_ = data_string;
   footer_string_ = footer_string;
   header_string_ = header_string;
 }
 
-std::string
+string
 Midi_chunk::data_string () const
 {
   return data_string_;
 }
 
-std::string
+string
 Midi_chunk::to_string () const
 {
-  std::string str = header_string_;
-  std::string dat = data_string ();
-  std::string length_string = String_convert::int2hex (dat.length ()
+  string str = header_string_;
+  string dat = data_string ();
+  string length_string = String_convert::int2hex (dat.length ()
                                                  + footer_string_.length (), 8, '0');
   length_string = String_convert::hex2bin (length_string);
 
@@ -86,10 +86,10 @@ Midi_duration::Midi_duration (Real seconds_f)
   seconds_ = seconds_f;
 }
 
-std::string
+string
 Midi_duration::to_string () const
 {
-  return std::string ("<duration: ") + std::to_string (seconds_) + ">";
+  return string ("<duration: ") + ::to_string (seconds_) + ">";
 }
 
 Midi_event::Midi_event (Moment delta_mom, Midi_item *midi)
@@ -101,30 +101,30 @@ Midi_event::Midi_event (Moment delta_mom, Midi_item *midi)
 /*
   ugh. midi output badly broken since grace note hackage.
 */
-std::string
+string
 Midi_event::to_string () const
 {
   Rational rat_dt = (delta_mom_.main_part_ * Rational (384)
                     + delta_mom_.grace_part_ * Rational (100)) * Rational (4);
   int delta_i = rat_dt.to_int ();
 
-  std::string delta_string = Midi_item::i2varint_string (delta_i);
-  std::string midi_string = midi_->to_string ();
+  string delta_string = Midi_item::i2varint_string (delta_i);
+  string midi_string = midi_->to_string ();
   assert (midi_string.length ());
   return delta_string + midi_string;
 }
 
 Midi_header::Midi_header (int format_i, int tracks_i, int clocks_per_4_i)
 {
-  std::string str;
+  string str;
 
-  std::string format_string = String_convert::int2hex (format_i, 4, '0');
+  string format_string = String_convert::int2hex (format_i, 4, '0');
   str += String_convert::hex2bin (format_string);
 
-  std::string tracks_string = String_convert::int2hex (tracks_i, 4, '0');
+  string tracks_string = String_convert::int2hex (tracks_i, 4, '0');
   str += String_convert::hex2bin (tracks_string);
 
-  std::string tempo_string = String_convert::int2hex (clocks_per_4_i, 4, '0');
+  string tempo_string = String_convert::int2hex (clocks_per_4_i, 4, '0');
   str += String_convert::hex2bin (tempo_string);
 
   set ("MThd", str, "");
@@ -136,7 +136,7 @@ Midi_instrument::Midi_instrument (Audio_instrument *a)
   audio_->str_ = String_convert::to_lower (audio_->str_);
 }
 
-std::string
+string
 Midi_instrument::to_string () const
 {
   Byte program_byte = 0;
@@ -153,8 +153,8 @@ Midi_instrument::to_string () const
   else
     warning (_f ("no such MIDI instrument: `%s'", audio_->str_.c_str ()));
 
-  std::string str = std::to_string ((char) (0xc0 + channel_)); //YIKES! FIXME : Should be track. -rz
-  str += std::to_string ((char)program_byte);
+  string str = ::to_string ((char) (0xc0 + channel_)); //YIKES! FIXME : Should be track. -rz
+  str += ::to_string ((char)program_byte);
   return str;
 }
 
@@ -167,7 +167,7 @@ Midi_item::~Midi_item ()
 {
 }
 
-std::string
+string
 Midi_item::i2varint_string (int i)
 {
   int buffer_i = i & 0x7f;
@@ -178,10 +178,10 @@ Midi_item::i2varint_string (int i)
       buffer_i += (i & 0x7f);
     }
 
-  std::string str;
+  string str;
   while (1)
     {
-      str += std::to_string ((char)buffer_i);
+      str += ::to_string ((char)buffer_i);
       if (buffer_i & 0x80)
        buffer_i >>= 8;
       else
@@ -195,10 +195,10 @@ Midi_key::Midi_key (Audio_key *a)
   audio_ = a;
 }
 
-std::string
+string
 Midi_key::to_string () const
 {
-  std::string str = "ff5902";
+  string str = "ff5902";
   str += String_convert::int2hex (audio_->accidentals_, 2, '0');
   if (audio_->major_)
     str += String_convert::int2hex (0, 2, '0');
@@ -213,7 +213,7 @@ Midi_time_signature::Midi_time_signature (Audio_time_signature *a)
   clocks_per_1_ = 18;
 }
 
-std::string
+string
 Midi_time_signature::to_string () const
 {
   int num = abs (audio_->beats_);
@@ -227,7 +227,7 @@ Midi_time_signature::to_string () const
 
 
   
-  std::string str = "ff5804";
+  string str = "ff5804";
   str += String_convert::int2hex (num, 2, '0');
   str += String_convert::int2hex (intlog2 (den), 2, '0');
   str += String_convert::int2hex (clocks_per_1_, 2, '0');
@@ -269,11 +269,11 @@ Midi_note::get_pitch () const
   return p;
 }
 
-std::string
+string
 Midi_note::to_string () const
 {
   Byte status_byte = (char) (0x90 + channel_);
-  std::string str = "";
+  string str = "";
   int finetune;
 
   // print warning if fine tuning was needed, HJJ
@@ -287,15 +287,15 @@ Midi_note::to_string () const
       // The pitch wheel range (of 4 semitones) is multiplied by the cents.
       finetune += (PITCH_WHEEL_RANGE *get_fine_tuning ()) / (4 * 100);
 
-      str += std::to_string ((char) (0xE0 + channel_));
-      str += std::to_string ((char) (finetune & 0x7F));
-      str += std::to_string ((char) (finetune >> 7));
-      str += std::to_string ((char) (0x00));
+      str += ::to_string ((char) (0xE0 + channel_));
+      str += ::to_string ((char) (finetune & 0x7F));
+      str += ::to_string ((char) (finetune >> 7));
+      str += ::to_string ((char) (0x00));
     }
 
-  str += std::to_string ((char)status_byte);
-  str += std::to_string ((char) (get_pitch () + c0_pitch_i_));
-  str += std::to_string ((char)dynamic_byte_);
+  str += ::to_string ((char)status_byte);
+  str += ::to_string ((char) (get_pitch () + c0_pitch_i_));
+  str += ::to_string ((char)dynamic_byte_);
 
   return str;
 }
@@ -313,22 +313,22 @@ Midi_note_off::Midi_note_off (Midi_note *n)
   aftertouch_byte_ = 64;
 }
 
-std::string
+string
 Midi_note_off::to_string () const
 {
   Byte status_byte = (char) (0x80 + channel_);
 
-  std::string str = std::to_string ((char)status_byte);
-  str += std::to_string ((char) (get_pitch () + Midi_note::c0_pitch_i_));
-  str += std::to_string ((char)aftertouch_byte_);
+  string str = ::to_string ((char)status_byte);
+  str += ::to_string ((char) (get_pitch () + Midi_note::c0_pitch_i_));
+  str += ::to_string ((char)aftertouch_byte_);
 
   if (get_fine_tuning () != 0)
     {
       // Move pitch wheel back to the central position.
-      str += std::to_string ((char) 0x00);
-      str += std::to_string ((char) (0xE0 + channel_));
-      str += std::to_string ((char) (PITCH_WHEEL_CENTER &0x7F));
-      str += std::to_string ((char) (PITCH_WHEEL_CENTER >> 7));
+      str += ::to_string ((char) 0x00);
+      str += ::to_string ((char) (0xE0 + channel_));
+      str += ::to_string ((char) (PITCH_WHEEL_CENTER &0x7F));
+      str += ::to_string ((char) (PITCH_WHEEL_CENTER >> 7));
     }
 
   return str;
@@ -339,11 +339,11 @@ Midi_dynamic::Midi_dynamic (Audio_dynamic *a)
   audio_ = a;
 }
 
-std::string
+string
 Midi_dynamic::to_string () const
 {
   Byte status_byte = (char) (0xB0 + channel_);
-  std::string str = std::to_string ((char)status_byte);
+  string str = ::to_string ((char)status_byte);
 
   /*
     Main volume controller (per channel):
@@ -358,8 +358,8 @@ Midi_dynamic::to_string () const
   if (volume > full_scale)
     volume = (int)full_scale;
 
-  str += std::to_string ((char)0x07);
-  str += std::to_string ((char)volume);
+  str += ::to_string ((char)0x07);
+  str += ::to_string ((char)volume);
   return str;
 }
 
@@ -368,21 +368,21 @@ Midi_piano_pedal::Midi_piano_pedal (Audio_piano_pedal *a)
   audio_ = a;
 }
 
-std::string
+string
 Midi_piano_pedal::to_string () const
 {
   Byte status_byte = (char) (0xB0 + channel_);
-  std::string str = std::to_string ((char)status_byte);
+  string str = ::to_string ((char)status_byte);
 
   if (audio_->type_string_ == "Sostenuto")
-    str += std::to_string ((char)0x42);
+    str += ::to_string ((char)0x42);
   else if (audio_->type_string_ == "Sustain")
-    str += std::to_string ((char)0x40);
+    str += ::to_string ((char)0x40);
   else if (audio_->type_string_ == "UnaCorda")
-    str += std::to_string ((char)0x43);
+    str += ::to_string ((char)0x43);
 
   int pedal = ((1 - audio_->dir_) / 2) * 0x7f;
-  str += std::to_string ((char)pedal);
+  str += ::to_string ((char)pedal);
   return str;
 }
 
@@ -391,11 +391,11 @@ Midi_tempo::Midi_tempo (Audio_tempo *a)
   audio_ = a;
 }
 
-std::string
+string
 Midi_tempo::to_string () const
 {
   int useconds_per_4_i = 60 * (int)1e6 / audio_->per_minute_4_;
-  std::string str = "ff5103";
+  string str = "ff5103";
   str += String_convert::int2hex (useconds_per_4_i, 6, '0');
   return String_convert::hex2bin (str);
 }
@@ -405,10 +405,10 @@ Midi_text::Midi_text (Audio_text *a)
   audio_ = a;
 }
 
-std::string
+string
 Midi_text::to_string () const
 {
-  std::string str = "ff" + String_convert::int2hex (audio_->type_, 2, '0');
+  string str = "ff" + String_convert::int2hex (audio_->type_, 2, '0');
   str = String_convert::hex2bin (str);
   str += i2varint_string (audio_->text_string_.length ());
   str += audio_->text_string_;
@@ -444,12 +444,12 @@ Midi_track::Midi_track ()
     //                           "00" "ff59" "02" "ff" "00"
     ;
 
-  std::string data_string;
+  string data_string;
   // only for format 0 (currently using format 1)?
   data_string += String_convert::hex2bin (data_str0);
 
   char const *footer_str0 = "00" "ff2f" "00";
-  std::string footer_string = String_convert::hex2bin (footer_str0);
+  string footer_string = String_convert::hex2bin (footer_str0);
 
   set ("MTrk", data_string, footer_string);
 }
@@ -463,10 +463,10 @@ Midi_track::add (Moment delta_time_mom, Midi_item *midi)
   event_p_list_.append (new Killing_cons<Midi_event> (e, 0));
 }
 
-std::string
+string
 Midi_track::data_string () const
 {
-  std::string str = Midi_chunk::data_string ();
+  string str = Midi_chunk::data_string ();
   if (do_midi_debugging_global)
     str += "\n";
   for (Cons<Midi_event> *i = event_p_list_.head_; i; i = i->next_)
index b03d63b7214731e27aac12040b7e0c146b9b2e7a..d5b62fee5978490d7a34f37ff6e29e6e57844d91 100644 (file)
@@ -20,7 +20,7 @@ using namespace std;
 #include "string-convert.hh"
 #include "warn.hh"
 
-Midi_stream::Midi_stream (std::string file_name)
+Midi_stream::Midi_stream (string file_name)
 {
   file_name_string_ = file_name;
   out_file_ = fopen (file_name.c_str (), "wb");
@@ -34,7 +34,7 @@ Midi_stream::~Midi_stream ()
 }
 
 Midi_stream &
-Midi_stream::operator << (std::string str)
+Midi_stream::operator << (string str)
 {
   size_t sz = sizeof (Byte);
   size_t n = str.length ();
@@ -49,7 +49,7 @@ Midi_stream::operator << (std::string str)
 Midi_stream &
 Midi_stream::operator << (Midi_item const &midi_c_r)
 {
-  std::string str = midi_c_r.to_string ();
+  string str = midi_c_r.to_string ();
 
   // ugh, should have separate debugging output with Midi*::print routines
   if (do_midi_debugging_global)
index 9eef5ecf3a43d11efbef58dcea06dcc749433665..f8eda18b87d8ad895e6d7a27e8da3fa188da880a 100644 (file)
@@ -35,10 +35,10 @@ log_2 (double x)
   return log (x) / log (2.0);
 }
 
-std::vector<std::string>
-split_string (std::string s, char c)
+vector<string>
+split_string (string s, char c)
 {
-  std::vector<std::string> rv;
+  vector<string> rv;
   while (s.length ())
     {
       ssize i = s.find (c);
index 6d50d06d51031b3549bb8fe722af25c060e9649e..8e215863a6109a600344a11ae9c181491b2f5a39 100644 (file)
@@ -66,7 +66,7 @@ Modified_font_metric::count () const
 }
 
 Offset
-Modified_font_metric::attachment_point (std::string s) const
+Modified_font_metric::attachment_point (string s) const
 {
   Offset o = orig_->attachment_point (s);
   return o * magnification_;
@@ -80,7 +80,7 @@ Modified_font_metric::get_indexed_wxwy (vsize k) const
 }
 
 vsize
-Modified_font_metric::name_to_index (std::string s) const
+Modified_font_metric::name_to_index (string s) const
 {
   return orig_->name_to_index (s);
 }
@@ -104,7 +104,7 @@ Modified_font_metric::derived_mark () const
 
 /* TODO: put this klutchness behind ly:option switch.  */
 Box
-Modified_font_metric::tex_kludge (std::string text) const
+Modified_font_metric::tex_kludge (string text) const
 {
   Interval ydims;
   Real w = 0;
@@ -159,7 +159,7 @@ Modified_font_metric::tex_kludge (std::string text) const
 }
 
 Stencil
-Modified_font_metric::text_stencil (std::string text) const
+Modified_font_metric::text_stencil (string text) const
 {
   Box b;
   if (Pango_font *pf = dynamic_cast<Pango_font *> (orig_))
@@ -177,7 +177,7 @@ Modified_font_metric::text_stencil (std::string text) const
 }
 
 Box
-Modified_font_metric::text_dimension (std::string text) const
+Modified_font_metric::text_dimension (string text) const
 {
   SCM stext = scm_makfrom0str (text.c_str ());
   Box b = lookup_tex_text_dimension (orig_, stext);
@@ -223,7 +223,7 @@ Modified_font_metric::sub_fonts () const
   return orig_->sub_fonts ();
 }
 
-std::string
+string
 Modified_font_metric::font_name () const
 {
   return original_font ()->font_name ();
index 1bab8f8fc57c25a197122cf9976865e702933379..1f32fb80eb76aa859fb6e4c140b4a38db77c52dd 100644 (file)
@@ -49,7 +49,7 @@ Moment::print_smob (SCM s, SCM port, scm_print_state *)
   Moment *r = (Moment *) SCM_CELL_WORD_1 (s);
 
   scm_puts ("#<Mom ", port);
-  std::string str = r->to_string ();
+  string str = r->to_string ();
   scm_puts ((char *)str.c_str (), port);
   scm_puts (">", port);
 
@@ -153,10 +153,10 @@ Moment::set_infinite (int k)
   main_part_.set_infinite (k);
 }
 
-std::string
+string
 Moment::to_string () const
 {
-  std::string s = main_part_.to_string ();
+  string s = main_part_.to_string ();
   if (grace_part_)
     s += "G" + grace_part_.to_string ();
   return s;
index 574ace67cb944a5264f2f6aa3d77168cde8e47ca..3c7eed7524500cdbf455151667b93c1db892aa6e 100644 (file)
@@ -29,7 +29,7 @@ protected:
 
 private:
   Music *rest_ev_;
-  Link_array__Music_ text_events_;
+  vector<Music*> text_events_;
   int start_measure_;
   Rational last_main_moment_;
   Moment stop_moment_;
@@ -39,8 +39,8 @@ private:
   Spanner *last_rest_;
   Spanner *mmrest_;
 
-  Link_array__Spanner_ numbers_;
-  Link_array__Spanner_ last_numbers_;
+  vector<Spanner*> numbers_;
+  vector<Spanner*> last_numbers_;
 };
 
 Multi_measure_rest_engraver::Multi_measure_rest_engraver ()
index 984edc9c0f3099c5bcc6505ac3894931613cd2d6..8f0f7813d9d96b82333f773de3cc82da7cbe67b8 100644 (file)
@@ -35,7 +35,7 @@ LY_DEFINE (ly_make_music_function, "ly:make-music-function", 2, 0, 0,
 {
   extern SCM ly_music_p_proc;
   
-  std::string str = "";
+  string str = "";
   for (SCM s = signature; scm_is_pair (s); s = scm_cdr (s))
     {
       if (str != "")
index 496e19f93d89e103b15b89a2197a7f0af16ed20e..cb2a1bd20274288ae4386b3bfa03f5564e4671f2 100644 (file)
@@ -43,11 +43,11 @@ struct Finger_tuple
 
 class New_fingering_engraver : public Engraver
 {
-  std::vector<Finger_tuple> fingerings_;
-  std::vector<Finger_tuple> articulations_;
-  std::vector<Finger_tuple> string_numbers_;
+  vector<Finger_tuple> fingerings_;
+  vector<Finger_tuple> articulations_;
+  vector<Finger_tuple> string_numbers_;
 
-  Link_array__Grob_ heads_;
+  vector<Grob*> heads_;
   Grob *stem_;
 
 public:
@@ -59,7 +59,7 @@ protected:
   void add_fingering (Grob *, Music *, Music *);
   void add_script (Grob *, Music *, Music *);
   void add_string (Grob *, Music *, Music *);
-  void position_scripts (SCM orientations, std::vector<Finger_tuple> *);
+  void position_scripts (SCM orientations, vector<Finger_tuple> *);
 };
 
 void
@@ -187,7 +187,7 @@ New_fingering_engraver::add_string (Grob *head,
 
 void
 New_fingering_engraver::position_scripts (SCM orientations,
-                                         std::vector<Finger_tuple> *scripts)
+                                         vector<Finger_tuple> *scripts)
 {
   for (vsize i = 0; i < scripts->size (); i++)
     if (stem_ && to_boolean (scripts->at (i).script_->get_property ("add-stem-support")))
@@ -209,7 +209,7 @@ New_fingering_engraver::position_scripts (SCM orientations,
     for (vsize j = heads_.size (); j--;)
       Side_position_interface::add_support ((*scripts)[i].script_, heads_[j]);
 
-  std::vector<Finger_tuple> up, down, horiz;
+  vector<Finger_tuple> up, down, horiz;
   for (vsize i = scripts->size (); i--;)
     {
       SCM d = (*scripts)[i].finger_event_->get_property ("direction");
@@ -282,7 +282,7 @@ New_fingering_engraver::position_scripts (SCM orientations,
   int finger_prio = 200;
 
   Direction d = DOWN;
-  Drul_array< std::vector<Finger_tuple> > vertical (down, up);
+  Drul_array< vector<Finger_tuple> > vertical (down, up);
   do
     {
       for (vsize i = 0; i < vertical[d].size (); i++)
index 0adccba96d02931199c89651ce746cc68e0b99d6..6e75f43d514f493106ade8e3713f69d153d15e67 100644 (file)
@@ -183,7 +183,7 @@ Lyric_combine_music_iterator::find_voice ()
       while (t && t->get_parent_context ())
        t = t->get_parent_context ();
 
-      std::string name = ly_scm2string (voice_name);
+      string name = ly_scm2string (voice_name);
       Context *voice = find_context_below (t, ly_symbol2scm ("Voice"), name);
 
       if (voice)
@@ -237,7 +237,7 @@ Lyric_combine_music_iterator::do_quit ()
     {
       SCM voice_name = get_music ()->get_property ("associated-context");
 
-      std::string name;
+      string name;
       if (scm_is_string (voice_name))
        name = ly_scm2string (voice_name);
 
index db794d5092b9e73d79fcf16730daaa130ff0739d..a3f18ab0026be756ee22c60280ea201afd0bd428 100644 (file)
@@ -23,9 +23,9 @@
 
 void
 check_meshing_chords (Grob *me,
-                     Drul_array<std::vector<Real> > *offsets,
-                     Drul_array<std::vector<Slice> > const &extents,
-                     Drul_array<Link_array__Grob_ > const &clash_groups)
+                     Drul_array<vector<Real> > *offsets,
+                     Drul_array<vector<Slice> > const &extents,
+                     Drul_array<vector<Grob*> > const &clash_groups)
 
 {
   if (!extents[UP].size () || ! extents[DOWN].size ())
@@ -41,8 +41,8 @@ check_meshing_chords (Grob *me,
   Grob *nu = Note_column::first_head (cu);
   Grob *nd = Note_column::first_head (cd);
 
-  std::vector<int> ups = Stem::note_head_positions (Note_column::get_stem (cu));
-  std::vector<int> dps = Stem::note_head_positions (Note_column::get_stem (cd));
+  vector<int> ups = Stem::note_head_positions (Note_column::get_stem (cu));
+  vector<int> dps = Stem::note_head_positions (Note_column::get_stem (cd));
 
   /* Too far apart to collide.  */
   if (ups[0] > dps.back () + 1)
@@ -280,7 +280,7 @@ SCM
 Note_collision_interface::calc_positioning_done (SCM smob)
 {
   Grob *me = unsmob_grob (smob);  
-  Drul_array<Link_array__Grob_ > cg = get_clash_groups (me);
+  Drul_array<vector<Grob*> > cg = get_clash_groups (me);
 
   Direction d = UP;
   do
@@ -309,10 +309,10 @@ Note_collision_interface::calc_positioning_done (SCM smob)
     }
   while (flip (&d) != UP);
 
-  Link_array__Grob_ done;
+  vector<Grob*> done;
   Real left_most = 1e6;
 
-  std::vector<Real> amounts;
+  vector<Real> amounts;
   for (; scm_is_pair (hand); hand = scm_cdr (hand))
     {
       Grob *s = unsmob_grob (scm_caar (hand));
@@ -344,10 +344,10 @@ Note_collision_interface::calc_positioning_done (SCM smob)
   return SCM_BOOL_T;
 }
 
-Drul_array < Link_array__Grob_ >
+Drul_array < vector<Grob*> >
 Note_collision_interface::get_clash_groups (Grob *me)
 {
-  Drul_array<Link_array__Grob_ > clash_groups;
+  Drul_array<vector<Grob*> > clash_groups;
 
   extract_grob_set (me, "elements", elements);
   for (vsize i = 0; i < elements.size (); i++)
@@ -360,7 +360,7 @@ Note_collision_interface::get_clash_groups (Grob *me)
   Direction d = UP;
   do
     {
-      Link_array__Grob_ &clashes (clash_groups[d]);
+      vector<Grob*> &clashes (clash_groups[d]);
       vector_sort (clashes, Note_column::shift_compare);
     }
   while ((flip (&d)) != UP);
@@ -375,17 +375,17 @@ Note_collision_interface::get_clash_groups (Grob *me)
 */
 SCM
 Note_collision_interface::automatic_shift (Grob *me,
-                                          Drul_array < Link_array__Grob_
+                                          Drul_array < vector<Grob*>
                                           > clash_groups)
 {
-  Drul_array < std::vector<int> > shifts;
+  Drul_array < vector<int> > shifts;
   SCM tups = SCM_EOL;
 
   Direction d = UP;
   do
     {
-      std::vector<int> &shift (shifts[d]);
-      Link_array__Grob_ &clashes (clash_groups[d]);
+      vector<int> &shift (shifts[d]);
+      vector<Grob*> &clashes (clash_groups[d]);
 
       for (vsize i = 0; i < clashes.size (); i++)
        {
@@ -409,8 +409,8 @@ Note_collision_interface::automatic_shift (Grob *me,
     }
   while ((flip (&d)) != UP);
 
-  Drul_array<std::vector<Slice> > extents;
-  Drul_array<std::vector<Real> > offsets;
+  Drul_array<vector<Slice> > extents;
+  Drul_array<vector<Real> > offsets;
   d = UP;
   do
     {
index 5a0c9abf8465c5ee4c106b5f5f0fcb3484d9b668..b84e74690dd71a847f22aeaad9d20a3ad42fd047 100644 (file)
@@ -30,13 +30,13 @@ using namespace std;
   clean up the mess left by ledger line handling.
 */
 static Stencil
-internal_print (Grob *me, std::string *font_char)
+internal_print (Grob *me, string *font_char)
 {
   SCM style = me->get_property ("style");
   if (!scm_is_symbol (style))
     style = ly_symbol2scm ("default");
 
-  std::string suffix = to_string (min (robust_scm2int (me->get_property ("duration-log"), 2), 2));
+  string suffix = to_string (min (robust_scm2int (me->get_property ("duration-log"), 2), 2));
   if (style != ly_symbol2scm ("default"))
     {
       SCM gn = me->get_property ("glyph-name");
@@ -46,12 +46,12 @@ internal_print (Grob *me, std::string *font_char)
 
   Font_metric *fm = Font_interface::get_default_font (me);
 
-  std::string idx = "noteheads.s" + suffix;
+  string idx = "noteheads.s" + suffix;
 
   Stencil out = fm->find_by_name (idx);
   if (out.is_empty ())
     {
-      std::string prefix = "noteheads.";
+      string prefix = "noteheads.";
       Grob *stem = unsmob_grob (me->get_object ("stem"));
       Direction stem_dir = stem ? get_grob_direction (stem) : CENTER;
 
@@ -94,7 +94,7 @@ Note_head::print (SCM smob)
 {
   Grob *me = unsmob_grob (smob);
 
-  std::string idx;
+  string idx;
   return internal_print (me, &idx).smobbed_copy ();
 }
 
@@ -113,7 +113,7 @@ Note_head::calc_stem_attachment (SCM smob)
 {
   Grob *me  = unsmob_grob (smob);
   Font_metric *fm = Font_interface::get_default_font (me);
-  std::string key;
+  string key;
   internal_print (me, &key);
 
   Offset att;
index 109e4905c7b6b0f1d3ea228bfbc0ae6de2815b4d..038a9d4a6911e8cf5b94ef231a5ccf3a410127fe 100644 (file)
@@ -20,9 +20,9 @@ using namespace std;
 
 class Note_heads_engraver : public Engraver
 {
-  Link_array__Item_ notes_;
-  Link_array__Item_ dots_;
-  Link_array__Music_ note_evs_;
+  vector<Item*> notes_;
+  vector<Item*> dots_;
+  vector<Music*> note_evs_;
 
 public:
   TRANSLATOR_DECLARATIONS (Note_heads_engraver);
index c0ee4986f6651741a0a059e79b55be09f8b28cb4..585eb1fae208abd700f643aeda59ad6125d929a2 100644 (file)
@@ -14,8 +14,8 @@ class Note_name_engraver : public Engraver
 public:
   TRANSLATOR_DECLARATIONS (Note_name_engraver);
 
-  Link_array__Music_ events_;
-  Link_array__Item_ texts_;
+  vector<Music*> events_;
+  vector<Item*> texts_;
   virtual bool try_music (Music *m);
   void process_music ();
   void stop_translation_timestep ();
@@ -35,7 +35,7 @@ Note_name_engraver::try_music (Music *m)
 void
 Note_name_engraver::process_music ()
 {
-  std::string s;
+  string s;
   for (vsize i = 0; i < events_.size (); i++)
     {
       if (i)
index cfb8edaf5105c69da1a0947b08cc3f5939695019..331e7cc60ff7ed4b9bfe710a23dbadfcf63b41d4 100644 (file)
@@ -28,8 +28,8 @@ protected:
   void process_music ();
 
 private:
-  Link_array__Music_ note_evs_;
-  Link_array__Audio_note_ notes_;
+  vector<Music*> note_evs_;
+  vector<Audio_note*> notes_;
 };
 
 void
index 0ddf4bc5403ebce0b3989fe3ddad2982ce98768d..fe56b32b459363667b3d82016224874beb341c51 100644 (file)
@@ -39,7 +39,7 @@ Note_spacing::get_spacing (Grob *me, Item *right_col,
   Interval left_head_wid;
   do
     {
-      Link_array__Grob_ const &items (ly_scm2link_array (props [d]));
+      vector<Grob*> const &items (ly_scm2link_array (props [d]));
       for (vsize i = items.size (); i--;)
        {
          Item *it = dynamic_cast<Item *> (items[i]);
@@ -223,7 +223,7 @@ Note_spacing::right_column (Grob *me)
 
   if (prune && a)
     {
-      Link_array__Grob_ &right = a->array_reference ();
+      vector<Grob*> &right = a->array_reference ();
       for (vsize i = right.size (); i--;)
        {
          if (dynamic_cast<Item *> (right[i])->get_column () != mincol)
@@ -269,7 +269,7 @@ Note_spacing::stem_dir_correction (Grob *me, Item *rcolumn,
 
   do
     {
-      Link_array__Grob_ const &items (ly_scm2link_array (props [d]));
+      vector<Grob*> const &items (ly_scm2link_array (props [d]));
       for (vsize i = 0; i < items.size (); i++)
        {
          Item *it = dynamic_cast<Item *> (items[i]);
index b2692d994b6d4c5de60845b713c3a02acb66e918..db4c89c177d705a7b1e77a00a6eb2f105774c6d8 100644 (file)
@@ -51,10 +51,10 @@ LY_DEFINE (ly_otf_font_table_data, "ly:otf-font-table-data", 2, 0, 0,
 
   char ctag [5] = "    ";
 
-  std::string tag_string = ly_scm2string (tag);
+  string tag_string = ly_scm2string (tag);
   strncpy (ctag, tag_string.c_str (), tag_string.length ());
 
-  std::string tab = otf->get_otf_table (std::string (ctag));
+  string tab = otf->get_otf_table (string (ctag));
 
   return scm_from_locale_stringn ((char const *) tab.data (), tab.length ());
 }
index 6ad743b0a3378e60691dcfb8cce90aa4467e4936..32bd597df273883916b4becbaa52cc887dec3a84 100644 (file)
@@ -44,8 +44,8 @@ load_table (char const *tag_str, FT_Face face, FT_ULong *length)
   return 0;
 }
 
-std::string
-Open_type_font::get_otf_table (std::string tag) const
+string
+Open_type_font::get_otf_table (string tag) const
 {
   return ::get_otf_table (face_, tag);
 }
@@ -59,7 +59,7 @@ load_scheme_table (char const *tag_str, FT_Face face)
   SCM tab = SCM_EOL;
   if (buffer)
     {
-      std::string contents ((char const*)buffer, length);
+      string contents ((char const*)buffer, length);
       contents = "(quote (" + contents + "))";
 
       tab = scm_c_eval_string (contents.c_str ());
@@ -89,17 +89,17 @@ Open_type_font::~Open_type_font ()
 /*
   UGH fix naming
 */
-std::string
-get_otf_table (FT_Face face, std::string tag)
+string
+get_otf_table (FT_Face face, string tag)
 {
   FT_ULong len;
   FT_Byte *tab = load_table (tag.c_str (), face, &len);
 
-  return std::string ((char const*) tab, len);
+  return string ((char const*) tab, len);
 }
 
 FT_Face
-open_ft_face (std::string str)
+open_ft_face (string str)
 {
   FT_Face face;
   int error_code = FT_New_Face (freetype2_library, str.c_str (), 0, &face);
@@ -113,7 +113,7 @@ open_ft_face (std::string str)
 }
 
 SCM
-Open_type_font::make_otf (std::string str)
+Open_type_font::make_otf (string str)
 {
   FT_Face face = open_ft_face (str);
   Open_type_font *otf = new Open_type_font (face);
@@ -147,7 +147,7 @@ Open_type_font::derived_mark () const
 }
 
 Offset
-Open_type_font::attachment_point (std::string glyph_name) const
+Open_type_font::attachment_point (string glyph_name) const
 {
   SCM sym = ly_symbol2scm (glyph_name.c_str ());
   SCM entry = scm_hashq_ref (lily_character_table_, sym, SCM_BOOL_F);
@@ -224,7 +224,7 @@ Open_type_font::get_indexed_char (vsize signed_idx) const
 }
 
 vsize
-Open_type_font::name_to_index (std::string nm) const
+Open_type_font::name_to_index (string nm) const
 {
   char *nm_str = (char *) nm.c_str ();
   if (vsize idx = FT_Get_Name_Index (face_, nm_str))
@@ -284,7 +284,7 @@ Open_type_font::get_global_table () const
   return lily_global_table_;
 }
 
-std::string
+string
 Open_type_font::font_name () const
 {
   return FT_Get_Postscript_Name (face_);
index d93ee5db315fbe1d8d7662735e6b351cbe3af76b..739b4b9e7be729adeec2efea548258dbaf201f94 100644 (file)
@@ -127,7 +127,7 @@ Output_def::lookup_variable (SCM sym) const
 }
 
 SCM
-Output_def::c_variable (std::string s) const
+Output_def::c_variable (string s) const
 {
   return lookup_variable (ly_symbol2scm (s.c_str ()));
 }
index c0750c06c858fb20507e010f03d11256f3cadedf..74ee4494117904040680d2d5ee65100e247dcead 100644 (file)
@@ -18,7 +18,7 @@ class Output_property_engraver : public Engraver
 {
   TRANSLATOR_DECLARATIONS (Output_property_engraver);
 protected:
-  Link_array__Music_ props_;
+  vector<Music*> props_;
   DECLARE_ACKNOWLEDGER (grob)
 
   void stop_translation_timestep ();
index 674ed68724555ff4acebeee9d5cf07ede5239231..86c4bf61f5ef6e244bea8bde81b32a31c9f15ac5 100644 (file)
@@ -62,7 +62,7 @@ Pango_font::~Pango_font ()
 }
 
 void
-Pango_font::register_font_file (std::string filename, std::string ps_name)
+Pango_font::register_font_file (string filename, string ps_name)
 {
   scm_hash_set_x (physical_font_tab_,
                  scm_makfrom0str (ps_name.c_str ()),
@@ -76,7 +76,7 @@ Pango_font::derived_mark () const
 }
 
 Stencil
-Pango_font::pango_item_string_stencil (PangoItem const *item, std::string str) const
+Pango_font::pango_item_string_stencil (PangoItem const *item, string str) const
 {
   const int GLYPH_NAME_LEN = 256;
   char glyph_name[GLYPH_NAME_LEN];
@@ -144,7 +144,7 @@ Pango_font::pango_item_string_stencil (PangoItem const *item, std::string str) c
   char *file_name_as_ptr = 0;
   FcPatternGetString (fcpat, FC_FILE, 0, (FcChar8 **) & file_name_as_ptr);
 
-  std::string file_name;
+  string file_name;
   if (file_name_as_ptr)
     {
       /* Normalize file name.  */
@@ -156,7 +156,7 @@ Pango_font::pango_item_string_stencil (PangoItem const *item, std::string str) c
   if (!ps_name_str0)
     warning (_f ("no PostScript font name for font `%s'", file_name));
 
-  std::string ps_name;
+  string ps_name;
   if (!ps_name_str0
       && file_name != ""
       && (file_name.find (".otf") != NPOS
@@ -164,7 +164,7 @@ Pango_font::pango_item_string_stencil (PangoItem const *item, std::string str) c
     {
 
       /* UGH: kludge a PS name for OTF/CFF fonts.  */
-      std::string name = file_name;
+      string name = file_name;
       ssize idx = file_name.find (".otf");
       if (idx == NPOS)
        idx = file_name.find (".cff");
@@ -179,7 +179,7 @@ Pango_font::pango_item_string_stencil (PangoItem const *item, std::string str) c
                              name.length () - slash_idx);
        }
       
-      std::string initial = name.substr (0, 1);
+      string initial = name.substr (0, 1);
       initial = String_convert::to_upper (initial);
       name = name.substr (1, name.length () - 1);
       name = String_convert::to_lower (name);
@@ -213,7 +213,7 @@ Pango_font::physical_font_tab () const
 }
 
 Stencil
-Pango_font::text_stencil (std::string str) const
+Pango_font::text_stencil (string str) const
 {
   GList *items
     = pango_itemize (context_,
index 5c93c1386cbf7642d7837486654f2f7e4096438d..bd684b92f857344bb7f91ff02d41b3940da660a8 100644 (file)
@@ -19,7 +19,7 @@ properties_to_pango_description (SCM chain, Real text_size)
   PangoFontDescription *description = 0;
   if (scm_is_string (name))
     {
-      std::string name_str = ly_scm2string (name);
+      string name_str = ly_scm2string (name);
       description = pango_font_description_from_string (name_str.c_str ());
     }
   else
@@ -132,7 +132,7 @@ symbols_to_pango_font_description (SCM family,
 {
   PangoFontDescription *description = pango_font_description_new ();
 
-  std::string family_str = "roman";
+  string family_str = "roman";
   if (scm_is_symbol (family))
     family_str = ly_symbol2string (family);
   else if (scm_is_string (family))
index 0677be700c55eaf4fa2bd886856cd7f42ddb472d..a431fc464882dc1f435e48eb6d1b3a6b2c3f14ad 100644 (file)
@@ -104,7 +104,7 @@ Paper_book::output (SCM output_channel)
   if (ly_is_module (header_))
     scopes = scm_cons (header_, scopes);
 
-  std::string mod_nm = "scm framework-" + output_backend_global;
+  string mod_nm = "scm framework-" + output_backend_global;
 
   SCM mod = scm_c_resolve_module (mod_nm.c_str ());
   if (make_print)
@@ -144,8 +144,8 @@ Paper_book::classic_output (SCM output)
   if (ly_is_module (header_0_))
     scopes = scm_cons (header_0_, scopes);
 
-  std::string format = output_backend_global;
-  std::string mod_nm = "scm framework-" + format;
+  string format = output_backend_global;
+  string mod_nm = "scm framework-" + format;
 
   SCM mod = scm_c_resolve_module (mod_nm.c_str ());
   SCM func = scm_c_module_lookup (mod, "output-classic-framework");
index f7a1ae5e8b9108d54a2de1397b10138192bd692e..6fa9ee6ab7152d90474c6facb4ed75e2e1fadb96 100644 (file)
@@ -113,10 +113,10 @@ Paper_column::print (SCM p)
 {
   Grob *me = unsmob_grob (p);
 
-  std::string r = to_string (Paper_column::get_rank (me));
+  string r = to_string (Paper_column::get_rank (me));
 
   Moment *mom = unsmob_moment (me->get_property ("when"));
-  std::string when = mom ? mom->to_string () : "?/?";
+  string when = mom ? mom->to_string () : "?/?";
 
   SCM properties = Font_interface::text_font_alist_chain (me);
 
@@ -157,7 +157,7 @@ Paper_column::before_line_breaking (SCM grob)
   if (!ga)
     return SCM_UNSPECIFIED;
 
-  Link_array__Grob_ &array (ga->array_reference ());
+  vector<Grob*> &array (ga->array_reference ());
 
   for (vsize i = array.size (); i--;)
     {
index e05f6cc8acbb342fbb9ad38a7f9ec7b633a7d087..d7fe624952264fafe49a307fe802632875946631 100644 (file)
@@ -22,9 +22,9 @@ LY_DEFINE (ly_make_paper_outputter, "ly:make-paper-outputter",
   SCM_ASSERT_TYPE (scm_is_string (format), format, SCM_ARG2, __FUNCTION__,
                   "String");
 
-  std::string f = ly_scm2string (format);
+  string f = ly_scm2string (format);
 
-  std::string output_name = "<unknown>";
+  string output_name = "<unknown>";
 
   SCM port_name = scm_port_filename (port);
   if (scm_is_string (port_name))
index aff76981f7c42b41ceb29b696ba9ad3651a0e5b8..c321c6f8df4e4d7701d925bc5ad5284706b20242 100644 (file)
@@ -29,13 +29,13 @@ using namespace std;
 
 #include "ly-smobs.icc"
 
-Paper_outputter::Paper_outputter (SCM port, std::string format)
+Paper_outputter::Paper_outputter (SCM port, string format)
 {
   file_ = port;
   output_module_ = SCM_EOL;
   smobify_self ();
 
-  std::string module_name = "scm output-" + format;
+  string module_name = "scm output-" + format;
   output_module_ = scm_c_resolve_module (module_name.c_str ());
 }
 
index c983fe02892157aff73b20a11e01a7737bf5afa2..a2af964b4b2d23b0416e7890b8f215f9ddaf8b3d 100644 (file)
@@ -58,11 +58,11 @@ Paper_score::typeset_system (System *system)
   system->unprotect ();
 }
 
-std::vector<Column_x_positions>
+vector<Column_x_positions>
 Paper_score::calc_breaking ()
 {
   Break_algorithm *algorithm = 0;
-  std::vector<Column_x_positions> sol;
+  vector<Column_x_positions> sol;
 
   algorithm = new Gourlay_breaking;
   algorithm->set_pscore (this);
@@ -86,13 +86,13 @@ Paper_score::process ()
      down the road.
 
      doubly, also done in Score_engraver */
-  Link_array__Grob_ pc (system_->columns ());
+  vector<Grob*> pc (system_->columns ());
   pc[0]->set_property ("breakable", SCM_BOOL_T);
   pc.back ()->set_property ("breakable", SCM_BOOL_T);
 
   system_->pre_processing ();
 
-  std::vector<Column_x_positions> breaking = calc_breaking ();
+  vector<Column_x_positions> breaking = calc_breaking ();
   system_->break_into_pieces (breaking);
 
   paper_systems_ = system_->get_paper_systems ();
index 651ef44a5266808cb24f6c4e1c5775181b1a984f..a85870f17963e6d23c0882264176d2ef01a8f975 100644 (file)
@@ -2732,7 +2732,7 @@ run_music_function (Lily_parser *parser, SCM expr)
 bool
 is_regular_identifier (SCM id)
 {
-  std::string str = ly_scm2string (id);
+  string str = ly_scm2string (id);
   char const *s = str.c_str ();
 
   bool v = true;
index c2625f28c1cf43d3ff1972d8a7583d1a46aefb4f..caa6c73aa89c8e0d28abeb55dbdbcb140d41acae 100644 (file)
@@ -410,8 +410,8 @@ Part_combine_iterator::process (Moment m)
        solo2 ();
       else if (scm_is_symbol (tag))
        {
-         std::string s = "Unknown split directive: "
-           + (scm_is_symbol (tag) ? ly_symbol2string (tag) : std::string ("not a symbol"));
+         string s = "Unknown split directive: "
+           + (scm_is_symbol (tag) ? ly_symbol2string (tag) : string ("not a symbol"));
          programming_error (s);
        }
     }
index 93899350e0ca8d8bc76e009e3a05eb07acf13a06..2430df6670959ef910c9a4ed64415aec400cf185 100644 (file)
@@ -89,8 +89,8 @@ Performance::output_header_track (Midi_stream &midi_stream)
   midi_track.channel_ = 9;
 
   // perhaps multiple text events?
-  std::string id_string;
-  std::string str = std::string (_ ("Creator: "));
+  string id_string;
+  string str = string (_ ("Creator: "));
   id_string = String_convert::pad_to (gnu_lilypond_version_string (), 30);
   str += id_string;
 
@@ -150,7 +150,7 @@ Performance::add_element (Audio_element *p)
 }
 
 void
-Performance::write_output (std::string out)
+Performance::write_output (string out)
 {
   if (out == "-")
     out = "lelie.midi";
index b27fe906c55727ca62b5714dc5baff8df4436b33..678e480b90f6a693e318bcdb3bf1d76ffd948e00 100644 (file)
@@ -77,7 +77,7 @@ LY_DEFINE (ly_pfb_to_pfa, "ly:pfb->pfa",
   SCM_ASSERT_TYPE (scm_is_string (pfb_file_name), pfb_file_name,
                   SCM_ARG1, __FUNCTION__, "string");
 
-  std::string file_name = ly_scm2string (pfb_file_name);
+  string file_name = ly_scm2string (pfb_file_name);
   int len = -1;
 
   if (be_verbose_global)
@@ -103,12 +103,12 @@ LY_DEFINE (ly_otf_to_cff, "ly:otf->cff",
   SCM_ASSERT_TYPE (scm_is_string (otf_file_name), otf_file_name,
                   SCM_ARG1, __FUNCTION__, "string");
 
-  std::string file_name = ly_scm2string (otf_file_name);
+  string file_name = ly_scm2string (otf_file_name);
   if (be_verbose_global)
     progress_indication ("[" + file_name);
 
   FT_Face face = open_ft_face (file_name);
-  std::string table = get_otf_table (face, "CFF ");
+  string table = get_otf_table (face, "CFF ");
 
   SCM asscm = scm_from_locale_stringn ((char *) table.data (),
                                       table.length ());
index 64f76ae3a01317b8d93cfca7cb7a20a3e2927069..c7571f118cacc109b02a1a12f27c455c5c2caaaf 100644 (file)
@@ -27,8 +27,8 @@ class Phrasing_slur_engraver : public Engraver
 {
   Drul_array<Music *> events_;
   Music *running_slur_start_;
-  Link_array__Grob_ slurs_;
-  Link_array__Grob_ end_slurs_;
+  vector<Grob*> slurs_;
+  vector<Grob*> end_slurs_;
 
 protected:
   virtual bool try_music (Music *);
index e15f8deb3d6ab665aedc4667b81afb1bb1d9bf08..86e0e032e92144d6c83bb92d73591917f17ddfc3 100644 (file)
@@ -79,7 +79,7 @@ private:
     occurs simultaneously then extra space can be added between them.
   */
 
-  Link_array__Spanner_ previous_;
+  vector<Spanner*> previous_;
   void del_linespanner (Spanner *);
 
   void create_text_grobs (Pedal_info *p, bool);
@@ -152,7 +152,7 @@ Piano_pedal_engraver::try_music (Music *m)
     {
       for (Pedal_info *p = info_list_; p->name_; p++)
        {
-         std::string nm = p->name_ + std::string ("Event");
+         string nm = p->name_ + string ("Event");
          if (ly_is_equal (m->get_property ("name"),
                           scm_str2symbol (nm.c_str ())))
            {
@@ -174,7 +174,7 @@ Piano_pedal_engraver::process_music ()
        {
          if (!p->line_spanner_)
            {
-             std::string name = std::string (p->name_) + "PedalLineSpanner";
+             string name = string (p->name_) + "PedalLineSpanner";
              Music *rq = (p->event_drul_[START] ? p->event_drul_[START] : p->event_drul_[STOP]);
              p->line_spanner_ = make_spanner (name.c_str (), rq->self_scm ());
            }
@@ -192,7 +192,7 @@ Piano_pedal_engraver::process_music ()
            mixed:   Ped. _____/\____|
          */
 
-         std::string prop = std::string ("pedal") + p->name_ + "Style";
+         string prop = string ("pedal") + p->name_ + "Style";
          SCM style = get_property (prop.c_str ());
 
          bool mixed = style == ly_symbol2scm ("mixed");
@@ -213,14 +213,14 @@ void
 Piano_pedal_engraver::create_text_grobs (Pedal_info *p, bool mixed)
 {
   SCM s = SCM_EOL;
-  SCM strings = get_property (("pedal" + std::string (p->name_) + "Strings").c_str ());
+  SCM strings = get_property (("pedal" + string (p->name_) + "Strings").c_str ());
 
   if (scm_ilength (strings) < 3)
     {
       Music *m = p->event_drul_[START];
       if (!m) m = p->event_drul_ [STOP];
 
-      std::string msg = _f ("expect 3 strings for piano pedals, found: %d",
+      string msg = _f ("expect 3 strings for piano pedals, found: %d",
                       scm_ilength (strings));
       if (m)
        m->origin ()->warning (msg);
@@ -271,7 +271,7 @@ Piano_pedal_engraver::create_text_grobs (Pedal_info *p, bool mixed)
 
   if (scm_is_string (s))
     {
-      std::string propname = std::string (p->name_) + "Pedal";
+      string propname = string (p->name_) + "Pedal";
 
       p->item_ = make_item (propname.c_str (), (p->event_drul_[START]
                                                  ? p->event_drul_[START]
@@ -293,7 +293,7 @@ Piano_pedal_engraver::create_bracket_grobs (Pedal_info *p, bool mixed)
 {
   if (!p->bracket_ && p->event_drul_[STOP])
     {
-      std::string msg = _f ("can't find start of piano pedal bracket: `%s'", p->name_);
+      string msg = _f ("can't find start of piano pedal bracket: `%s'", p->name_);
       p->event_drul_[STOP]->origin ()->warning (msg);
       p->event_drul_[STOP] = 0;
     }
index 4cf4415f0300fcf1be4fe3401a4e9e246d73c973..4083c468f915279fbb19ea5f2d0da57264f6f13d 100644 (file)
@@ -36,7 +36,7 @@ protected:
   void start_translation_timestep ();
 
 private:
-  Link_array__Audio_piano_pedal_ audios_;
+  vector<Audio_piano_pedal*> audios_;
   Pedal_info *info_alist_;
 };
 
@@ -79,11 +79,11 @@ Piano_pedal_performer::process_music ()
       if (p->event_drul_[STOP])
        {
          if (!p->start_event_)
-           p->event_drul_[STOP]->origin ()->warning (_f ("can't find start of piano pedal: `%s'", std::string (p->name_)));
+           p->event_drul_[STOP]->origin ()->warning (_f ("can't find start of piano pedal: `%s'", string (p->name_)));
          else
            {
              Audio_piano_pedal *a = new Audio_piano_pedal;
-             a->type_string_ = std::string (p->name_);
+             a->type_string_ = string (p->name_);
              a->dir_ = STOP;
              audios_.push_back (a);
               Audio_element_info info(a, p->event_drul_[STOP]);
@@ -96,7 +96,7 @@ Piano_pedal_performer::process_music ()
        {
          p->start_event_ = p->event_drul_[START];
          Audio_piano_pedal *a = new Audio_piano_pedal;
-         a->type_string_ = std::string (p->name_);
+         a->type_string_ = string (p->name_);
          a->dir_ = START;
          audios_.push_back (a);
           Audio_element_info info(a, p->event_drul_[START]);
@@ -132,7 +132,7 @@ Piano_pedal_performer::try_music (Music *r)
     {
       for (Pedal_info *p = info_alist_; p->name_; p++)
        {
-         std::string nm = p->name_ + std::string ("Event");
+         string nm = p->name_ + string ("Event");
          if (ly_is_equal (r->get_property ("name"),
                           scm_str2symbol (nm.c_str ())))
            {
index 076615391ce708a61f41a9f3eba0727d7dd77e6d..80b32e3c69ee97d3fd3e72f484d202dda13dd687 100644 (file)
@@ -166,13 +166,13 @@ pitch_interval (Pitch const &from, Pitch const &to)
 char const *accname[] = {"eses", "eseh", "es", "eh", "",
                         "ih", "is", "isih", "isis"};
 
-std::string
+string
 Pitch::to_string () const
 {
   int n = (notename_ + 2) % 7;
-  std::string s = std::to_string (char (n + 'a'));
+  string s = ::to_string (char (n + 'a'));
   if (alteration_)
-    s += std::string (accname[alteration_ - DOUBLE_FLAT]);
+    s += string (accname[alteration_ - DOUBLE_FLAT]);
 
   if (octave_ >= 0)
     {
@@ -184,7 +184,7 @@ Pitch::to_string () const
     {
       int o = (-octave_) - 1;
       while (o--)
-       s += std::to_string (',');
+       s += ::to_string (',');
     }
 
   return s;
index 0cc9155e059c4764f58106bdeada9f6ae407c593..84e391e231b301647120a5a9da73d00ef34d46d7 100644 (file)
@@ -35,7 +35,7 @@ private:
   Item *trill_group_;
   Item *trill_accidental_;
 
-  Link_array__Grob_ heads_;
+  vector<Grob*> heads_;
 
   void make_trill (Music *);
 };
index 51354ffb50cb95eea40e1fa4c093e8247800cf61..6366fb1fa12caa323f6770f3db87d15e96de019a 100644 (file)
@@ -40,26 +40,26 @@ Pointer_group_interface::add_grob (Grob *me, SCM sym, Grob *p)
   arr->add (p);
 }
 
-static Link_array__Grob_ empty_array;
+static vector<Grob*> empty_array;
 
-Link_array__Grob_ const &
+vector<Grob*> const &
 ly_scm2link_array (SCM x)
 {
   Grob_array *arr = unsmob_grob_array (x);
   return arr ? arr->array () : empty_array;
 }
 
-Link_array__Grob_ const &
+vector<Grob*> const &
 internal_extract_grob_array (Grob const *elt, SCM symbol)
 {
   return ly_scm2link_array (elt->internal_get_object (symbol));
 }
 
-Link_array__Item_
+vector<Item*>
 internal_extract_item_array (Grob const *elt, SCM symbol)
 {
   Grob_array *arr = unsmob_grob_array (elt->internal_get_object (symbol));
-  Link_array__Item_ items;
+  vector<Item*> items;
   for (vsize i = 0; arr && i < arr->size (); i++)
     items.push_back (arr->item (i));
 
index 6e6f9b98fc49de59fb365c0b8a69430fb670b18f..5a1caca15508fe0e6cc0a5ce7ed86da6eba782f3 100644 (file)
@@ -119,7 +119,7 @@ Prob::get_property_alist (bool m) const
   return (m) ? mutable_property_alist_ : immutable_property_alist_;
 }
 
-std::string
+string
 Prob::name () const
 {
   SCM nm = get_property ("name");
index 7174b82cb9344bd4451ccc9cca274d5c0afa194d..4ec7b2d3e411179a008124d848285c992d7d20a1 100644 (file)
@@ -87,19 +87,19 @@ ssize const SEPARATION = 5;
 /*
   Hmmm. should do in SCM / C++  ?
 */
-static std::string
+static string
 get_help_string ()
 {
   SCM alist = ly_hash2alist (option_hash);
   SCM convertor = ly_lily_module_constant ("scm->string");
 
-  std::vector<std::string> opts;
+  vector<string> opts;
 
   for (SCM s = alist; scm_is_pair (s); s = scm_cdr (s))
     {
       SCM sym = scm_caar (s);
       SCM val = scm_cdar (s);
-      std::string opt_spec
+      string opt_spec
        = String_convert::char_string (' ', INDENT)
        + ly_symbol2string (sym)
        + " ("
@@ -116,28 +116,28 @@ get_help_string ()
 
       SCM opt_help_scm
        = scm_object_property (sym, ly_symbol2scm ("program-option-documentation"));
-      std::string opt_help = ly_scm2string (opt_help_scm);
+      string opt_help = ly_scm2string (opt_help_scm);
       replace_all (opt_help,
-                  std::string ("\n"),
-                  std::string ("\n")
+                  string ("\n"),
+                  string ("\n")
                   + String_convert::char_string (' ', HELP_INDENT));
 
       opts.push_back (opt_spec + opt_help + "\n");
     }
 
-  std::string help ("Options supported by ly:set-option\n\n");
+  string help ("Options supported by ly:set-option\n\n");
   vector_sort (opts, string_compare);
   for (vsize i = 0; i < opts.size (); i++)
     help += opts[i];
 
-  help += std::string ("\n");
+  help += string ("\n");
   return help;
 }
 
 LY_DEFINE (ly_option_usage, "ly:option-usage", 0, 0, 0, (),
           "Print ly:set-option usage")
 {
-  std::string help = get_help_string ();
+  string help = get_help_string ();
   fputs (help.c_str (), stdout);
 
   exit (0);
@@ -176,8 +176,8 @@ LY_DEFINE (ly_set_option, "ly:set-option", 1, 1, 0, (SCM var, SCM val),
   if (val == SCM_UNDEFINED)
     val = SCM_BOOL_T;
 
-  std::string varstr = ly_scm2string (scm_symbol_to_string (var));
-  if (varstr.substr (0, 3) == std::string ("no-"))
+  string varstr = ly_scm2string (scm_symbol_to_string (var));
+  if (varstr.substr (0, 3) == string ("no-"))
     {
       var = ly_symbol2scm (varstr.substr (3, varstr.length () -3).c_str ());
       val = scm_from_bool (!to_boolean (val));
index 07d70acc45c82d003046dc18694d27c0d9c1d679..651702ce995df26143a19b054b0d8ac4b934151d 100644 (file)
@@ -36,7 +36,7 @@ Relative_octave_check::relative_callback (SCM music, SCM last_pitch)
 
       if (result != *check_p)
        {
-         std::string s = _ ("Failed octave check, got: ");
+         string s = _ ("Failed octave check, got: ");
          s += result.to_string ();
 
          m->origin ()->warning (s);
index 9972db3fb984353ef4865044543d02e102bf3b1d..ffb32d54153edafa42b69ece4c3708e92b0ecafc 100644 (file)
 
 
 int
-sane_putenv (char const *key, std::string value, bool overwrite)
+sane_putenv (char const *key, string value, bool overwrite)
 {
   if (overwrite || !getenv (key))
     {
-      std::string combine = std::string (key) + "=" + value;
+      string combine = string (key) + "=" + value;
       char *s = strdup (combine.c_str ());
       return putenv (s);
     }
@@ -42,7 +42,7 @@ sane_putenv (char const *key, std::string value, bool overwrite)
 }
 
 static int
-set_env_file (char const *key, std::string value, bool overwrite = false)
+set_env_file (char const *key, string value, bool overwrite = false)
 {
   if (is_file (value))
     return sane_putenv (key, value, overwrite);
@@ -52,7 +52,7 @@ set_env_file (char const *key, std::string value, bool overwrite = false)
 }
 
 static int
-set_env_dir (char const *key, std::string value)
+set_env_dir (char const *key, string value)
 {
   if (is_dir (value))
     return sane_putenv (key, value, false);
@@ -62,7 +62,7 @@ set_env_dir (char const *key, std::string value)
 }
 
 static int
-prepend_env_path (char const *key, std::string value)
+prepend_env_path (char const *key, string value)
 {
   if (is_dir (value))
     {
@@ -79,10 +79,10 @@ prepend_env_path (char const *key, std::string value)
   return -1;
 }
 
-std::string
-dir_name (std::string const file_name)
+string
+dir_name (string const file_name)
 {
-  std::string s = file_name;
+  string s = file_name;
   replace_all (s, '\\', '/');
   ssize n = s.length ();
   if (n && s[n - 1] == '/')
@@ -96,17 +96,17 @@ dir_name (std::string const file_name)
 #endif
 
 void
-prefix_relocation (std::string prefix)
+prefix_relocation (string prefix)
 {
   if (be_verbose_global)
     warning (_f ("Relocation: compile prefix=%s, new prefix=%s",
                 prefix_directory,
                 prefix.c_str ()));
   
-  std::string bindir = prefix + "/bin";
-  std::string datadir = prefix + "/share";
-  std::string localedir = datadir + "/locale";
-  std::string lilypond_datadir = datadir + "/lilypond/";
+  string bindir = prefix + "/bin";
+  string datadir = prefix + "/share";
+  string localedir = datadir + "/locale";
+  string lilypond_datadir = datadir + "/lilypond/";
 
   if (is_dir (lilypond_datadir + "/" + TOPLEVEL_VERSION))
     prefix_directory = lilypond_datadir + "/" + TOPLEVEL_VERSION;
@@ -122,15 +122,15 @@ prefix_relocation (std::string prefix)
 }
 
 void
-framework_relocation (std::string prefix)
+framework_relocation (string prefix)
 {
   if (be_verbose_global)
     warning (_f ("Relocation: framework_prefix=%s", prefix));
 
-  std::string bindir = prefix + "/bin";
-  std::string datadir = prefix + "/share";
-  std::string libdir = prefix + "/lib";
-  std::string sysconfdir = prefix + "/etc";
+  string bindir = prefix + "/bin";
+  string datadir = prefix + "/share";
+  string libdir = prefix + "/lib";
+  string sysconfdir = prefix + "/etc";
 
   /* need otherwise dynamic .so's aren't found.   */
   prepend_env_path ("DYLD_LIBRARY_PATH", libdir);
@@ -163,13 +163,13 @@ framework_relocation (std::string prefix)
   prepend_env_path ("PATH", bindir);
 }
 
-std::string
+string
 get_working_directory ()
 {
   char cwd[PATH_MAX];
   getcwd (cwd, PATH_MAX);
 
-  return std::string (cwd);
+  return string (cwd);
 }
 
 void
@@ -181,18 +181,18 @@ setup_paths (char const *argv0_ptr)
   if (relocate_binary
       && getenv ("LILYPOND_RELOCATE_PREFIX"))
     {
-      std::string prefix = getenv ("LILYPOND_RELOCATE_PREFIX");
+      string prefix = getenv ("LILYPOND_RELOCATE_PREFIX");
 #ifdef __MINGW32__
       /* Normalize file name.  */
       prefix = File_name (prefix).to_string ();
 #endif /* __MINGW32__ */
       prefix_relocation (prefix);
-      std::string bindir = prefix + "/bin";
+      string bindir = prefix + "/bin";
       framework_relocation (bindir + "/" FRAMEWORKDIR);
     }
   else if (relocate_binary)
     {
-      std::string argv0_abs;
+      string argv0_abs;
       if (argv0_filename.is_absolute ())
        {
          argv0_abs = argv0_filename.to_string ();
@@ -202,7 +202,7 @@ setup_paths (char const *argv0_ptr)
       else if (argv0_filename.dir_.length ())
        {
          argv0_abs = get_working_directory ()
-           + "/" + std::string (argv0_filename.to_string ());
+           + "/" + string (argv0_filename.to_string ());
          if (be_verbose_global)
            warning (_f ("Relocation: from cwd: argv0=%s", argv0_ptr));
        }
@@ -227,12 +227,12 @@ setup_paths (char const *argv0_ptr)
            programming_error ("can't find absolute argv0.");
        }
 
-      std::string bindir = dir_name (argv0_abs);
-      std::string argv0_prefix = dir_name (bindir);
-      std::string compile_prefix = dir_name (dir_name (dir_name (prefix_directory)));
+      string bindir = dir_name (argv0_abs);
+      string argv0_prefix = dir_name (bindir);
+      string compile_prefix = dir_name (dir_name (dir_name (prefix_directory)));
       if (argv0_prefix != compile_prefix)
        prefix_relocation (argv0_prefix);
-      if (argv0_prefix != compile_prefix || std::string (FRAMEWORKDIR) != "..")
+      if (argv0_prefix != compile_prefix || string (FRAMEWORKDIR) != "..")
        framework_relocation (bindir + "/" FRAMEWORKDIR);
     }
 
@@ -263,8 +263,8 @@ setup_paths (char const *argv0_ptr)
   */
   
   struct stat statbuf;
-  std::string build_prefix_current = prefix_directory + "/share/lilypond/" "current";
-  std::string build_prefix_version = prefix_directory + "/share/lilypond/" TOPLEVEL_VERSION;
+  string build_prefix_current = prefix_directory + "/share/lilypond/" "current";
+  string build_prefix_version = prefix_directory + "/share/lilypond/" TOPLEVEL_VERSION;
   if (stat (build_prefix_version.c_str (), &statbuf) == 0)
     prefix_directory = build_prefix_version;
   else if (stat (build_prefix_current.c_str (), &statbuf) == 0)
@@ -276,10 +276,10 @@ setup_paths (char const *argv0_ptr)
   char *suffixes[] = {"ly", "ps", "scm", 0 };
 
   
-  std::vector<std::string> dirs;
+  vector<string> dirs;
   for (char **s = suffixes; *s; s++)
     {
-      std::string path = prefix_directory + to_string ('/') + std::string (*s);
+      string path = prefix_directory + to_string ('/') + string (*s);
       dirs.push_back (path);
     }
 
index f752d5447d82bec5ad159e7e5fea8bdc5f80d976..a0d94369d524d43bae05e8e2e198a6a3cd5176a4 100644 (file)
@@ -66,7 +66,7 @@ Repeat_acknowledge_engraver::process_music ()
 
   SCM cs = get_property ("repeatCommands");
 
-  std::string s = "";
+  string s = "";
   bool start = false;
   bool end = false;
   bool volta_found = false;
index 2fa66dbe54361f09589e4ebfd0d75121adae307a..ef2ecfb4207a73ba2fa18865003f679e51dce79e 100644 (file)
@@ -15,7 +15,7 @@ class Rest_collision_engraver : public Engraver
 {
   Item *rest_collision_;
   vsize rest_count_;
-  Link_array__Grob_ note_columns_;
+  vector<Grob*> note_columns_;
 protected:
   DECLARE_ACKNOWLEDGER (note_column);
   void process_acknowledged ();
index aebdf84cf841925b98ece9b30483ad6b89b382a3..589dd0dbecf9cb1e2739161b2dbbab691280a9df 100644 (file)
@@ -92,8 +92,8 @@ Rest_collision::calc_positioning_done (SCM smob)
   Grob *me = unsmob_grob (smob);
   extract_grob_set (me, "elements", elts);
 
-  Link_array__Grob_ rests;
-  Link_array__Grob_ notes;
+  vector<Grob*> rests;
+  vector<Grob*> notes;
 
   for (vsize i = 0; i < elts.size (); i++)
     {
@@ -137,7 +137,7 @@ Rest_collision::calc_positioning_done (SCM smob)
        This is incomplete: in case of an uneven number of rests, the
        center one should be centered on the staff.
       */
-      Drul_array<Link_array__Grob_ > ordered_rests;
+      Drul_array<vector<Grob*> > ordered_rests;
       for (vsize i = 0; i < rests.size (); i++)
        {
          Grob *r = Note_column::get_rest (rests[i]);
index 181626ef3a88c9933a42f294a407614374185803..8d6cba506858f01f4fcccaf23af98d5dc4d4fcf7 100644 (file)
@@ -57,8 +57,8 @@ Rest::y_offset_callback (SCM smob)
 /*
   make this function easily usable in C++
 */
-std::string
-Rest::glyph_name (Grob *me, int balltype, std::string style, bool try_ledgers)
+string
+Rest::glyph_name (Grob *me, int balltype, string style, bool try_ledgers)
 {
   bool is_ledgered = false;
   if (try_ledgers && (balltype == 0 || balltype == 1))
@@ -75,7 +75,7 @@ Rest::glyph_name (Grob *me, int balltype, std::string style, bool try_ledgers)
       is_ledgered |= (balltype == 1) && (pos <= -rad - 2 || pos > +rad);
     }
 
-  std::string actual_style (style.c_str ());
+  string actual_style (style.c_str ());
 
   if ((style == "mensural") || (style == "neomensural"))
     {
@@ -128,13 +128,13 @@ Rest::brew_internal_stencil (Grob *me, bool ledgered)
 
   int balltype = scm_to_int (balltype_scm);
 
-  std::string style;
+  string style;
   SCM style_scm = me->get_property ("style");
   if (scm_is_symbol (style_scm))
     style = ly_scm2string (scm_symbol_to_string (style_scm));
 
   Font_metric *fm = Font_interface::get_default_font (me);
-  std::string font_char = glyph_name (me, balltype, style, ledgered);
+  string font_char = glyph_name (me, balltype, style, ledgered);
   Stencil out = fm->find_by_name (font_char);
   if (out.is_empty ())
     me->warning (_f ("rest `%s' not found", font_char.c_str ()));
index 2ca4cdca7c837ef53a0e47c1db26cbec3a7e3b3f..3c250c92b27a052a40f5f54ad06353af63d41456 100644 (file)
@@ -41,7 +41,7 @@
 
 class Rhythmic_column_engraver : public Engraver
 {
-  Link_array__Grob_ rheads_;
+  vector<Grob*> rheads_;
   Grob *stem_;
   Grob *note_column_;
   Grob *dotcol_;
index ccbe0f6112b682bd71aafeb29578d1ac04e641f1..b445c6a6821ddfb4e3f3fd71ff0ee379b0f1eb6f 100644 (file)
@@ -18,7 +18,7 @@
 class Script_column_engraver : public Engraver
 {
   Grob *scol_;
-  Link_array__Item_ scripts_;
+  vector<Item*> scripts_;
 
 public:
   TRANSLATOR_DECLARATIONS (Script_column_engraver);
index 0cc14ba48fa96889ad05b4f27d6a75be4129adbc..0676e20f0289978d957ccabb64f798dea6e5343e 100644 (file)
@@ -42,7 +42,7 @@ Script_column::before_line_breaking (SCM smob)
 {
   Grob *me = unsmob_grob (smob);
   Drul_array<SCM> scripts_drul (SCM_EOL, SCM_EOL);
-  Link_array__Grob_ staff_sided;
+  vector<Grob*> staff_sided;
 
   extract_grob_set (me, "scripts", scripts);
   for (vsize i = 0; i < scripts.size (); i++)
index f0284d85a9b58542633db7249a7d93f80be5fe07..9a06474c6b21731f51ab5337e778e7da325f1029 100644 (file)
@@ -34,7 +34,7 @@ struct Script_tuple
 
 class Script_engraver : public Engraver
 {
-  std::vector<Script_tuple> scripts_;
+  vector<Script_tuple> scripts_;
   Spanner *slur_;
 
 protected:
index a5b076bc868d00f1f9c0d29b20323602723db729..944b08fdc025a59722ae41b76548a40c6c522d15 100644 (file)
@@ -16,7 +16,7 @@
 
 void
 Separating_group_spanner::find_rods (Item *r,
-                                    Link_array__Grob_ const &separators,
+                                    vector<Grob*> const &separators,
                                     vsize idx,
                                     Real padding)
 {
index b50acd3143a46585bd577f9dc2c83734c509f68f..8a7821a1025e3c5110d3c2a370293ff6a1a9ee33 100644 (file)
@@ -24,7 +24,7 @@
 struct Spacings
 {
   Item *staff_spacing_;
-  Link_array__Item_ note_spacings_;
+  vector<Item*> note_spacings_;
 
   Spacings ()
   {
index 65f2a694a882a7e17b5b54fc802fd68df96ff8bc..52d0425fb2d9d3a5f75c731941fb6dbf59a41c88 100644 (file)
@@ -106,7 +106,7 @@ Side_position_interface::general_side_position (Grob *me, Axis a, bool use_exten
   /* FIXME: 1000 should relate to paper size.  */
   if (fabs (total_off) > 1000)
     {
-      std::string msg
+      string msg
        = String_convert::form_string ("Improbable offset for grob %s: %f%s",
                                       me->name ().c_str (), total_off,
                                       INTERNAL_UNIT);
index c47993fb6a29c78e7b5f1cb7f2d6dbff801c920b..24ff02c680aad486a49e019408a52ed63dc20323 100644 (file)
@@ -60,7 +60,7 @@ LY_DEFINE (ly_solve_spring_rod_problem, "ly:solve-spring-rod-problem",
   else
     spacer.my_solve_linelen ();
 
-  std::vector<Real> posns;
+  vector<Real> posns;
   posns.push_back (0.0);
   for (vsize i = 0; i < spacer.springs_.size (); i++)
     {
index 900fd77988ec3fb97eb480989131d06324381155..bc0ee2c3f66709350544c75cd70331fbb3dac5a1 100644 (file)
@@ -376,9 +376,9 @@ compare_paper_column_rank (Grob *const &a,
 }
 
 void
-Simple_spacer_wrapper::add_columns (Link_array__Grob_ const &icols)
+Simple_spacer_wrapper::add_columns (vector<Grob*> const &icols)
 {
-  Link_array__Grob_ cols (icols);
+  vector<Grob*> cols (icols);
   cols.clear ();
 
   for (vsize i = 0; i < icols.size (); i++)
index 6c2007ed5babf021f6b49a8d8413dd4ee72c1a09..f72ea5b2f6d5fcbf8c6cdf229d62077373b90c39 100644 (file)
@@ -42,7 +42,7 @@ const Real EPS = 1e-12;
   binsearch.
 */
 void
-insert_extent_into_skyline (std::vector<Skyline_entry> *line, Box b, Axis line_axis,
+insert_extent_into_skyline (vector<Skyline_entry> *line, Box b, Axis line_axis,
                            Direction d)
 {
   Interval extent = b[line_axis];
@@ -83,8 +83,8 @@ insert_extent_into_skyline (std::vector<Skyline_entry> *line, Box b, Axis line_a
 }
 
 void
-merge_skyline (std::vector<Skyline_entry> *a1,
-              std::vector<Skyline_entry> const &a2,
+merge_skyline (vector<Skyline_entry> *a1,
+              vector<Skyline_entry> const &a2,
               Direction dir)
 {
   for (vsize i = 0; i < a2.size (); i++)
@@ -98,10 +98,10 @@ merge_skyline (std::vector<Skyline_entry> *a1,
     }
 }
 
-std::vector<Skyline_entry>
+vector<Skyline_entry>
 empty_skyline (Direction d)
 {
-  std::vector<Skyline_entry> skyline;
+  vector<Skyline_entry> skyline;
 
   Interval i;
   i.set_empty ();
@@ -113,11 +113,11 @@ empty_skyline (Direction d)
   return skyline;
 }
 
-std::vector<Skyline_entry>
-extents_to_skyline (std::vector<Box> const &extents, Axis a, Direction d)
+vector<Skyline_entry>
+extents_to_skyline (vector<Box> const &extents, Axis a, Direction d)
 {
 
-  std::vector<Skyline_entry> skyline = empty_skyline (d);
+  vector<Skyline_entry> skyline = empty_skyline (d);
 
   /*
     This makes a cubic algorithm (array  insertion is O (n),
@@ -139,8 +139,8 @@ extents_to_skyline (std::vector<Box> const &extents, Axis a, Direction d)
   This is an O (n) algorithm.
 */
 Real
-skyline_meshing_distance (std::vector<Skyline_entry> const &buildings,
-                         std::vector<Skyline_entry> const &clouds)
+skyline_meshing_distance (vector<Skyline_entry> const &buildings,
+                         vector<Skyline_entry> const &clouds)
 {
   int i = buildings.size () -1;
   int j = clouds.size () -1;
@@ -176,14 +176,14 @@ Skyline_entry::Skyline_entry (Interval i, Real r)
 }
 
 void
-heighten_skyline (std::vector<Skyline_entry> *buildings, Real ground)
+heighten_skyline (vector<Skyline_entry> *buildings, Real ground)
 {
   for (vsize i = 0; i < buildings->size (); i++)
     buildings->at (i).height_ += ground;
 }
 
 Real
-skyline_height (std::vector<Skyline_entry> const &buildings,
+skyline_height (vector<Skyline_entry> const &buildings,
                Real airplane,
                Direction sky_dir)
 {
index f67b00469a5b6ba4b5ae0816e09494a1d7ca54b6..29b9844863ea73f376be283fb74ca013ec69d36f 100644 (file)
@@ -25,7 +25,7 @@ avoid_staff_line (Slur_score_state const &state,
                  Bezier bez)
 {
   Offset horiz (1, 0);
-  std::vector<Real> ts = bez.solve_derivative (horiz);
+  vector<Real> ts = bez.solve_derivative (horiz);
 
   /* TODO: handle case of broken slur.  */
   if (!ts.empty ()
@@ -64,7 +64,7 @@ avoid_staff_line (Slur_score_state const &state,
 
 Real
 fit_factor (Offset dz_unit, Offset dz_perp,
-           Bezier curve, Direction d, std::vector<Offset> const &avoid)
+           Bezier curve, Direction d, vector<Offset> const &avoid)
 {
   Real fit_factor = 0.0;
   Offset x0 = curve.control_[0];
@@ -98,7 +98,7 @@ fit_factor (Offset dz_unit, Offset dz_perp,
 void
 Slur_configuration::generate_curve (Slur_score_state const &state,
                                    Real r_0, Real h_inf,
-                                   std::vector<Offset> const &avoid)
+                                   vector<Offset> const &avoid)
 {
   Offset dz = attachment_[RIGHT]- attachment_[LEFT];;
   Offset dz_unit = dz;
@@ -180,7 +180,7 @@ Slur_configuration::score_encompass (Slur_score_state const &state)
     Distances for heads that are between slur and line between
     attachment points.
   */
-  std::vector<Real> convex_head_distances;
+  vector<Real> convex_head_distances;
   for (vsize j = 0; j < state.encompass_infos_.size (); j++)
     {
       Real x = state.encompass_infos_[j].x_;
index a0deb271dccb7736d30e3380de734de82a01c83c..a022660b647a8c7fe62ba23317bf87d1e852e56c 100644 (file)
@@ -26,8 +26,8 @@ class Slur_engraver : public Engraver
 {
   Drul_array<Music *> events_;
   Music *running_slur_start_;
-  Link_array__Grob_ slurs_;
-  Link_array__Grob_ end_slurs_;
+  vector<Grob*> slurs_;
+  vector<Grob*> end_slurs_;
 
   void set_melisma (bool);
 
index 5f978cc483507c0537812e72f3ad5ab0cbdc6caa..4e96c9322db75b8c55c4a2d4d863a3bab213f0d0 100644 (file)
@@ -631,11 +631,11 @@ Slur_score_state::move_away_from_staffline (Real y,
   return y;
 }
 
-std::vector<Offset>
+vector<Offset>
 Slur_score_state::generate_avoid_offsets () const
 {
-  std::vector<Offset> avoid;
-  Link_array__Grob_ encompasses = columns_;
+  vector<Offset> avoid;
+  vector<Grob*> encompasses = columns_;
 
   for (vsize i = 0; i < encompasses.size (); i++)
     {
@@ -684,15 +684,15 @@ Slur_score_state::generate_curves () const
   Real r_0 = robust_scm2double (slur_->get_property ("ratio"), 0.33);
   Real h_inf = staff_space_ * scm_to_double (slur_->get_property ("height-limit"));
 
-  std::vector<Offset> avoid = generate_avoid_offsets ();
+  vector<Offset> avoid = generate_avoid_offsets ();
   for (vsize i = 0; i < configurations_.size (); i++)
     configurations_[i]->generate_curve (*this, r_0, h_inf, avoid);
 }
 
-Link_array__Slur_configuration_
+vector<Slur_configuration*>
 Slur_score_state::enumerate_attachments (Drul_array<Real> end_ys) const
 {
-  Link_array__Slur_configuration_ scores;
+  vector<Slur_configuration*> scores;
 
   Drul_array<Offset> os;
   os[LEFT] = base_attachments_[LEFT];
@@ -780,11 +780,11 @@ Slur_score_state::enumerate_attachments (Drul_array<Real> end_ys) const
   return scores;
 }
 
-std::vector<Extra_collision_info>
+vector<Extra_collision_info>
 Slur_score_state::get_extra_encompass_infos () const
 {
   extract_grob_set (slur_, "encompass-objects", encompasses);
-  std::vector<Extra_collision_info> collision_infos;
+  vector<Extra_collision_info> collision_infos;
   for (vsize i = encompasses.size (); i--;)
     {
       if (Slur::has_interface (encompasses[i]))
index 8c1e7e090e366fd4d6db17c48a1a6624cf0c3ab9..e3c4ca2521aa0ae23490e334eb239ccfb34bc0a1 100644 (file)
@@ -112,7 +112,7 @@ Slur::print (SCM smob)
                  ->lookup_variable (ly_symbol2scm ("debug-slur-scoring")))
       && scm_is_string (quant_score))
     {
-      std::string str;
+      string str;
       SCM properties = Font_interface::text_font_alist_chain (me);
 
       Stencil tm = *unsmob_stencil (Text_interface::interpret_markup
index 9689b1a29e19f3bfb68930dd63c367b3731ef03a..902baa0e47b4a50dec5a7a6f19062791daef3b0c 100644 (file)
@@ -46,7 +46,7 @@ Source_file::load_stdin ()
 }
 
 char *
-gulp_file (std::string filename, int *filesize)
+gulp_file (string filename, int *filesize)
 {
   /* "b" must ensure to open literally, avoiding text (CR/LF)
      conversions.  */
@@ -78,7 +78,7 @@ gulp_file (std::string filename, int *filesize)
   return str;
 }
 
-Source_file::Source_file (std::string filename, std::string data)
+Source_file::Source_file (string filename, string data)
 {
   name_ = filename;
   istream_ = 0;
@@ -92,7 +92,7 @@ Source_file::Source_file (std::string filename, std::string data)
       newline_locations_.push_back (contents_str0_ + i);
 }
 
-Source_file::Source_file (std::string filename_string)
+Source_file::Source_file (string filename_string)
 {
   name_ = filename_string;
   istream_ = 0;
@@ -146,7 +146,7 @@ Source_file::get_istream ()
   return istream_;
 }
 
-std::string
+string
 Source_file::file_line_column_string (char const *context_str0) const
 {
   if (!c_str ())
@@ -161,7 +161,7 @@ Source_file::file_line_column_string (char const *context_str0) const
     }
 }
 
-std::string
+string
 Source_file::quote_input (char const *pos_str0) const
 {
   if (!contains (pos_str0))
@@ -169,15 +169,15 @@ Source_file::quote_input (char const *pos_str0) const
 
   int l, ch, col;
   get_counts (pos_str0, &l, &ch, &col);
-  std::string line = line_string (pos_str0);
-  std::string context = line.substr (0, ch)
+  string line = line_string (pos_str0);
+  string context = line.substr (0, ch)
     + to_string ('\n')
     + to_string (' ', col)
     + line.substr (ch, line.length()-ch);
   return context;
 }
 
-std::string
+string
 Source_file::name_string () const
 {
   return map_file_name (name_);
@@ -220,7 +220,7 @@ Source_file::line_slice (char const *pos_str0) const
   return Slice (begin_str0 - data_str0, end_str0 - data_str0);
 }
 
-std::string
+string
 Source_file::line_string (char const *pos_str0) const
 {
   if (!contains (pos_str0))
@@ -228,7 +228,7 @@ Source_file::line_string (char const *pos_str0) const
 
   Slice line = line_slice (pos_str0);
   char const *data_str0 = c_str ();
-  return std::string (data_str0 + line[LEFT], line.length ());
+  return string (data_str0 + line[LEFT], line.length ());
 }
 
 void
@@ -251,7 +251,7 @@ Source_file::get_counts (char const *pos_str0,
   char const *line_start = (char const *)data + line[LEFT];
 
   ssize left = (char const *) pos_str0 - line_start;
-  std::string line_begin (line_start, left);
+  string line_begin (line_start, left);
   char const *line_chars = line_begin.c_str ();
 
   *column = 0;
@@ -380,10 +380,10 @@ Source_file::forward_str0 (int n)
   return old_pos;
 }
 
-std::string
+string
 Source_file::get_string (int n)
 {
-  std::string str = std::string ((char const *)forward_str0 (n), n);
+  string str = string ((char const *)forward_str0 (n), n);
   return str;
 }
 
index 775668e08d53dd40389526addf156cb9024b6194..462bfcffa090a9232138db397d594c6b5c38adb8 100644 (file)
@@ -40,11 +40,11 @@ Sources::set_path (File_path *f)
    @return 0 if no file found
 */
 Source_file *
-Sources::get_file (std::string &file_string) //UGH
+Sources::get_file (string &file_string) //UGH
 {
   if ((file_string != "-") && path_)
     {
-      std::string file_string_o = path_->find (file_string);
+      string file_string_o = path_->find (file_string);
       if ((file_string_o == "") && (file_string != ""))
        return 0;
       file_string = file_string_o;
index e878d264a186c6bb9355b90e3c6f4b1f2b56dc57..951cc8b12ef23ae72d3fe6750ad6ea3ca0afbc22 100644 (file)
@@ -126,10 +126,10 @@ is_loose_column (Grob *l, Grob *c, Grob *r, Spacing_options const *options)
   between.
 */
 void
-Spacing_spanner::prune_loose_columns (Grob *me, Link_array__Grob_ *cols,
+Spacing_spanner::prune_loose_columns (Grob *me, vector<Grob*> *cols,
                                      Spacing_options const *options)
 {
-  Link_array__Grob_ newcols;
+  vector<Grob*> newcols;
 
   for (vsize i = 0; i < cols->size (); i++)
     {
@@ -228,7 +228,7 @@ Spacing_spanner::prune_loose_columns (Grob *me, Link_array__Grob_ *cols,
   Set neighboring columns determined by the spacing-wishes grob property.
 */
 void
-Spacing_spanner::set_explicit_neighbor_columns (Link_array__Grob_ const &cols)
+Spacing_spanner::set_explicit_neighbor_columns (vector<Grob*> const &cols)
 {
   for (vsize i = 0; i < cols.size (); i++)
     {
@@ -300,7 +300,7 @@ Spacing_spanner::set_explicit_neighbor_columns (Link_array__Grob_ const &cols)
   yet. Only do breakable non-musical columns, and musical columns.
 */
 void
-Spacing_spanner::set_implicit_neighbor_columns (Link_array__Grob_ const &cols)
+Spacing_spanner::set_implicit_neighbor_columns (vector<Grob*> const &cols)
 {
   for (vsize i = 0; i < cols.size (); i++)
     {
index 4b09a917d333bfe21b60877e4403f1384755bf38..d567cb6ebc279d53e1f55ed741b7c9020bf2cf22 100644 (file)
@@ -42,8 +42,8 @@ struct Rhythmic_tuple
 class Spacing_engraver : public Engraver
 {
   PQueue<Rhythmic_tuple> playing_durations_;
-  std::vector<Rhythmic_tuple> now_durations_;
-  std::vector<Rhythmic_tuple> stopped_durations_;
+  vector<Rhythmic_tuple> now_durations_;
+  vector<Rhythmic_tuple> stopped_durations_;
   Moment now_;
   Spanner *spacing_;
 
index bc0594bed0c79d0b41439132eaa3d1cd1246fe46..0570741117b0a4e36b2bb4f08113fccfc5329d65 100644 (file)
@@ -38,7 +38,7 @@ set_loose_columns (System *which, Column_x_positions const *posns)
       Item *left = 0;
       Item *right = 0;
 
-      Link_array__Item_ clique;
+      vector<Item*> clique;
       while (1)
        {
          SCM between = loose->get_object ("between-cols");
index 39638ff007cfd28199893f3580c568068a566946..73fb9880f469a7e36d8ba1e9ea6e186701ea896c 100644 (file)
@@ -35,7 +35,7 @@ using namespace std;
 */
 Rational
 Spacing_spanner::effective_shortest_duration (Grob *me,
-                                             Link_array__Grob_ const &all)
+                                             vector<Grob*> const &all)
 {
   SCM preset_shortest = me->get_property ("common-shortest-duration");
   Rational global_shortest;
@@ -61,7 +61,7 @@ Spacing_spanner::set_springs (SCM smob)
   /*
     can't use get_system() ? --hwn.
   */
-  Link_array__Grob_ all (get_root_system (me)->columns ());
+  vector<Grob*> all (get_root_system (me)->columns ());
 
   set_explicit_neighbor_columns (all);
 
@@ -86,13 +86,13 @@ Spacing_spanner::set_springs (SCM smob)
   stuff, then.
 */
 Rational
-Spacing_spanner::find_shortest (Grob *me, Link_array__Grob_ const &cols)
+Spacing_spanner::find_shortest (Grob *me, vector<Grob*> const &cols)
 {
   /*
     ascending in duration
   */
-  std::vector<Rational> durations;
-  std::vector<int> counts;
+  vector<Rational> durations;
+  vector<int> counts;
 
   Rational shortest_in_measure;
   shortest_in_measure.set_infinite (1);
@@ -225,7 +225,7 @@ Spacing_spanner::generate_pair_spacing (Grob *me,
 
 void
 Spacing_spanner::generate_springs (Grob *me,
-                                  Link_array__Grob_ const &cols,
+                                  vector<Grob*> const &cols,
                                   Spacing_options const *options)
 {
   Paper_column *next = 0;
index 1e992e16a3b99fdd9e609705e7c5a72a54cea380..e9701290482b69160126ab0ef9d71b0cfd767d0f 100644 (file)
@@ -30,7 +30,7 @@ protected:
 
 private:
   Item *span_arpeggio_;
-  Link_array__Grob_ arpeggios_;
+  vector<Grob*> arpeggios_;
 };
 
 Span_arpeggio_engraver::Span_arpeggio_engraver ()
index 8ddd16c08de72cea08f2b605837b3d254ed921af..503bdf265b5cbcae112ba6c3182d701eca7b36e3 100644 (file)
@@ -22,7 +22,7 @@ dependencies to the spanbars.
 class Span_bar_engraver : public Engraver
 {
   Item *spanbar_;
-  Link_array__Item_ bars_;
+  vector<Item*> bars_;
 
 public:
   TRANSLATOR_DECLARATIONS (Span_bar_engraver);
index 14debf7c9852f9d8fa19da708d4a1eae57b63f26..84fe893a0c4b0287752e78185564c8ff6efcc0ae 100644 (file)
@@ -53,10 +53,10 @@ Span_bar::print (SCM smobbed_me)
   if (!scm_is_string (glyph))
     return SCM_EOL;
 
-  std::string glyph_string = ly_scm2string (glyph);
+  string glyph_string = ly_scm2string (glyph);
 
   /* compose span_bar_mol */
-  std::vector<Interval> extents;
+  vector<Interval> extents;
   Grob *model_bar = 0;
   for (vsize i = elements.size (); i--;)
     {
@@ -116,7 +116,7 @@ Span_bar::width (SCM smob)
   if (!me->is_live ())
     return ly_interval2scm (Interval ());
   
-  std::string gl = ly_scm2string (gn);
+  string gl = ly_scm2string (gn);
 
   /*
     urg.
@@ -177,7 +177,7 @@ Span_bar::calc_glyph_name (SCM smob)
       return SCM_UNSPECIFIED;
     }
 
-  std::string type = ly_scm2string (gl);
+  string type = ly_scm2string (gl);
   if (type == "|:")
     type = ".|";
   else if (type == ":|")
index 111f9a9442a66cd9fea0509c884fdeb3f20e013c..3d8d053be2a303afa8213e18b00b2680fd9106a5 100644 (file)
@@ -41,8 +41,8 @@ private:
   Real last_volume_;
   Music *span_start_event_;
   Drul_array<Music *> span_events_;
-  std::vector<Audio_dynamic_tuple> dynamic_tuples_;
-  std::vector<Audio_dynamic_tuple> finished_dynamic_tuples_;
+  vector<Audio_dynamic_tuple> dynamic_tuples_;
+  vector<Audio_dynamic_tuple> finished_dynamic_tuples_;
   Direction dir_;
   Direction finished_dir_;
 };
index c7836160b0c772002d07302eaabe63528cd661a1..bb6f743a24d5034eab9a0e6cb76805b11308a071 100644 (file)
@@ -81,7 +81,7 @@ Spanner::do_break_processing ()
   else
     {
       System *root  = get_root_system (this);
-      Link_array__Item_ break_points = root->broken_col_range (left, right);
+      vector<Item*> break_points = root->broken_col_range (left, right);
 
       break_points.insert (break_points.begin () + 0, left);
       break_points.push_back (right);
index 4d2d53beb0fcbefcc01fba3166f587eb6cd8d925..b8facd23645e3abbad7fe2bb0a625ff08097a0ac 100644 (file)
@@ -22,8 +22,8 @@ public:
   TRANSLATOR_DECLARATIONS (Staff_performer);
   ~Staff_performer ();
 
-  std::string new_instrument_string ();
-  std::string instrument_string_;
+  string new_instrument_string ();
+  string instrument_string_;
 
 protected:
   virtual void acknowledge_audio_element (Audio_element_info info);
@@ -77,7 +77,7 @@ Staff_performer::initialize ()
 void
 Staff_performer::process_music ()
 {
-  std::string str = new_instrument_string ();
+  string str = new_instrument_string ();
   if (str.length ())
     {
       instrument_name_ = new Audio_text (Audio_text::INSTRUMENT_NAME, str);
@@ -124,7 +124,7 @@ Staff_performer::finalize ()
   audio_staff_ = 0;
 }
 
-std::string
+string
 Staff_performer::new_instrument_string ()
 {
   // mustn't ask Score for instrument: it will return piano!
index 305d3a2468902d439ed477c665e16f817350560a..1d9182c16cc719c5a5794b844830ecece10f2ce7 100644 (file)
@@ -102,7 +102,7 @@ Staff_spacing::bar_y_positions (Grob *bar_grob)
       SCM glyph = bar_grob->get_property ("glyph-name");
       Grob *staff_sym = Staff_symbol_referencer::get_staff_symbol (bar_grob);
 
-      std::string glyph_string = scm_is_string (glyph) ? ly_scm2string (glyph) : "";
+      string glyph_string = scm_is_string (glyph) ? ly_scm2string (glyph) : "";
       if (glyph_string.substr (0, 1) == "|"
          || glyph_string.substr (0, 1) == ".")
        {
index 3f80169b0cc35bfd60d209080740d176b270ac92..bf4da5f840acd726f132b06b73e7beb2bcd4e9aa 100644 (file)
@@ -21,8 +21,8 @@ public:
   TRANSLATOR_DECLARATIONS (Stanza_number_align_engraver);
 
 protected:
-  Link_array__Grob_ lyrics_;
-  Link_array__Grob_ stanza_numbers_;
+  vector<Grob*> lyrics_;
+  vector<Grob*> stanza_numbers_;
 
   DECLARE_ACKNOWLEDGER (lyric_syllable);
   DECLARE_ACKNOWLEDGER (stanza_number);
index c50b97631073efcd139effa0476ecd227df1329a..3c1bdc326c39c8c4275029390421a3ec317dfe92 100644 (file)
@@ -181,10 +181,10 @@ integer_compare (int const &a, int const &b)
 }
 
 /* The positions, in ascending order.  */
-std::vector<int>
+vector<int>
 Stem::note_head_positions (Grob *me)
 {
-  std::vector<int> ps;
+  vector<int> ps;
   extract_grob_set (me, "note-heads", heads);
 
   for (vsize i = heads.size (); i--;)
@@ -233,7 +233,7 @@ Stem::calc_stem_end_position (SCM smob)
   
   Real ss = Staff_symbol_referencer::staff_space (me);
   int durlog = duration_log (me);
-  std::vector<Real> a;
+  vector<Real> a;
 
   /* WARNING: IN HALF SPACES */
   Real length = robust_scm2double (me->get_property ("length"), 7);
@@ -367,7 +367,7 @@ Stem::calc_positioning_done (SCM smob)
     return SCM_BOOL_T;
 
   extract_grob_set (me, "note-heads", ro_heads);
-  Link_array__Grob_ heads (ro_heads);
+  vector<Grob*> heads (ro_heads);
   vector_sort (heads, compare_position);
   Direction dir = get_grob_direction (me);
 
@@ -548,7 +548,7 @@ Stem::flag (Grob *me)
     TODO: maybe property stroke-style should take different values,
     e.g. "" (i.e. no stroke), "single" and "double" (currently, it's
     '() or "grace").  */
-  std::string flag_style;
+  string flag_style;
 
   SCM flag_style_scm = me->get_property ("flag-style");
   if (scm_is_symbol (flag_style_scm))
@@ -559,7 +559,7 @@ Stem::flag (Grob *me)
 
   bool adjust = true;
 
-  std::string staffline_offs;
+  string staffline_offs;
   if (flag_style == "mensural")
     /* Mensural notation: For notes on staff lines, use different
        flags than for notes between staff lines.  The idea is that
@@ -582,7 +582,7 @@ Stem::flag (Grob *me)
     staffline_offs = "";
 
   char dir = (get_grob_direction (me) == UP) ? 'u' : 'd';
-  std::string font_char = flag_style
+  string font_char = flag_style
     + to_string (dir) + staffline_offs + to_string (log);
   Font_metric *fm = Font_interface::get_default_font (me);
   Stencil flag = fm->find_by_name ("flags." + font_char);
@@ -592,10 +592,10 @@ Stem::flag (Grob *me)
   SCM stroke_style_scm = me->get_property ("stroke-style");
   if (scm_is_string (stroke_style_scm))
     {
-      std::string stroke_style = ly_scm2string (stroke_style_scm);
+      string stroke_style = ly_scm2string (stroke_style_scm);
       if (!stroke_style.empty ())
        {
-         std::string font_char = to_string (dir) + stroke_style;
+         string font_char = to_string (dir) + stroke_style;
          Stencil stroke = fm->find_by_name ("flags." + font_char);
          if (stroke.is_empty ())
            me->warning (_f ("flag stroke `%s' not found", font_char));
index b1d87e79a3885d542f1cfff6f8d55d0e98370608..2e6cd91bd9be118684c3c98e4311db7ba1eaaea3 100644 (file)
@@ -44,18 +44,18 @@ Sustain_pedal::print (SCM smob)
   if (!scm_is_string (glyph))
     return mol.smobbed_copy ();
 
-  std::string text = ly_scm2string (glyph);
+  string text = ly_scm2string (glyph);
 
   for (ssize i = 0; i < text.length (); i++)
     {
-      std::string idx ("pedal.");
+      string idx ("pedal.");
       if (text.substr (i, 3) == "Ped")
        {
          idx += "Ped";
          i += 2;
        }
       else
-       idx += std::string (&text.c_str ()[i], 1);
+       idx += string (&text.c_str ()[i], 1);
       Stencil m = Font_interface::get_default_font (e)->find_by_name (idx);
       if (!m.is_empty ())
        mol.add_at_edge (X_AXIS, RIGHT, m, 0, 0);
index bbab59328d6f49b6a33ee477e4223b8bc4046ce1..b03c1d20a4017f0adf8fb2eed1425c2645fe1dad 100644 (file)
@@ -32,7 +32,7 @@ public:
 struct Bracket_nesting_group : public Bracket_nesting_node
 {
   Spanner *delimiter_;
-  Link_array__Bracket_nesting_node_ children_;
+  vector<Bracket_nesting_node*> children_;
   SCM symbol_;
 
   void from_list (SCM ); 
index 6bcae7ffba0f5e0129565894488ba31f0322f775..ddf5c613cd3e33cd58dc3aca97f6a3c083e68ed1 100644 (file)
@@ -106,7 +106,7 @@ System::derived_mark () const
 }
 
 static void
-fixup_refpoints (Link_array__Grob_ const &grobs)
+fixup_refpoints (vector<Grob*> const &grobs)
 {
   for (vsize i = grobs.size (); i--;)
     grobs[i]->fixup_refpoint ();
@@ -200,14 +200,14 @@ System::get_paper_systems ()
 }
 
 void
-System::break_into_pieces (std::vector<Column_x_positions> const &breaking)
+System::break_into_pieces (vector<Column_x_positions> const &breaking)
 {
   for (vsize i = 0; i < breaking.size (); i++)
     {
       System *system = dynamic_cast<System *> (clone (i));
       system->rank_ = i;
 
-      Link_array__Grob_ c (breaking[i].cols_);
+      vector<Grob*> c (breaking[i].cols_);
       pscore_->typeset_system (system);
 
       system->set_bound (LEFT, c[0]);
@@ -317,7 +317,7 @@ System::post_processing ()
      This might seem inefficient, but Stencils are cached per grob
      anyway. */
 
-  Link_array__Grob_ all_elts_sorted (all_elements_->array ());
+  vector<Grob*> all_elts_sorted (all_elements_->array ());
   vector_sort (all_elts_sorted, default_compare);
   uniq (all_elts_sorted);
   this->get_stencil ();
@@ -399,10 +399,10 @@ System::get_paper_system ()
   return pl->unprotect ();
 }
 
-Link_array__Item_
+vector<Item*>
 System::broken_col_range (Item const *left, Item const *right) const
 {
-  Link_array__Item_ ret;
+  vector<Item*> ret;
 
   left = left->get_column ();
   right = right->get_column ();
@@ -430,7 +430,7 @@ System::broken_col_range (Item const *left, Item const *right) const
 
 /** Return all columns, but filter out any unused columns , since they might
     disrupt the spacing problem. */
-Link_array__Grob_
+vector<Grob*>
 System::columns () const
 {
   extract_grob_set (this, "columns", ro_columns);
@@ -443,7 +443,7 @@ System::columns () const
        break;
     }
 
-  Link_array__Grob_ columns;
+  vector<Grob*> columns;
   for (int i = 0; i <= last_breakable; i++)
     {
       if (Paper_column::is_used (ro_columns[i]))
index 2a1c24b94310d270ba233de66f3f8f54aef4c835..00b4ab156d8d93d858abf1b11f7905b453a0c85a 100644 (file)
@@ -26,11 +26,11 @@ using namespace std;
 */
 class Tab_note_heads_engraver : public Engraver
 {
-  Link_array__Item_ notes_;
+  vector<Item*> notes_;
 
-  Link_array__Item_ dots_;
-  Link_array__Music_ note_events_;
-  Link_array__Music_ tabstring_events_;
+  vector<Item*> dots_;
+  vector<Music*> note_events_;
+  vector<Music*> tabstring_events_;
 public:
   TRANSLATOR_DECLARATIONS (Tab_note_heads_engraver);
 
index 6ecd872febc2963278f76b67c277b940b05cab23..fcc788fd14f9160c93bbe621303b77555b682b1f 100644 (file)
@@ -20,7 +20,7 @@ Interval_t<Rational>::infinity ()
 }
 
 template<>
-std::string
+string
 Interval_t<Rational>::T_to_string (Rational a)
 {
   return a.to_string ();
index 7ada54bb7c92cd8d89d33725a4a9275e77107276..6a59be86641a1539f1af4b585ea45c9704493f2f 100644 (file)
@@ -18,8 +18,8 @@
 */
 class Text_engraver : public Engraver
 {
-  Link_array__Music_ evs_;
-  Link_array__Item_ texts_;
+  vector<Music*> evs_;
+  vector<Item*> texts_;
 public:
   TRANSLATOR_DECLARATIONS (Text_engraver);
 protected:
index d95ed7a63aec4766214fad589689d707a8a319de..62375fbb9c72f96bca69b7c24b28d82aad23390d 100644 (file)
@@ -32,7 +32,7 @@ Text_interface::interpret_string (SCM layout_smob,
   SCM_ASSERT_TYPE (scm_is_string (markup), markup, SCM_ARG3,
                   __FUNCTION__, "string");
 
-  std::string str = ly_scm2string (markup);
+  string str = ly_scm2string (markup);
 
   Font_metric *fm = select_encoded_font (layout, props);
   return fm->text_stencil (str).smobbed_copy ();
index dbeafffef631a2dad88362e37d68d9150f8aa1af..2b6d57e538f81ceff99aee5e7b388b7a80597976 100644 (file)
@@ -19,7 +19,7 @@ lookup_tex_text_dimension (Font_metric *font, SCM text)
   Box b;
 
   SCM limit = ly_lily_module_constant ("TEX_STRING_HASHLIMIT");
-  std::string key_str = ly_scm2string (font->font_file_name ());
+  string key_str = ly_scm2string (font->font_file_name ());
   int hash_code = scm_to_int (scm_hash (text, limit));
   key_str = to_string (hash_code) + key_str;
 
@@ -70,12 +70,12 @@ LY_DEFINE (ly_load_text_dimensions, "ly:load-text-dimensions",
 }
 
 void
-try_load_text_metrics (std::string basename)
+try_load_text_metrics (string basename)
 {
-  std::string path = global_path.find (basename + ".textmetrics");
+  string path = global_path.find (basename + ".textmetrics");
   if (path != "")
     {
-      std::string contents (gulp_file_to_string (path, true, -1));
+      string contents (gulp_file_to_string (path, true, -1));
       contents = "(quote (" + contents + "))";
 
       SCM lst = scm_c_eval_string (contents.c_str ());
index cdd55d5783e14741d3d029cf5782c7eab46ec46b..b41630113470c4bc794137e0e1407a1a95e0ad54 100644 (file)
@@ -20,7 +20,7 @@
   (1 << 20)
 static const Real fix_to_real (Fix f);
 
-Tex_font_metric_reader::Tex_font_metric_reader (std::string name)
+Tex_font_metric_reader::Tex_font_metric_reader (string name)
   : input_ (name)
 {
 
@@ -55,11 +55,11 @@ Tex_font_metric_reader::get_U32_fix_scaled ()
   return get_U32_fix () * info_.design_size;
 }
 
-std::string
+string
 Tex_font_metric_reader::get_bcpl_string ()
 {
   U8 length_u8 = input_.get_U8 ();
-  std::string str = input_.get_string (length_u8);
+  string str = input_.get_string (length_u8);
   return str;
 }
 
@@ -255,7 +255,7 @@ Tex_font_metric_reader::read_char ()
 #define KERN_FLAG 128
 
 void
-Tex_font_metric_reader::read_lig_kern_program (std::vector<Tfm_ligature> *ligatures, std::vector<Tfm_kern> *kerns)
+Tex_font_metric_reader::read_lig_kern_program (vector<Tfm_ligature> *ligatures, vector<Tfm_kern> *kerns)
 {
   bool end_b;
 
index fa9007a2186093473495c4d757a8b6694e196aee..3f415802e46bdca4c2014ed46e78733d3bd871fd 100644 (file)
@@ -91,7 +91,7 @@ Tex_font_metric::get_ascii_char (vsize a) const
 }
 
 SCM
-Tex_font_metric::make_tfm (std::string file_name)
+Tex_font_metric::make_tfm (string file_name)
 {
   Tex_font_metric *tfm = new Tex_font_metric;
   Tex_font_metric_reader reader (file_name);
@@ -118,14 +118,14 @@ Tex_font_metric::design_size () const
   return info_.design_size * point_constant;
 }
 
-std::string
+string
 Tex_font_metric::font_name () const
 {
   return font_name_;
 }
 
 vsize
-Tex_font_metric::name_to_index (std::string) const
+Tex_font_metric::name_to_index (string) const
 {
   assert (false);
   return 0;
index 6962ccf3690de696259629d9d3afd3627b733d5c..68639605d38b7a625ba035ac89f300697b7d9a2e 100644 (file)
@@ -70,7 +70,7 @@ Tie_column::calc_positioning_done (SCM smob)
 {
   Grob *me = unsmob_grob (smob);
   extract_grob_set (me, "ties", ro_ties);
-  Link_array__Grob_ ties (ro_ties);
+  vector<Grob*> ties (ro_ties);
   if (!ties.size ())
     return SCM_BOOL_T;
 
index c78b99286cabbf4db9e9179836606999aa270b66..39be6c057f034d8015cd12e96ea9edc1480a23b4 100644 (file)
@@ -48,9 +48,9 @@ struct Head_event_tuple
 class Tie_engraver : public Engraver
 {
   Music *event_;
-  Link_array__Grob_ now_heads_;
-  std::vector<Head_event_tuple> heads_to_tie_;
-  Link_array__Grob_ ties_;
+  vector<Grob*> now_heads_;
+  vector<Head_event_tuple> heads_to_tie_;
+  vector<Grob*> ties_;
 
   Spanner *tie_column_;
 
index 8309db2660ddd43ac2e1a7bcaa0b6854040cd3a5..4e5a910b211f67330c563246e3c82f7fcdbb4a47 100644 (file)
@@ -59,12 +59,12 @@ Tie_formatting_problem::~Tie_formatting_problem ()
 }
 
 void
-Tie_formatting_problem::set_chord_outline (Link_array__Item_ bounds,
+Tie_formatting_problem::set_chord_outline (vector<Item*> bounds,
                                           Direction d)
 {
   Real staff_space = Staff_symbol_referencer::staff_space (bounds[0]);
 
-  std::vector<Box> boxes;
+  vector<Box> boxes;
 
   Grob *stem = 0;
   for (vsize i = 0; i < bounds.size (); i++)
@@ -163,7 +163,7 @@ Tie_formatting_problem::set_chord_outline (Link_array__Item_ bounds,
 void
 Tie_formatting_problem::from_tie (Grob *tie)
 {
-  Link_array__Grob_ ties;
+  vector<Grob*> ties;
   ties.push_back (tie);
   from_ties (ties);
 
@@ -177,7 +177,7 @@ Tie_formatting_problem::common_x_refpoint () const
 }
 
 void
-Tie_formatting_problem::from_ties (Link_array__Grob_ const &ties)
+Tie_formatting_problem::from_ties (vector<Grob*> const &ties)
 {
   if (ties.empty ())
     return;
@@ -194,7 +194,7 @@ Tie_formatting_problem::from_ties (Link_array__Grob_ const &ties)
   Direction d = LEFT;
   do
     {
-      Link_array__Item_ bounds;
+      vector<Item*> bounds;
       
       for (vsize i = 0; i < ties.size (); i++)
        {
@@ -231,13 +231,13 @@ Tie_formatting_problem::from_ties (Link_array__Grob_ const &ties)
 }
 
 void
-Tie_formatting_problem::from_lv_ties (Link_array__Grob_ const &lv_ties)
+Tie_formatting_problem::from_lv_ties (vector<Grob*> const &lv_ties)
 {
   if (lv_ties.empty ())
     return;
   
   details_.from_grob (lv_ties[0]);
-  Link_array__Item_ heads;
+  vector<Item*> heads;
   
   for (vsize i = 0; i < lv_ties.size (); i++)
     {
@@ -477,7 +477,7 @@ Tie_formatting_problem::score_configuration (Tie_configuration const &conf) cons
 Tie_configuration
 Tie_formatting_problem::find_optimal_tie_configuration (Tie_specification const &spec) const
 {
-  Link_array__Tie_configuration_ confs;
+  vector<Tie_configuration*> confs;
 
   int pos = spec.position_;
   Direction dir = spec.manual_dir_;
@@ -488,7 +488,7 @@ Tie_formatting_problem::find_optimal_tie_configuration (Tie_specification const
       confs.push_back (generate_configuration (pos + i * dir, dir));
     }
 
-  std::vector<Real> scores;
+  vector<Real> scores;
 
   int best_idx = -1;
   Real best_score = 1e6;
@@ -663,7 +663,7 @@ Ties_configuration
 Tie_formatting_problem::generate_optimal_chord_configuration ()
 {
   Ties_configuration base = generate_base_chord_configuration ();
-  std::vector<Tie_configuration_variation> vars = get_variations (base);
+  vector<Tie_configuration_variation> vars = get_variations (base);
 
   Ties_configuration best = base;
   Real best_score = score_ties (best);
@@ -737,12 +737,12 @@ Tie_configuration_variation::Tie_configuration_variation ()
   suggestion_ = 0;
 }
 
-std::vector<Tie_configuration_variation>
+vector<Tie_configuration_variation>
 Tie_formatting_problem::get_variations (Ties_configuration const &ties) 
 {
   Real center_distance_tolerance = 0.25;
   
-  std::vector<Tie_configuration_variation> vars;
+  vector<Tie_configuration_variation> vars;
   Real last_center = 0.0;
   for (vsize i = 0; i < ties.size (); i++)
     {
index f122bcc86546c2c6fa1dd82207ffd12ae2eaa171..bf3c513bcbdf578ba1aa44814500fcea2c54e178 100644 (file)
@@ -17,8 +17,8 @@ class Tie_performer : public Performer
 {
   Music *event_;
   Music *last_event_;
-  std::vector<Audio_element_info> now_heads_;
-  std::vector<Audio_element_info> heads_to_tie_;
+  vector<Audio_element_info> now_heads_;
+  vector<Audio_element_info> heads_to_tie_;
 
   bool ties_created_;
 
index 66b788a181e27c0a0a539486f3b367715bac3ba6..26860c688fcac9d6c1267c089f9136bc7fb1a468 100644 (file)
@@ -54,7 +54,7 @@ Time_signature::print (SCM smob)
 Stencil
 Time_signature::special_time_signature (Grob *me, SCM scm_style, int n, int d)
 {
-  std::string style = ly_scm2string (scm_symbol_to_string (scm_style));
+  string style = ly_scm2string (scm_symbol_to_string (scm_style));
 
   if (style == "numbered")
     return numbered_time_signature (me, n, d);
@@ -70,7 +70,7 @@ Time_signature::special_time_signature (Grob *me, SCM scm_style, int n, int d)
        return numbered_time_signature (me, n, d);
     }
 
-  std::string char_name = style + to_string (n) + to_string (d);
+  string char_name = style + to_string (n) + to_string (d);
   me->set_property ("font-encoding", ly_symbol2scm ("fetaMusic"));
   Stencil out = Font_interface::get_default_font (me)
     ->find_by_name ("timesig." + char_name);
index e63dfdc6eb40179951ac48c61074b7f43ec85494..529d0f997961d7c4462926aeeb2e6846a44a62d2 100644 (file)
@@ -186,7 +186,7 @@ Translator_group::precompute_method_bindings ()
 void
 Translator_group::precomputed_translator_foreach (Translator_precompute_index idx)
 {
-  std::vector<Translator_method_binding> &bindings (precomputed_method_bindings_[idx]);
+  vector<Translator_method_binding> &bindings (precomputed_method_bindings_[idx]);
   for (vsize i = 0; i < bindings.size (); i++)
     bindings[i].invoke ();
 }
index a0dd3d0c2c0ce82c63526b7fc3e320e2f51fd172..391af52b4b70534ad8e49716e37d1fbf496edd4f 100644 (file)
@@ -159,12 +159,12 @@ Translator::print_smob (SCM s, SCM port, scm_print_state *)
 void
 add_acknowledger (Engraver_void_function_engraver_grob_info ptr,
                  char const *func_name,
-                 std::vector<Acknowledge_information> *ack_array)
+                 vector<Acknowledge_information> *ack_array)
 {
   Acknowledge_information inf;
   inf.function_ = ptr;
 
-  std::string interface_name (func_name);
+  string interface_name (func_name);
 
   interface_name = replace_all (interface_name, '_', '-');
   interface_name += "-interface";
@@ -174,7 +174,7 @@ add_acknowledger (Engraver_void_function_engraver_grob_info ptr,
 }
 
 Engraver_void_function_engraver_grob_info
-generic_get_acknowledger (SCM sym, std::vector<Acknowledge_information> const *ack_array)
+generic_get_acknowledger (SCM sym, vector<Acknowledge_information> const *ack_array)
 {
   for (vsize i = 0; i < ack_array->size (); i++)
     {
index a457ac4cc6257e446df4765be64c07b46d8d247e..82bc78dce28f2614fa85ab8b41b9c2e849915cfe 100644 (file)
@@ -86,7 +86,7 @@ print_header (void *out, FT_Face face)
 #define CHUNKSIZE 65534
 
 static void
-print_body (void *out, std::string name)
+print_body (void *out, string name)
 {
   FILE *fd = fopen (name.c_str (), "rb");
 
@@ -152,7 +152,7 @@ print_trailer (void *out,
 }
 
 static void
-create_type42_font (void *out, std::string name)
+create_type42_font (void *out, string name)
 {
   FT_Face face = open_ft_face (name);
 
@@ -170,7 +170,7 @@ LY_DEFINE (ly_ttf_ps_name, "ly:ttf-ps-name",
 {
   SCM_ASSERT_TYPE (scm_is_string (ttf_file_name), ttf_file_name,
                   SCM_ARG1, __FUNCTION__, "string");
-  std::string file_name = ly_scm2string (ttf_file_name);
+  string file_name = ly_scm2string (ttf_file_name);
   if (be_verbose_global)
     progress_indication ("[" + file_name);
 
@@ -196,7 +196,7 @@ LY_DEFINE (ly_ttf_to_pfa, "ly:ttf->pfa",
   SCM_ASSERT_TYPE (scm_is_string (ttf_file_name), ttf_file_name,
                   SCM_ARG1, __FUNCTION__, "string");
 
-  std::string file_name = ly_scm2string (ttf_file_name);
+  string file_name = ly_scm2string (ttf_file_name);
   if (be_verbose_global)
     progress_indication ("[" + file_name);
 
index 7d532f92918ace8b2fcb087b24ae2110c661b09b..97b1e7c3eceb5b1e07c723a0e0c3764437aae2f9 100644 (file)
@@ -72,7 +72,7 @@ flatten_number_pair_property (Grob *me,
 
 
 Grob *
-Tuplet_bracket::parallel_beam (Grob *me_grob, Link_array__Grob_ const &cols, bool *equally_long)
+Tuplet_bracket::parallel_beam (Grob *me_grob, vector<Grob*> const &cols, bool *equally_long)
 {
   Spanner *me = dynamic_cast<Spanner *> (me_grob);
 
@@ -521,7 +521,7 @@ Tuplet_bracket::calc_position_and_height (Grob *me_grob, Real *offset, Real *dy)
   Real x0 = robust_relative_extent (lgr, commonx, X_AXIS)[LEFT];
   Real x1 = robust_relative_extent (rgr, commonx, X_AXIS)[RIGHT];
 
-  std::vector<Offset> points;
+  vector<Offset> points;
   points.push_back (Offset (x0 - x0, staff[dir]));
   points.push_back (Offset (x1 - x0, staff[dir]));
 
index 2845d4c445a823063346b14438b7c0118cf5d1b8..0d0966899cf138f1348cf42684a83cf5f7d04287 100644 (file)
@@ -40,8 +40,8 @@ public:
   TRANSLATOR_DECLARATIONS (Tuplet_engraver);
 
 protected:
-  std::vector<Tuplet_description> tuplets_;
-  Link_array__Spanner_ last_tuplets_;
+  vector<Tuplet_description> tuplets_;
+  vector<Spanner*> last_tuplets_;
   DECLARE_ACKNOWLEDGER (note_column);
   virtual bool try_music (Music *r);
   virtual void finalize ();
index 46078a6ad2d3e3f9bc1d8808962bc4284a0ac6a3..22c42c1cd218e7eb8a75b1c416743efd0bbfde9d 100644 (file)
@@ -34,7 +34,7 @@ private:
                               int context_info, int delta_pitch);
   bool is_stacked_head (int prefix_set,
                        int context_info);
-  Real align_heads (std::vector<Grob_info> primitives,
+  Real align_heads (vector<Grob_info> primitives,
                    Real flexa_width,
                    Real thickness);
 
@@ -44,7 +44,7 @@ public:
 protected:
   virtual Spanner *create_ligature_spanner ();
   virtual void transform_heads (Spanner *ligature,
-                               std::vector<Grob_info> primitives);
+                               vector<Grob_info> primitives);
 };
 
 Vaticana_ligature_engraver::Vaticana_ligature_engraver ()
@@ -145,7 +145,7 @@ Vaticana_ligature_engraver::need_extra_horizontal_space (int prev_prefix_set, in
 }
 
 Real
-Vaticana_ligature_engraver::align_heads (std::vector<Grob_info> primitives,
+Vaticana_ligature_engraver::align_heads (vector<Grob_info> primitives,
                                         Real flexa_width,
                                         Real thickness)
 {
@@ -200,7 +200,7 @@ Vaticana_ligature_engraver::align_heads (std::vector<Grob_info> primitives,
                                        "ignoring grob");
          continue;
        }
-      std::string glyph_name = ly_scm2string (glyph_name_scm);
+      string glyph_name = ly_scm2string (glyph_name_scm);
 
       int delta_pitch = 0;
       if (prev_primitive) /* urgh, need prev_primitive only here */
@@ -343,7 +343,7 @@ check_for_prefix_loss (Item *primitive)
     = scm_to_int (primitive->get_property ("prefix-set"));
   if (prefix_set & ~PES_OR_FLEXA)
     {
-      std::string prefs = Gregorian_ligature::prefixes_to_str (primitive);
+      string prefs = Gregorian_ligature::prefixes_to_str (primitive);
       primitive->warning (_f ("ignored prefix (es) `%s' of this head according "
                              "to restrictions of the selected ligature style",
                              prefs.c_str ()));
@@ -352,7 +352,7 @@ check_for_prefix_loss (Item *primitive)
 
 void
 Vaticana_ligature_engraver::transform_heads (Spanner *ligature,
-                                            std::vector<Grob_info> primitives)
+                                            vector<Grob_info> primitives)
 {
   Real flexa_width = robust_scm2double (ligature->get_property ("flexa-width"), 2);
 
@@ -362,7 +362,7 @@ Vaticana_ligature_engraver::transform_heads (Spanner *ligature,
   int prev_prefix_set = 0;
   int prev_context_info = 0;
   int prev_delta_pitch = 0;
-  std::string prev_glyph_name = "";
+  string prev_glyph_name = "";
   for (vsize i = 0; i < primitives.size (); i++)
     {
       Item *primitive = dynamic_cast<Item *> (primitives[i].grob ());
@@ -397,7 +397,7 @@ Vaticana_ligature_engraver::transform_heads (Spanner *ligature,
        * this decision must be made here in the engraver rather than in
        * the backend).
        */
-      std::string glyph_name;
+      string glyph_name;
       if (prefix_set & VIRGA)
        {
          glyph_name = "vaticana.punctum";
index 76e3162e41957dfe4f241097539ff8049646e13f..85e88b51ed2fcaacae0f4b1a2a65b81a28021f9d 100644 (file)
@@ -197,7 +197,7 @@ vaticana_brew_primitive (Grob *me)
       return Stencil ();
     }
 
-  std::string glyph_name = ly_scm2string (glyph_name_scm);
+  string glyph_name = ly_scm2string (glyph_name_scm);
 
   Stencil out;
   Real thickness = robust_scm2double (me->get_property ("thickness"), 1);
index d6f9ef5486b5219735df1def26cd89c873784758..8b8d04ea0cb8cc6cbab90c8b81f11828bcfe9ac6 100644 (file)
@@ -98,7 +98,7 @@ Vertical_align_engraver::acknowledge_axis_group (Grob_info i)
 {
   if (qualifies (i))
     {
-      std::string id = i.context ()->id_string ();
+      string id = i.context ()->id_string ();
 
       scm_hash_set_x (id_to_group_hashtab_, scm_makfrom0str (id.c_str ()),
                      i.grob ()->self_scm ());
@@ -117,7 +117,7 @@ Vertical_align_engraver::acknowledge_axis_group (Grob_info i)
       if (before_grob || after_grob)
        {
          Grob_array *ga = unsmob_grob_array (valign_->get_object ("elements"));
-         Link_array__Grob_ &arr = ga->array_reference ();
+         vector<Grob*> &arr = ga->array_reference ();
 
          Grob *added = arr.back ();
          arr.pop_back ();
index 561f0830f8ac02dc505725d000eb45e48630de9f..03137d1b12cc6f09af2fcb05ceb51cfd8266e710 100644 (file)
@@ -119,7 +119,7 @@ Volta_bracket_interface::after_line_breaking (SCM smob)
   Grob *endbar = bars.size () ? bars.back () : 0;
   SCM glyph = endbar ? endbar->get_property ("glyph") : SCM_EOL;
 
-  std::string str;
+  string str;
   if (scm_is_string (glyph))
     str = ly_scm2string (glyph);
   else
index 8ff30631ea07a41e82ce0d0b38ede910cf5066a0..31f6295410f8cc5478850d88c0a6084776413105 100644 (file)
@@ -84,7 +84,7 @@ Volta_repeat_iterator::next_element (bool side_effect)
     {
       if (alt_count_)
        {
-         std::string repstr = to_string (rep_count_ - alt_count_ + done_count_) + ".";
+         string repstr = to_string (rep_count_ - alt_count_ + done_count_) + ".";
          if (done_count_ > 1)
            {
              add_repeat_command (scm_list_n (ly_symbol2scm ("volta"), SCM_BOOL_F, SCM_UNDEFINED));