home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: WPS_PM / WPS_PM.zip / xfld085s.zip / helpers / stringh.h < prev    next >
C/C++ Source or Header  |  1999-02-23  |  2KB  |  62 lines

  1.  
  2. /*
  3.  * stringh.h:
  4.  *      header file for stringh.c. See notes there.
  5.  *
  6.  *      Copyright (C) 1997-99 Ulrich Möller.
  7.  *      This file is part of the XFolder source package.
  8.  *      XFolder is free software; you can redistribute it and/or modify
  9.  *      it under the terms of the GNU General Public License as published
  10.  *      by the Free Software Foundation, in version 2 as it comes in the
  11.  *      "COPYING" file of the XFolder main distribution.
  12.  *      This program is distributed in the hope that it will be useful,
  13.  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.  *      GNU General Public License for more details.
  16.  */
  17.  
  18. #if __cplusplus
  19. extern "C" {
  20. #endif
  21.  
  22. #ifndef STRINGH_HEADER_INCLUDED
  23.     #define STRINGH_HEADER_INCLUDED
  24.  
  25.     PSZ strhReplace(PSZ str, PSZ oldStr, PSZ newStr);
  26.  
  27.     PSZ strhInsert(PSZ out_str, PSZ in_str, PSZ to_insert, int place);
  28.  
  29.     PSZ strhistr(PSZ string1, PSZ string2);
  30.  
  31.     PSZ strhThousandsULong(PSZ pszTarget, ULONG ul, CHAR cThousands);
  32.  
  33.     PSZ strhThousandsDouble(PSZ pszTarget, double dbl, CHAR cThousands);
  34.  
  35.     VOID strhFileDate(PSZ pszBuf, FDATE* pfDate, ULONG ulDateFormat, CHAR cDateSep);
  36.  
  37.     VOID strhFileTime(PSZ pszBuf, FTIME* pfTime, ULONG ulTimeFormat, CHAR cTimeSep);
  38.  
  39.     PSZ strhFindEOL(PSZ pszSearchIn, ULONG *pulOffset);
  40.  
  41.     PSZ strhFindKey(PSZ pszSearchIn,
  42.                    PSZ pszKey,
  43.                    BOOL *pfIsAllUpperCase);
  44.  
  45.     PSZ strhGetParameter(PSZ pszSearchIn, PSZ pszKey, PSZ pszCopyTo, ULONG cbCopyTo);
  46.  
  47.     PSZ strhSetParameter(PSZ pszSearchIn,
  48.                         PSZ pszKey,
  49.                         PSZ pszNewParam,
  50.                         BOOL fRespectCase);
  51.  
  52.     BOOL strhDeleteLine(PSZ pszSearchIn, PSZ pszKey);
  53.  
  54.     BOOL strhBeautifyTitle(PSZ psz);
  55.  
  56. #endif
  57.  
  58. #if __cplusplus
  59. }
  60. #endif
  61.  
  62.