]> git.donarmstrong.com Git - lilypond.git/blob - flower/include/string.icc
* flower
[lilypond.git] / flower / include / string.icc
1 /*
2   string.icc -- implement String inlines
3
4   source file of the Flower Library
5
6   (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9 #ifndef STRING_ICC
10 #define STRING_ICC
11
12 INLINE
13 char &
14 String::operator[] (int n)
15 {
16   return (char &) strh_[n];
17 }
18
19 INLINE
20 char
21 String::operator[] (int n) const
22 {
23   return strh_[n];
24 }
25
26 INLINE
27 String::String ()
28 {
29 }
30
31 INLINE
32 String::String (char const *source)
33 {
34   assert (source);
35   strh_ = source;
36 }
37
38 #endif /* STRING_ICC */