X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fbinary-source-file.cc;h=90d4a4ac02a10ee3a61501d32cd53694e2dd4fb7;hb=986aa8f8974e54c701bed0be54a2b042aecec820;hp=54771a6f9cbee93d9e3f3bcb8169a7dccaaf4f40;hpb=4ed643022880d554ff6faaf44389ef24aa7281cf;p=lilypond.git diff --git a/lily/binary-source-file.cc b/lily/binary-source-file.cc index 54771a6f9c..90d4a4ac02 100644 --- a/lily/binary-source-file.cc +++ b/lily/binary-source-file.cc @@ -3,21 +3,17 @@ source file of the LilyPond music typesetter - (c) 1997--2002 Jan Nieuwenhuizen + (c) 1997--2006 Jan Nieuwenhuizen */ +#include // INT_MAX +using namespace std; -#include // INT_MAX -#include - -#include "flower-proto.hh" -#include "string.hh" -#include "source-file.hh" #include "binary-source-file.hh" #include "string-convert.hh" -Binary_source_file::Binary_source_file (String& filename_string) - : Source_file (filename_string) +Binary_source_file::Binary_source_file (string &file_name_string) + : Source_file (file_name_string) { } @@ -25,48 +21,49 @@ Binary_source_file::~Binary_source_file () { } -String -Binary_source_file::error_string (char const* pos_str0) const +string +Binary_source_file::quote_input (char const *pos_str0) const { assert (this); - if (!in_b (pos_str0)) + if (!contains (pos_str0)) return ""; - char const* begin_str0 = pos_str0 - 8 >? to_str0 (); - char const* end_str0 = pos_str0 + 7