public:
static string pad_to (string s, size_t length);
static string bool_string (bool b);
- static string bin2dec (string bin_string);
static string bin2hex (Byte bin_char);
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 string double_string (double f, char const *fmt = 0);
static string form_string (char const *format, ...) __attribute__ ((format (printf, 1, 2)));
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 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);
{
public:
TRANSLATOR_DECLARATIONS (Bar_engraver);
- void request_bar (string type_string);
protected:
void stop_translation_timestep ();
DECLARE_SCHEME_CALLBACK (pure_height, (SCM, SCM, SCM));
DECLARE_GROB_INTERFACE ();
- static string get_fontcharname (string style, int alteration);
static SCM get_stencil (Grob *me);
};
Font_metric ();
};
-int get_encoded_index (Font_metric *m, string input_coding, int code);
-
DECLARE_UNSMOB (Font_metric, metrics);
char *pfb2pfa (Byte const *pfb, int length);
private:
int lookup_keyword (string);
int scan_bare_word (string);
- SCM scan_markup_word (string);
int scan_escaped_word (string);
int scan_shorthand (string);
int scan_scm_id (SCM);
void do_scores ();
void clear_scores ();
void add_score (Score *s);
-void set_default_output (string s);
-string find_file (string);
void call_constructors ();
vector<string> get_inclusion_names ();
void set_inclusion_names (vector<string>);
Box get_indexed_char_dimensions (size_t) const;
Box get_unscaled_indexed_char_dimensions (size_t) const;
size_t name_to_index (string) const;
- //size_t glyph_name_to_charcode (string) const;
size_t index_to_charcode (size_t) const;
void derived_mark () const;
SCM sub_fonts () const;
SCM scheme_to_string (SCM);
};
-Paper_outputter *get_paper_outputter (string, string);
DECLARE_UNSMOB (Paper_outputter, outputter);
#endif /* PAPER_OUTPUTTER_HH */
+++ /dev/null
-/*
- This file is part of LilyPond, the GNU music typesetter.
-
- Copyright (C) 2001--2012 Han-Wen Nienhuys <hanwen@xs4all.nl>
-
- LilyPond is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- LilyPond is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#ifndef STREAM_HH
-#define STREAM_HH
-
-#include "std-string.hh"
-
-#include <iostream>
-#include <sstream>
-using namespace std;
-
-#if __GNUC__ > 2
-ostream *open_file_stream (string file_name,
- ios_base::openmode mode = ios::out);
-#else
-ostream *open_file_stream (string file_name, int mode = ios::out);
-#endif
-void close_file_stream (ostream *os);
-
-#endif /* STREAM_HH */
-
#include "midi-chunk.hh"
#include "misc.hh"
#include "program-option.hh"
-#include "stream.hh"
#include "string-convert.hh"
#include "warn.hh"