]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/include/string.icc
release: 1.5.19
[lilypond.git] / flower / include / string.icc
index 3bdbb0336e5ff3df41e64d07ae641aa5b6a0f590..8ce2211a798c5c7b39d06105916c8d9944207075 100644 (file)
@@ -3,7 +3,7 @@
   
   source file of the Flower Library
   
-  (c)  1997--1998 Han-Wen Nienhuys <hanwen@stack.nl>
+  (c)  1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
   
  */
 
 
 INLINE 
 char &
-String::operator [](int n)
+String::operator [] (int n)
 {
   return (char &) strh_[n]; 
 }
 
 INLINE 
 char 
-String::operator [](int n) const
+String::operator [] (int n) const
 {
   return strh_[n]; 
 }
@@ -30,6 +30,12 @@ String::String ()
 {
 }
 
+INLINE
+String::String (char const* source)
+{   
+  assert (source);    
+  strh_ = source;    
+}
 
 
 #endif /* STRING_ICC */