]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/include/string-data.icc
release: 1.0.1
[lilypond.git] / flower / include / string-data.icc
index c2225782d7b9fa5217115425b4af4634f926862b..0626601a35ba37832e48ddd130e7b9df17045aeb 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of Flower lib
 
-  (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+  (c)  1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 #ifndef STRINGDATA_INL
@@ -64,12 +64,12 @@ String_data::setmax (int j)
   OKW();
   if (j > maxlen) 
     {
-       delete data_byte_p_;
-       maxlen = j;
-       data_byte_p_ = new Byte[maxlen + 1];
+      delete data_byte_p_;
+      maxlen = j;
+      data_byte_p_ = new Byte[maxlen + 1];
   
-       data_byte_p_[0] = 0;
-       length_i_ = 0;
+      data_byte_p_[0] = 0;
+      length_i_ = 0;
     }
 }
 
@@ -88,11 +88,11 @@ String_data::remax (int j)
   OKW();
   if (j > maxlen) 
     {
-       Byte *p = new Byte[j + 1];      
-       memcpy (p, data_byte_p_, ( maxlen <? length_i_) + 1 );      
-       maxlen = j;
-       delete[] data_byte_p_;
-       data_byte_p_ = p;
+      Byte *p = new Byte[j + 1];       
+      memcpy (p, data_byte_p_, (maxlen <? length_i_) + 1 );        
+      maxlen = j;
+      delete[] data_byte_p_;
+      data_byte_p_ = p;
     }
 }
 
@@ -143,7 +143,7 @@ String_data::append (Byte const* byte_C, int length_i)
 
 INLINE
 void 
-String_data::operator += ( char const* ch_C) 
+String_data::operator += (char const* ch_C) 
 {
   append ((Byte const*)ch_C, strlen (ch_C) );
 }
@@ -188,8 +188,8 @@ String_data::trunc (int j)
 INLINE bool
 String_data::is_binary_bo() const
 {
-//    return !memchr (data_byte_p_, length_i_, 0);
-  return ( (int)strlen ((char const*)data_byte_p_) != length_i_ );
+  //    return !memchr (data_byte_p_, length_i_, 0);
+  return ((int)strlen ((char const*)data_byte_p_) != length_i_ );
 }
 
 INLINE Byte&