]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/include/string-handle.icc
patch::: 1.3.136.jcn3
[lilypond.git] / flower / include / string-handle.icc
index b2404b9ed598d7e0c7221c6ed5d2f8cd9e086d7c..decb241bff747970c2dab88b15af3ffce56ecab3 100644 (file)
@@ -17,9 +17,9 @@
 #include "string-handle.hh"
 
 INLINE void 
-String_handle::down() 
+String_handle::down () 
 { 
-  if (!(--data->references)) delete data; data = 0; 
+  if (! (--data->references)) delete data; data = 0; 
 }
 
 /// increase ref count
@@ -30,26 +30,26 @@ String_handle::up (String_data *d)
 }
 
 INLINE void 
-String_handle::copy() 
+String_handle::copy () 
 {
   if (data->references !=1)
     {
       String_data *newdata = new String_data (*data);
-      down();
+      down ();
       up (newdata);
     }
 }
 
 INLINE
-String_handle::String_handle() 
+String_handle::String_handle () 
 {
   up (new String_data);
 }
 
 INLINE
-String_handle::~String_handle() 
+String_handle::~String_handle () 
 {      
-  down();
+  down ();
 }    
 
 INLINE
@@ -59,99 +59,99 @@ String_handle::String_handle (String_handle const & src)
 }
 
 INLINE Byte* 
-String_handle::byte_l() 
+String_handle::byte_l () 
 {
-  copy();
-  return data->byte_l();
+  copy ();
+  return data->byte_l ();
 }
 
 INLINE char* 
-String_handle::ch_l() 
+String_handle::ch_l () 
 {
-  copy();
-  return (char*)data->byte_l();
+  copy ();
+  return (char*)data->byte_l ();
 }
 
 INLINE Byte 
-const* String_handle::byte_C() const 
+const* String_handle::byte_C () const 
 {
-  return data->byte_C();
+  return data->byte_C ();
 }
 
 INLINE char const* 
-String_handle::ch_C() const 
+String_handle::ch_C () const 
 {
-  return (char const*)data->byte_C();
+  return (char const*)data->byte_C ();
 }
 
 INLINE void 
-String_handle::operator =(String_handle const &src) 
+String_handle::operator = (String_handle const &src) 
 {
   if (this == &src)
     return;
-  down();
+  down ();
   up (src.data);
 }
 
 INLINE void 
 String_handle::operator += (char const *s) 
 {      
-  copy();
+  copy ();
   *data += s;
 }    
 
 
 INLINE Byte 
-String_handle::operator[](int j) const 
+String_handle::operator[] (int j) const 
 { 
   return (*data)[j]; 
 }
 
 // !NOT SAFE!
-// don't use this for loops. Use byte_C()
+// don't use this for loops. Use byte_C ()
 INLINE Byte &
-String_handle::operator[](int j) 
+String_handle::operator[] (int j) 
 {
-  copy();      // hmm. Not efficient
-  return data->byte_l()[j];
+  copy ();     // hmm. Not efficient
+  return data->byte_l ()[j];
 }
 
 INLINE void 
 String_handle::append (Byte const* byte_C, int length_i) 
 {
-  copy();
+  copy ();
   data->append (byte_C, length_i);
 }
                           
 INLINE void 
 String_handle::set (Byte const* byte_C, int length_i) 
 {
-  copy();
+  copy ();
   data->set (byte_C, length_i);
 }
                           
 INLINE void 
 String_handle::operator = (char const *p) 
 {
-  copy();
+  copy ();
   data->set (p);
 }
                           
 INLINE void 
 String_handle::trunc (int j) 
 {
-  copy(); data->trunc (j); 
+  copy (); data->trunc (j); 
 }
 
 INLINE int 
-String_handle::length_i() const 
+String_handle::length_i () const 
 { 
   return data->length_i_; 
 }
 
 INLINE bool
-String_handle::is_binary_bo() const {
-  return data->is_binary_bo();
+String_handle::is_binary_bo () const {
+  return data->is_binary_bo ();
 }
 
 #endif