1 | /* Copyright (c) 2001, Stanford University
|
---|
2 | * All rights reserved.
|
---|
3 | *
|
---|
4 | * See the file LICENSE.txt for information on redistributing this software.
|
---|
5 | */
|
---|
6 |
|
---|
7 | #ifndef CR_STRING_H
|
---|
8 | #define CR_STRING_H
|
---|
9 |
|
---|
10 | #include <iprt/cdefs.h>
|
---|
11 |
|
---|
12 | RT_C_DECLS_BEGIN
|
---|
13 |
|
---|
14 | DECLEXPORT(char *) crStrdup( const char *str );
|
---|
15 | DECLEXPORT(char *) crStrndup( const char *str, unsigned int len );
|
---|
16 | DECLEXPORT(int) crStrlen( const char *str );
|
---|
17 | DECLEXPORT(int) crStrcmp( const char *str1, const char *str2 );
|
---|
18 | DECLEXPORT(int) crStrncmp( const char *str1, const char *str2, int n );
|
---|
19 | DECLEXPORT(int) crStrcasecmp( const char *str1, const char *str2 );
|
---|
20 | DECLEXPORT(void) crStrcpy( char *dst, const char *src );
|
---|
21 | DECLEXPORT(void) crStrncpy( char *dst, const char *src, unsigned int len );
|
---|
22 | DECLEXPORT(void) crStrcat( char *dst, const char *src );
|
---|
23 | DECLEXPORT(char *) crStrjoin( const char *src1, const char *src2 );
|
---|
24 | DECLEXPORT(char *) crStrjoin3( const char *src1, const char *src2, const char *src3 );
|
---|
25 | DECLEXPORT(char *) crStrstr( const char *str, const char *pat );
|
---|
26 | DECLEXPORT(char *) crStrchr( const char *str, char c );
|
---|
27 | DECLEXPORT(char *) crStrrchr( const char *str, char c );
|
---|
28 | DECLEXPORT(int) crStrToInt( const char *str );
|
---|
29 | DECLEXPORT(float) crStrToFloat( const char *str );
|
---|
30 | DECLEXPORT(char **) crStrSplit( const char *str, const char *splitstr );
|
---|
31 | DECLEXPORT(char **) crStrSplitn( const char *str, const char *splitstr, int n );
|
---|
32 | DECLEXPORT(void) crFreeStrings( char **strings );
|
---|
33 | DECLEXPORT(char *) crStrIntersect( const char *s1, const char *s2 );
|
---|
34 | DECLEXPORT(int) crIsDigit( char c );
|
---|
35 |
|
---|
36 | DECLEXPORT(void) crBytesToString( char *string, int nstring, void *data, int ndata );
|
---|
37 | DECLEXPORT(void) crWordsToString( char *string, int nstring, void *data, int ndata );
|
---|
38 |
|
---|
39 | RT_C_DECLS_END
|
---|
40 |
|
---|
41 | #endif /* CR_STRING_H */
|
---|