/[gentoo-alt]/trunk/toolchain-prefix-wrapper/utils/stringutil.h
Gentoo

Contents of /trunk/toolchain-prefix-wrapper/utils/stringutil.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1591 - (show annotations) (download) (as text)
Fri Nov 2 10:58:02 2007 UTC (7 years, 1 month ago) by haubi
File MIME type: text/x-chdr
File size: 2281 byte(s)
initial import of toolchain-prefix-wrapper

1 /*
2 * Copyright 2007 Gentoo Foundation
3 * Distributed under the terms of the GNU General Public License v2
4 * Author: Michael Haubenwallner <haubi@gentoo.org>
5 */
6
7 #if !defined(_STRINGUTIL_H_)
8 #define _STRINGUTIL_H_
9
10 #include <stdarg.h>
11
12 #if defined(__cplusplus)
13 extern "C" {
14 #endif
15
16 typedef struct _String String;
17
18 extern int StringGetLength(String *string);
19 extern char const* StringGetBuffer(String *string);
20 extern String* StringDestroy(String *string);
21 extern String* StringCreateVaConcat(char const *text, int length, va_list ap);
22 extern String* StringCreateConcat(char const *text, int length, ...);
23 extern String* StringDup(String* origin);
24 extern void StringCopy(String* target, String* source);
25 extern int StringAppendVaConcat(String *string, char const *text, int length, va_list ap);
26 extern int StringAppendConcat(String *string, char const *text, int length, ...);
27 extern int StringIsEqual(String *string, int at, char const *start, int length);
28
29 typedef struct _StringList StringList;
30
31 extern int StringListGetSize(StringList *list);
32 extern String *StringListGetString(StringList *list, int index);
33 extern StringList *StringListDestroy(StringList *list);
34 extern int StringListAppendString(StringList *list, String *string);
35 extern int StringListAppendListModify(StringList *list, StringList *input, int start, int count
36 , char const *front, int frontLength
37 , char const *back, int backLength);
38 extern int StringListAppendList(StringList *list, StringList *input, int start, int count);
39 extern StringList *StringListCreate(StringList *input, int start, int count);
40 extern char **StringListToArgv(StringList *list);
41 extern int StringListAppendVaConcat(StringList* list, char const *text, int length, va_list ap);
42 extern int StringListAppendConcat(StringList* list, char const *text, int length, ...);
43 extern int StringListAppendArgv(StringList* list, int argc, char **argv);
44 extern StringList* StringListFromArgv(int argc, char *argv[]);
45 extern int StringListContains(StringList* list, char const *text, int length);
46 extern String* StringListJoin(StringList* list
47 , char const *start, int startLength
48 , char const *sep, int sepLength
49 , char const *end, int endLength);
50
51 #if defined(__cplusplus)
52 }
53 #endif
54
55 #endif /* _STRINGUTIL_H_ */

Properties

Name Value
svn:executable

  ViewVC Help
Powered by ViewVC 1.1.20