Changeset 14 for trunk/include/helpers/xstring.h
- Timestamp:
- Dec 9, 2000, 8:19:42 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/helpers/xstring.h
r13 r14 14 14 /* 15 15 * Copyright (C) 1999-2000 Ulrich Mller. 16 * This file is part of the XWorkplacesource package.17 * XWorkplaceis free software; you can redistribute it and/or modify16 * This file is part of the "XWorkplace helpers" source package. 17 * This is free software; you can redistribute it and/or modify 18 18 * it under the terms of the GNU General Public License as published 19 19 * by the Free Software Foundation, in version 2 as it comes in the … … 32 32 #define XSTRING_HEADER_INCLUDED 33 33 34 #ifndef XWPENTRY 35 #error You must define XWPENTRY to contain the standard linkage for the XWPHelpers. 36 #endif 37 34 38 /* 35 39 *@@ XSTRING: … … 46 50 } XSTRING, *PXSTRING; 47 51 48 void xstrInit(PXSTRING pxstr, 49 ULONG ulPreAllocate); 52 void XWPENTRY xstrInit(PXSTRING pxstr, ULONG ulPreAllocate); 53 typedef void XWPENTRY XSTRINIT(PXSTRING pxstr, ULONG ulPreAllocate); 54 typedef XSTRINIT *PXSTRINIT; 50 55 51 void xstrInitSet(PXSTRING pxstr, 52 PSZ pszNew); 56 void XWPENTRY xstrInitSet(PXSTRING pxstr, PSZ pszNew); 53 57 54 void xstrInitCopy(PXSTRING pxstr, 55 const char *pcszSource); 58 void XWPENTRY xstrInitCopy(PXSTRING pxstr, const char *pcszSource); 56 59 57 void xstrClear(PXSTRING pxstr); 60 void XWPENTRY xstrClear(PXSTRING pxstr); 61 typedef void XWPENTRY XSTRCLEAR(PXSTRING pxstr); 62 typedef XSTRCLEAR *PXSTRCLEAR; 58 63 59 PXSTRING xstrCreate(ULONG ulPreAllocate);64 PXSTRING XWPENTRY xstrCreate(ULONG ulPreAllocate); 60 65 61 VOID xstrFree(PXSTRING pxstr);66 VOID XWPENTRY xstrFree(PXSTRING pxstr); 62 67 63 ULONG xstrset(PXSTRING pxstr, 64 PSZ pszNew); 68 ULONG XWPENTRY xstrset(PXSTRING pxstr, PSZ pszNew); 65 69 66 ULONG xstrcpy(PXSTRING pxstr, 67 const char *pcszSource); 70 ULONG XWPENTRY xstrcpy(PXSTRING pxstr, const char *pcszSource); 68 71 69 ULONG xstrcat(PXSTRING pxstr, 70 const char *pcszSource); 72 ULONG XWPENTRY xstrcat(PXSTRING pxstr, const char *pcszSource); 73 typedef ULONG XWPENTRY XSTRCAT(PXSTRING pxstr, const char *pcszSource); 74 typedef XSTRCAT *PXSTRCAT; 71 75 72 76 /* … … 79 83 #define xstrIsString(psz) ( (psz != 0) && (*(psz) != 0) ) 80 84 81 PSZ xstrFindWord(const XSTRING *pxstr,82 ULONG ulOfs,83 const XSTRING *pstrFind,84 size_t *pShiftTable,85 PBOOL pfRepeatFind,86 const char *pcszBeginChars,87 const char *pcszEndChars);85 PSZ XWPENTRY xstrFindWord(const XSTRING *pxstr, 86 ULONG ulOfs, 87 const XSTRING *pstrFind, 88 size_t *pShiftTable, 89 PBOOL pfRepeatFind, 90 const char *pcszBeginChars, 91 const char *pcszEndChars); 88 92 89 ULONG xstrrpl(PXSTRING pxstr,90 PULONG pulOfs,91 const XSTRING *pstrSearch,92 const XSTRING *pstrReplace,93 size_t *pShiftTable,94 PBOOL pfRepeatFind);93 ULONG XWPENTRY xstrrpl(PXSTRING pxstr, 94 PULONG pulOfs, 95 const XSTRING *pstrSearch, 96 const XSTRING *pstrReplace, 97 size_t *pShiftTable, 98 PBOOL pfRepeatFind); 95 99 96 ULONG xstrcrpl(PXSTRING pxstr,97 PULONG pulOfs,98 const char *pcszSearch,99 const char *pcszReplace);100 ULONG XWPENTRY xstrcrpl(PXSTRING pxstr, 101 PULONG pulOfs, 102 const char *pcszSearch, 103 const char *pcszReplace); 100 104 #endif 101 105
Note:
See TracChangeset
for help on using the changeset viewer.