Ignore:
Timestamp:
Sep 2, 2007, 9:30:58 PM (18 years ago)
Author:
bird
Message:

Generic kHlpString.h implementation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kStuff/include/k/kHlpString.h

    r3573 r3574  
    7272
    7373#ifndef kHlpMemChr
    74 void   *kHlpMemChr(const void *pv, int ch, KSIZE cb);
     74KHLP_DECL(void *)   kHlpMemChr(const void *pv, int ch, KSIZE cb);
    7575#endif
    7676#ifndef kHlpMemComp
    77 int     kHlpMemComp(const void *pv1, const void *pv2, KSIZE cb);
     77KHLP_DECL(int)      kHlpMemComp(const void *pv1, const void *pv2, KSIZE cb);
     78#endif
     79#ifndef kHlpMemComp
     80KHLP_DECL(void *)   kHlpMemPComp(const void *pv1, const void *pv2, KSIZE cb);
    7881#endif
    7982#ifndef kHlpMemCopy
    80 void   *kHlpMemCopy(void *pv1, const void *pv2, KSIZE cb);
     83KHLP_DECL(void *)   kHlpMemCopy(void *pv1, const void *pv2, KSIZE cb);
     84#endif
     85#ifndef kHlpMemPCopy
     86KHLP_DECL(void *)   kHlpMemPCopy(void *pv1, const void *pv2, KSIZE cb);
    8187#endif
    8288#ifndef kHlpMemMove
    83 void   *kHlpMemMove(void *pv1, const void *pv2, KSIZE cb);
     89KHLP_DECL(void *)   kHlpMemMove(void *pv1, const void *pv2, KSIZE cb);
     90#endif
     91#ifndef kHlpMemPMove
     92KHLP_DECL(void *)   kHlpMemPMove(void *pv1, const void *pv2, KSIZE cb);
    8493#endif
    8594#ifndef kHlpMemSet
    86 void   *kHlpMemSet(void *pv1, int ch, KSIZE cb);
     95KHLP_DECL(void *)   kHlpMemSet(void *pv1, int ch, KSIZE cb);
    8796#endif
    88 int     kHlpMemIComp(const void *pv1, const void *pv2, KSIZE cb);
     97#ifndef kHlpMemPSet
     98KHLP_DECL(void *)   kHlpMemPSet(void *pv1, int ch, KSIZE cb);
     99#endif
     100KHLP_DECL(int)      kHlpMemICompAscii(const void *pv1, const void *pv2, KSIZE cb);
    89101
    90102#ifndef kHlpStrCat
    91 char   *kHlpStrCat(char *psz1, const char *psz2);
     103KHLP_DECL(char *)   kHlpStrCat(char *psz1, const char *psz2);
     104#endif
     105#ifndef kHlpStrPCat
     106KHLP_DECL(char *)   kHlpStrPCat(char *psz1, const char *psz2);
    92107#endif
    93108#ifndef kHlpStrNCat
    94 char   *kHlpStrNCat(char *psz1, const char *psz2, KSIZE cb);
     109KHLP_DECL(char *)   kHlpStrNCat(char *psz1, const char *psz2, KSIZE cb);
     110#endif
     111#ifndef kHlpStrPNCat
     112KHLP_DECL(char *)   kHlpStrNPCat(char *psz1, const char *psz2, KSIZE cb);
    95113#endif
    96114#ifndef kHlpStrChr
    97 char   *kHlpStrChr(const char *psz, int ch);
     115KHLP_DECL(char *)   kHlpStrChr(const char *psz, int ch);
    98116#endif
    99117#ifndef kHlpStrRChr
    100 char   *kHlpStrRChr(const char *psz, int ch);
     118KHLP_DECL(char *)   kHlpStrRChr(const char *psz, int ch);
    101119#endif
    102120#ifndef kHlpStrComp
    103 int     kHlpStrComp(const char *psz1, const char *psz2);
     121KHLP_DECL(int)      kHlpStrComp(const char *psz1, const char *psz2);
    104122#endif
     123KHLP_DECL(char *)   kHlpStrPComp(const char *psz1, const char *psz2);
    105124#ifndef kHlpStrNComp
    106 int     kHlpStrNComp(const char *psz1, const char *psz2, KSIZE cch);
     125KHLP_DECL(int)      kHlpStrNComp(const char *psz1, const char *psz2, KSIZE cch);
    107126#endif
     127KHLP_DECL(char *)   kHlpStrNPComp(const char *psz1, const char *psz2, KSIZE cch);
     128KHLP_DECL(int)      kHlpStrICompAscii(const char *pv1, const char *pv2);
     129KHLP_DECL(char *)   kHlpStrIPCompAscii(const char *pv1, const char *pv2);
     130KHLP_DECL(int)      kHlpStrNICompAscii(const char *pv1, const char *pv2, KSIZE cch);
     131KHLP_DECL(char *)   kHlpStrNIPCompAscii(const char *pv1, const char *pv2, KSIZE cch);
    108132#ifndef kHlpStrCopy
    109 char   *kHlpStrCopy(char *psz1, const char *psz2);
     133KHLP_DECL(char *)   kHlpStrCopy(char *psz1, const char *psz2);
    110134#endif
    111 #ifndef kHlpStrNCopy
    112 char   *kHlpStrNCopy(char *psz1, const char *psz2, KSIZE cb);
     135#ifndef kHlpStrPCopy
     136KHLP_DECL(char *)   kHlpStrPCopy(char *psz1, const char *psz2);
    113137#endif
    114138#ifndef kHlpStrLen
    115 KSIZE   kHlpStrLen(const char *psz1);
     139KHLP_DECL(KSIZE)    kHlpStrLen(const char *psz1);
    116140#endif
    117 KSIZE   kHlpStrNLen(const char *psz, KSIZE cchMax);
    118 int     kHlpStrIComp(const char *pv1, const char *pv2);
     141#ifndef kHlpStrNLen
     142KHLP_DECL(KSIZE)    kHlpStrNLen(const char *psz, KSIZE cchMax);
     143#endif
    119144
    120145KHLP_DECL(char *)   kHlpInt2Ascii(char *psz, KSIZE cch, long lVal, unsigned iBase);
Note: See TracChangeset for help on using the changeset viewer.