]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/include/string-handle.hh
* Another grand 2003 update.
[lilypond.git] / flower / include / string-handle.hh
index f74977cfbbb2ce281099ee94448c50ce6e31a32e..12fa77104855a4177745d9e2c6f430fd574001cf 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the LilyPond music typesetter
 
-  (c)  1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c)  1997--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 
@@ -24,7 +24,7 @@ class String_handle {
   String_data* data;
     
   /// decrease ref count. Named kind of like a Tanenbaum semafore 
-  void down();
+  void down ();
 
   /// increase ref count
   void up (String_data *d);
@@ -32,31 +32,31 @@ class String_handle {
   /** make sure data has only one reference.      
       POST: data->references == 1
   */
-  void copy();
+  void copy ();
     
 public:
-  String_handle();
-  ~String_handle();
+  String_handle ();
+  ~String_handle ();
   String_handle (String_handle const & src);
 
-  Byte const* byte_C() const;
-  char const* ch_C() const;
-  Byte* byte_l();
-  char* ch_l();    
-  bool is_binary_bo() const;
-  void operator =(String_handle const &src);
+  Byte const* to_bytes () const;
+  char const* to_str0 () const;
+  Byte* get_bytes ();
+  char* get_str0 ();    
+  bool is_binary_bo () const;
+  void operator = (String_handle const &src);
   void operator += (char const *s);
-  Byte operator[](int j) const;
+  Byte operator[] (int j) const;
 
   /** Access elements. WARNING: NOT SAFE
-      don't use this for loops. Use byte_C()
+      don't use this for loops. Use to_bytes ()
   */
-  Byte &operator[](int j);
-  void append (Byte const* byte_C, int length_i);
-  void set (Byte const* byte_C, int length_i);
+  Byte &operator[] (int j);
+  void append (Byte const* byte, int length_i);
+  void set (Byte const* byte, int length_i);
   void operator = (char const *p);
   void trunc (int j);
-  int length_i() const;
+  int length () const;
 };
 
 #ifdef STRING_UTILS_INLINED