mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.2 KiB
47 lines
1.2 KiB
//+-------------------------------------------------------------------------
|
|
//
|
|
// Copyright (C) Microsoft Corporation, 1992 - 1996
|
|
//
|
|
// File: cphash.hxx
|
|
//
|
|
// Contents: Hash table that maps strings to codepages
|
|
//
|
|
// Note: Most of this file was copied from htmlfilt/cphash.hxx with
|
|
// only minor modifications
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
class CCodePageEntry
|
|
{
|
|
public:
|
|
WCHAR const * pwcName;
|
|
ULONG ulCodePage;
|
|
};
|
|
|
|
//+-------------------------------------------------------------------------
|
|
//
|
|
// Class: CCodePageTable
|
|
//
|
|
// Purpose: Hash table that maps strings to codepages
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
|
|
class CCodePageTable
|
|
{
|
|
|
|
public:
|
|
static BOOL Lookup( WCHAR const * pwcName,
|
|
unsigned cwcName,
|
|
ULONG & ulCodePage );
|
|
|
|
private:
|
|
|
|
static int __cdecl EntryCompare( WCHAR const * pwcName,
|
|
CCodePageEntry const * pEntry );
|
|
|
|
static const unsigned _cEntries;
|
|
static const CCodePageEntry _aEntries[];
|
|
};
|
|
|