findlanabyname-20040228
[openafs.git] / src / WINNT / license / multistring.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  * 
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 #ifndef MULTISTRING_H
11 #define MULTISTRING_H
12
13
14 /*
15  * mstralloc - Allocates space for a given-length multistring
16  * mstrfree - Frees a multistring
17  * mstrwalk - Allows iterative progression along a multistring
18  * mstrlen - Returns the length of a given multistring, including all \0's
19  * mstrcount - Returns the number of entries in a given multistring
20  * mstrstr - Determines if a given substring exists in a multistring
21  * mstrcat - Adds a substring to a multistring (doesn't do any checking first)
22  * mstrdel - Removes a substring from a multistring
23  *
24  */
25
26 LPTSTR mstralloc (size_t cchMax);
27 void mstrfree (LPCTSTR msz);
28 BOOL mstrwalk (LPCTSTR msz, TCHAR chSep, LPTSTR *ppSegment, size_t *pchSegment);
29 size_t mstrlen (LPCTSTR msz, TCHAR chSep);
30 size_t mstrcount (LPCTSTR msz, TCHAR chSep);
31 BOOL mstrstr (LPCTSTR msz, TCHAR chSep, LPCTSTR pszTest);
32 BOOL mstrcat (LPTSTR *pmsz, TCHAR chSep, LPCTSTR pszAppend);
33 BOOL mstrdel (LPTSTR *pmsz, TCHAR chSep, LPCTSTR pszRemove);
34
35
36 #endif
37