Last change
on this file since 29 was
29,
checked in by landauf, 17 years ago
|
updated boost from 1_33_1 to 1_34_1
|
File size:
871 bytes
|
Line | |
---|
1 | #ifndef STRINGS_DWA20011024_H |
---|
2 | # define STRINGS_DWA20011024_H |
---|
3 | |
---|
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) */ |
---|
7 | |
---|
8 | # include <stddef.h> |
---|
9 | |
---|
10 | typedef struct string |
---|
11 | { |
---|
12 | char* value; |
---|
13 | unsigned long size; |
---|
14 | unsigned long capacity; |
---|
15 | char opt[32]; |
---|
16 | #ifndef NDEBUG |
---|
17 | char magic[4]; |
---|
18 | #endif |
---|
19 | } string; |
---|
20 | |
---|
21 | void string_new( string* ); |
---|
22 | void string_copy( string*, char const* ); |
---|
23 | void string_free( string* ); |
---|
24 | void string_append( string*, char const* ); |
---|
25 | void string_append_range( string*, char const*, char const* ); |
---|
26 | void string_push_back( string* s, char x ); |
---|
27 | void string_reserve( string*, size_t ); |
---|
28 | void string_truncate( string*, size_t ); |
---|
29 | void string_pop_back( string* ); |
---|
30 | char string_back( string* ); |
---|
31 | void string_unit_test(); |
---|
32 | |
---|
33 | #endif |
---|
34 | |
---|
Note: See
TracBrowser
for help on using the repository browser.