Changeset 16017


Ignore:
Timestamp:
Apr 3, 2001, 7:45:54 PM (24 years ago)
Author:
sandervl
Message:

header updates

Location:
tags/trunk/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified tags/trunk/include/heapstring.h

    r14982 r16017  
    1 /* $Id: heapstring.h,v 1.12 2000-10-03 19:21:43 sandervl Exp $ */
     1/* $Id: heapstring.h,v 1.13 2001-04-03 17:45:54 sandervl Exp $ */
    22
    33/*
     
    1111#include <odin.h>
    1212
    13 //used by Wine code
    14 #define strcmpiW        lstrcmpiW
     13#include <wine\unicode.h>
    1514//SvL: strcase -> case insensitive!
    1615#define strncasecmp     lstrncmpiA
    1716#define strcasecmp      lstrcmpiA
    18 #define strcpyW         lstrcpyW
    19 #define strlenW         lstrlenW
    2017#define strncmpiW       lstrncmpiW
    21 #define strncmpW        lstrncmpW
    22 #define strcatW         lstrcatW
    23 #define toupperW(a)     (WCHAR)CharUpperW((LPWSTR)a)
    24 #define tolowerW(a)     (WCHAR)CharLowerW((LPWSTR)a)
    2518#define _strlwr(a)      strlwr(a)
    2619
  • TabularUnified tags/trunk/include/win/wine/unicode.h

    r16014 r16017  
    88#define __WINE_UNICODE_H
    99
    10 #include "windef.h"
    11 #ifndef USE_INLINE_UNICODEFUNCS
    12 #include <heapstring.h>
     10#ifndef OS2_INCLUDED
     11#include <windef.h>
    1312#endif
    1413
     
    7069}
    7170
    72 #ifdef USE_INLINE_UNICODEFUNCS
    7371static inline WCHAR tolowerW( WCHAR ch )
    7472{
     
    8280    return ch + casemap_upper[casemap_upper[ch >> 8] + (ch & 0xff)];
    8381}
    84 #endif
    8582
    8683/* the character type contains the C1_* flags in the low 12 bits */
     
    9491/* some useful string manipulation routines */
    9592
    96 #ifdef USE_INLINE_UNICODEFUNCS
    9793static inline unsigned int strlenW( const WCHAR *str )
    9894{
     
    127123#else
    128124    WCHAR *p = dst;
    129     while ((*p++ = *src++));
     125    while(*src) {
     126       *p++ = *src++;
     127    }
    130128#endif
    131129    return dst;
     
    175173{
    176174    WCHAR *ret = str;
    177     while ((*str = tolowerW(*str))) str++;
     175    while(*str) {
     176      *str = tolowerW(*str);
     177      str++;
     178    }
    178179    return ret;
    179180}
     
    182183{
    183184    WCHAR *ret = str;
    184     while ((*str = toupperW(*str))) str++;
     185    while(*str) {
     186      *str = toupperW(*str);
     187      str++;
     188    }
    185189    return ret;
    186190}
    187 #endif
    188191
    189192extern int strcmpiW( const WCHAR *str1, const WCHAR *str2 );
Note: See TracChangeset for help on using the changeset viewer.