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

  1. //-----------------------------------------------------------------------------
  2. //
  3. // File: espnls.inl
  4. // Copyright (C) 1994-1997 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // Inline functions for the language id object. This file should ONLY be
  8. // included by espnls.h
  9. //
  10. //-----------------------------------------------------------------------------
  11. inline
  12. LangId
  13. CLocLangId::GetLanguageId(void)
  14. const
  15. {
  16. return m_lid;
  17. }
  18. inline
  19. void
  20. CLocLangId::GetLangName(
  21. CLString &strLangName)
  22. const
  23. {
  24. LTASSERT(m_lid != 0);
  25. strLangName = m_pLangInfo->szName;
  26. }
  27. inline
  28. void
  29. CLocLangId::GetLangShortName(
  30. CLString &strLangShortName)
  31. const
  32. {
  33. strLangShortName = m_pLangInfo->szShortName;
  34. }
  35. inline
  36. int
  37. CLocLangId::operator==(
  38. const CLocLangId &lidOther)
  39. const
  40. {
  41. return (m_lid == lidOther.GetLanguageId());
  42. }
  43. inline
  44. int
  45. CLocLangId::operator!=(
  46. const CLocLangId &lidOther)
  47. const
  48. {
  49. return !operator==(lidOther);
  50. }