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

Removed WideCharToLocal & LocalToWideChar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.