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.

70 lines
754 B

  1. /*++
  2. Copyright (C) 1996-1999 Microsoft Corporation
  3. Module Name:
  4. ESPNLS.INL
  5. History:
  6. --*/
  7. inline
  8. LangId
  9. CLocLangId::GetLanguageId(void)
  10. const
  11. {
  12. return m_lid;
  13. }
  14. inline
  15. void
  16. CLocLangId::GetLangName(
  17. CLString &strLangName)
  18. const
  19. {
  20. LTASSERT(m_lid != 0);
  21. strLangName = m_pLangInfo->szName;
  22. }
  23. inline
  24. void
  25. CLocLangId::GetLangShortName(
  26. CLString &strLangShortName)
  27. const
  28. {
  29. strLangShortName = m_pLangInfo->szShortName;
  30. }
  31. inline
  32. int
  33. CLocLangId::operator==(
  34. const CLocLangId &lidOther)
  35. const
  36. {
  37. return (m_lid == lidOther.GetLanguageId());
  38. }
  39. inline
  40. int
  41. CLocLangId::operator!=(
  42. const CLocLangId &lidOther)
  43. const
  44. {
  45. return !operator==(lidOther);
  46. }