1 #ifndef STRINGS_DWA20011024_H
2 # define STRINGS_DWA20011024_H
4 /* Copyright David Abrahams 2004. Distributed under the Boost */
5 /* Software License, Version 1.0. (See accompanying */
6 /* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */
13 unsigned long capacity
;
21 void KStringNew (TKString
*s
);
22 void KStringFree (TKString
*s
);
23 void KStringReserve (TKString
*self
, size_t capacity
);
24 void KStringAppend (TKString
*self
, char const *rhs
);
25 void KStringAppendRange (TKString
*self
, char const *start
, char const *finish
);
26 void KStringCopy (TKString
*s
, char const *rhs
);
27 void KStringTruncate (TKString
*self
, size_t n
);
28 void KStringPopBack (TKString
*self
);
29 void KStringPushBack (TKString
*self
, char x
);
30 char KStringBack (TKString
*self
);
33 void KStringUnitTest ();