source file of the LilyPond music typesetter
- (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+ (c) 1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
int references;
/// init to ""
- String_data();
+ String_data ();
/// init from src. Conservative allocation.
- String_data(String_data const &src);
+ String_data (String_data const &src);
- ~String_data();
+ ~String_data ();
/** POST: maxlen >= j.
@param j, maximum stringlength_i_.
contents thrown away.
*/
- void setmax(int j);
+ void setmax (int j);
/** POST: maxlen >= j.
@param j, maximum stringlength_i_.
contents are kept if it grows.
*/
- void remax(int j);
+ void remax (int j);
/// check if writeable.
- void OKW();
+ void OKW ();
/// check state.
- void OK();
+ void OK ();
/// reduce memory usage.
- void tighten();
+ void tighten ();
// assignment.
- void set( Byte const* byte_c_l, int length_i );
+ void set (Byte const* byte_C, int length_i);
- void set( char const* ch_c_l );
+ void set (char const* ch_C);
/// concatenation.
- void append( Byte const* byte_c_l, int length_i );
+ void append (Byte const* byte_C, int length_i);
- void operator += ( char const* ch_c_l );
+ void operator += (char const* ch_C);
- char const* ch_c_l() const;
+ char const* ch_C () const;
- char* ch_l();
+ char* ch_l ();
- Byte const* byte_c_l() const;
+ Byte const* byte_C () const;
// idem, non const
- Byte* byte_l();
+ Byte* byte_l ();
- void trunc(int j);
+ void trunc (int j);
/** access element. not really safe. Can alter length_i_ without
#String_data# knowing it. */
- Byte &operator [](int j);
- Byte operator [](int j) const;
- bool is_binary_bo()const;
+ Byte &operator [] (int j);
+ Byte operator [] (int j) const;
+ bool is_binary_bo () const;
};
#ifndef INLINE
#define INLINE inline
#endif
-#include "string-data.inl"
+#include "string-data.icc"
#endif