Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/tools/jam/src/strings.h @ 29

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
10typedef 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
21void string_new( string* );
22void string_copy( string*, char const* );
23void string_free( string* );
24void string_append( string*, char const* );
25void string_append_range( string*, char const*, char const* );
26void string_push_back( string* s, char x );
27void string_reserve( string*, size_t );
28void string_truncate( string*, size_t );
29void string_pop_back( string* );
30char string_back( string* );
31void string_unit_test();
32
33#endif
34
Note: See TracBrowser for help on using the repository browser.