Changeset 12 for trunk/include
- Timestamp:
- Nov 4, 2000, 8:55:45 PM (25 years ago)
- Location:
- trunk/include/helpers
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/helpers/stringh.h
r7 r12 59 59 ULONG strhStrip(PSZ psz); 60 60 61 PSZ strhins(const char *pcszBuffer, 62 ULONG ulInsertOfs, 63 const char *pcszInsert); 64 65 ULONG strhrpl(PSZ *ppszBuf, 66 ULONG ulOfs, 67 const char *pcszSearch, 68 const char *pcszReplace, 69 PULONG pulAfterOfs); 70 61 71 ULONG strhWords(PSZ psz); 62 72 … … 101 111 PSZ strhFindNextLine(PSZ pszSearchIn, PULONG pulOffset); 102 112 103 PSZ strhFindKey(PSZ pszSearchIn, 104 PSZ pszKey, 105 BOOL *pfIsAllUpperCase); 106 107 PSZ strhGetParameter(PSZ pszSearchIn, PSZ pszKey, PSZ pszCopyTo, ULONG cbCopyTo); 108 109 PSZ strhSetParameter(PSZ* ppszSearchIn, 110 PSZ pszKey, 113 PSZ strhFindKey(const char *pcszSearchIn, 114 const char *pcszKey, 115 PBOOL pfIsAllUpperCase); 116 117 PSZ strhGetParameter(const char *pcszSearchIn, 118 const char *pcszKey, 119 PSZ pszCopyTo, 120 ULONG cbCopyTo); 121 122 PSZ strhSetParameter(PSZ* ppszBuf, 123 const char *pcszKey, 111 124 PSZ pszNewParam, 112 125 BOOL fRespectCase); -
trunk/include/helpers/textview.h
r7 r12 19 19 * GNU General Public License for more details. 20 20 * 21 *@@include #define INCL_SPL // for printing functions21 *@@include #define INCL_SPL // for printing functions 22 22 *@@include #include <os2.h> 23 *@@include #include "linklist.h" // for device-independent functions 23 *@@include #include "linklist.h" // for device-independent functions 24 *@@include #include "xstring.h" // for device-independent functions 24 25 *@@include #include "textview.h" 25 26 */ … … 329 330 330 331 #ifdef LINKLIST_HEADER_INCLUDED 332 #ifdef XSTRING_HEADER_INCLUDED 331 333 332 334 /* … … 340 342 { 341 343 // input to txvFormatText 342 PSZ pszViewText; // original view text344 XSTRING strViewText; // original view text 343 345 // from WinSetWindowText 344 346 … … 371 373 PRECTL prclView, 372 374 BOOL fFullRecalc); 373 375 #endif 374 376 #endif 375 377 -
trunk/include/helpers/xstring.h
r7 r12 33 33 34 34 /* 35 *@@ XSTR :36 * string type for the strhx* functions.37 * That's a simple pointer to a PSZ.35 *@@ XSTRING: 36 * 37 *@@added V0.9.6 (2000-11-01) [umoeller] 38 38 */ 39 39 40 typedef PSZ* XSTR; 40 typedef struct _XSTRING 41 { 42 PSZ psz; // ptr to string or NULL 43 ULONG ulLength; // length of *psz 44 ULONG cbAllocated; // memory allocated in *psz 45 // (>= ulLength + 1) 46 } XSTRING, *PXSTRING; 47 48 void xstrInit(PXSTRING pxstr, 49 ULONG ulPreAllocate); 50 51 void xstrInitSet(PXSTRING pxstr, 52 PSZ pszNew); 53 54 void xstrInitCopy(PXSTRING pxstr, 55 const char *pcszSource); 56 57 void xstrClear(PXSTRING pxstr); 58 59 PXSTRING xstrCreate(ULONG ulPreAllocate); 60 61 VOID xstrFree(PXSTRING pxstr); 62 63 ULONG xstrset(PXSTRING pxstr, 64 PSZ pszNew); 65 66 ULONG xstrcpy(PXSTRING pxstr, 67 const char *pcszSource); 68 69 ULONG xstrcat(PXSTRING pxstr, 70 const char *pcszSource); 41 71 42 72 /* … … 49 79 #define xstrIsString(psz) ( (psz != 0) && (*(psz) != 0) ) 50 80 51 ULONG xstrcpy(XSTR ppszBuf, 52 const char *pszString); 81 ULONG xstrrpl(PXSTRING pxstr, 82 ULONG ulOfs, 83 const XSTRING *pstrSearch, 84 const XSTRING *pstrReplace, 85 PULONG pulAfterOfs); 53 86 54 #ifdef __XWPMEMDEBUG__ // setup.h, helpers\memdebug.c 55 ULONG xstrcatDebug(XSTR ppszBuf, 56 const char *pszString, 57 const char *file, 58 unsigned long line, 59 const char *function); 60 #define xstrcat(a, b) xstrcatDebug((a), (b), __FILE__, __LINE__, __FUNCTION__) 61 #else 62 ULONG xstrcat(XSTR ppszBuf, 63 const char *pszString); 64 #endif 65 66 #ifdef __XWPMEMDEBUG__ // setup.h, helpers\memdebug.c 67 ULONG xstrrplDebug(PSZ *ppszBuf, 68 ULONG ulOfs, 69 const char *pszSearch, 70 const char *pszReplace, 71 PULONG pulAfterOfs, 72 const char *file, 73 unsigned long line, 74 const char *function); 75 #define xstrrpl(a, b, c, d, e) xstrrplDebug((a), (b), (c), (d), (e), __FILE__, __LINE__, __FUNCTION__) 76 #else 77 ULONG xstrrpl(PSZ *ppszBuf, 78 ULONG ulOfs, 79 const char *pszSearch, 80 const char *pszReplace, 81 PULONG pulAfterOfs); 82 #endif 83 84 PSZ xstrins(PSZ pszBuffer, 85 ULONG ulInsertOfs, 86 const char *pszInsert); 87 87 ULONG xstrcrpl(PXSTRING pxstr, 88 ULONG ulOfs, 89 const char *pcszSearch, 90 const char *pcszReplace, 91 PULONG pulAfterOfs); 88 92 #endif 89 93
Note:
See TracChangeset
for help on using the changeset viewer.