code/w32/string.cpp
::DWORD count ( ::UINT codepage, const char * value )
    {
        const int result = ::MultiByteToWideChar
            (codepage, 0, value, -1, 0, 0);
        if ( result == 0 ) {
            const ::DWORD error = ::GetLastError();
            UNCHECKED_WIN32C_ERROR(MultiByteToWideChar,error);
        }
        return (result);
    }
// Request the number of characters to allocate.
Request the number of characters to allocate.
Request the number of characters to allocate .
::DWORD count ( ::UINT codepage, const char * value )
    {
        const int result = ::MultiByteToWideChar
            (codepage, 0, value, -1, 0, 0);
        if ( result == 0 ) {
            const ::DWORD error = ::GetLastError();
            UNCHECKED_WIN32C_ERROR(MultiByteToWideChar,error);
        }
        return (result);
    }
:: DWORD count ( :: UINT codepage , const char * value ) { const int result = :: MultiByteToWideChar ( codepage , 0 , value , -1 , 0 , 0 ) ; if ( result == 0 ) { const :: DWORD error = :: GetLastError ( ) ; UNCHECKED_WIN32C_ERROR ( MultiByteToWideChar , error ) ; } return ( result ) ; }
Request the number of characters to allocate.
Request the number of characters to allocate .