Leaked source code of windows server 2003
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.
 
 
 
 
 
 

69 lines
1.0 KiB

//-----------------------------------------------------------------------------
//
// File: espnls.inl
// Copyright (C) 1994-1997 Microsoft Corporation
// All rights reserved.
//
// Inline functions for the language id object. This file should ONLY be
// included by espnls.h
//
//-----------------------------------------------------------------------------
inline
LangId
CLocLangId::GetLanguageId(void)
const
{
return m_lid;
}
inline
void
CLocLangId::GetLangName(
CLString &strLangName)
const
{
LTASSERT(m_lid != 0);
strLangName = m_pLangInfo->szName;
}
inline
void
CLocLangId::GetLangShortName(
CLString &strLangShortName)
const
{
strLangShortName = m_pLangInfo->szShortName;
}
inline
int
CLocLangId::operator==(
const CLocLangId &lidOther)
const
{
return (m_lid == lidOther.GetLanguageId());
}
inline
int
CLocLangId::operator!=(
const CLocLangId &lidOther)
const
{
return !operator==(lidOther);
}