Changeset 5478 for trunk/src


Ignore:
Timestamp:
Apr 4, 2001, 4:20:32 PM (24 years ago)
Author:
sandervl
Message:

Removed WideCharToLocal & LocalToWideChar

Location:
trunk/src/kernel32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/KERNEL32.DEF

    r5471 r5478  
    1 ; $Id: KERNEL32.DEF,v 1.103 2001-04-04 09:00:57 sandervl Exp $
     1; $Id: KERNEL32.DEF,v 1.104 2001-04-04 14:20:32 sandervl Exp $
    22
    33;Basis is Windows95 KERNEL32
     
    10891089    HEAP_strdupA               = _HEAP_strdupA@12                 @1247 NONAME
    10901090    HEAP_strdupW               = _HEAP_strdupW@12                 @1248 NONAME
    1091     WideCharToLocal            = _WideCharToLocal@12              @1249 NONAME
    1092     LocalToWideChar            = _LocalToWideChar@12              @1250 NONAME
    10931091
    10941092    _VIRTUAL_MapFileA@12                                          @1251 NONAME
  • trunk/src/kernel32/heapstring.cpp

    r5476 r5478  
    1 /* $Id: heapstring.cpp,v 1.38 2001-04-04 10:48:05 sandervl Exp $ */
     1/* $Id: heapstring.cpp,v 1.39 2001-04-04 14:20:32 sandervl Exp $ */
    22
    33/*
     
    814814
    815815
    816 /*****************************************************************************
    817  * Name      : WideCharToLocal
    818  * Purpose   : similar lstrcpyWtoA, should handle codepages properly
    819  * Parameters:
    820  * Variables :
    821  * Result    : strlen of the destination string
    822  * Remark    :
    823  * Status    :
    824  *
    825  * Author    : Patrick Haller [Thu, 1999/08/05 20:46]
    826  *****************************************************************************/
    827 
    828 INT WIN32API WideCharToLocal(LPSTR pLocal, LPWSTR pWide, INT dwChars)
    829 {
    830   dprintf2(("KERNEL32: WideCharToLocal(%08xh,%08xh,%08xh)\n",
    831            pLocal,
    832            pWide,
    833            dwChars));
    834 
    835   *pLocal = 0;
    836   WideCharToMultiByte(CP_ACP,
    837                       0,
    838                       pWide,
    839                       -1,
    840                       pLocal,
    841                       dwChars,
    842                       NULL,
    843                       NULL);
    844 
    845   return strlen(pLocal);
    846 }
    847 
    848 
    849 /*****************************************************************************
    850  * Name      : LocalToWideChar
    851  * Purpose   : similar lstrcpyAtoW, should handle codepages properly
    852  * Parameters:
    853  * Variables :
    854  * Result    : strlen of the destination string
    855  * Remark    :
    856  * Status    :
    857  *
    858  * Author    : Patrick Haller [Thu, 1999/08/05 20:46]
    859  *****************************************************************************/
    860 
    861 INT WIN32API LocalToWideChar(LPWSTR pWide, LPSTR pLocal, INT dwChars)
    862 {
    863   *pWide = 0;
    864 
    865   dprintf2(("KERNEL32: LocalToWideChar(%08xh,%08xh,%08xh)\n",
    866            pLocal,
    867            pWide,
    868            dwChars));
    869 
    870   MultiByteToWideChar(CP_ACP,
    871                       0,
    872                       pLocal,
    873                       -1,
    874                       pWide,
    875                       dwChars);
    876 
    877   return lstrlenW(pWide);
    878 }
    879 
    880 
    881 
     816
     817
Note: See TracChangeset for help on using the changeset viewer.