Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Member Functions | Private Attributes
nsPlatformCharset Class Reference

#include <nsPlatformCharset.h>

Inheritance diagram for nsPlatformCharset:
Inheritance graph
[legend]
Collaboration diagram for nsPlatformCharset:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsPlatformCharset ()
virtual ~nsPlatformCharset ()
NS_IMETHOD Init ()
NS_IMETHOD GetCharset (nsPlatformCharsetSel selector, nsACString &oResult)
NS_IMETHOD GetDefaultCharsetForLocale (const nsAString &localeName, nsACString &oResult)

Private Member Functions

nsresult InitInfo ()
nsresult MapToCharset (short script, short region, nsACString &outCharset)
nsresult MapToCharset (nsAString &inANSICodePage, nsACString &outCharset)
nsresult InitGetCharset (nsACString &oString)
nsresult ConvertLocaleToCharsetUsingDeprecatedConfig (nsAString &locale, nsACString &oResult)
nsresult VerifyCharset (nsCString &aCharset)

Private Attributes

nsCString mCharset
nsString mLocale

Detailed Description

Definition at line 42 of file nsPlatformCharset.h.


Constructor & Destructor Documentation

Definition at line 49 of file nsBeOSCharset.cpp.

{
  mCharset.AssignLiteral("UTF-8");
}

Definition at line 54 of file nsBeOSCharset.cpp.

{
}

Member Function Documentation

nsresult nsPlatformCharset::ConvertLocaleToCharsetUsingDeprecatedConfig ( nsAString &  locale,
nsACString &  oResult 
) [private]

Definition at line 97 of file nsBeOSCharset.cpp.

{
  aResult = mCharset;
  return NS_OK;
}
NS_IMETHODIMP nsPlatformCharset::GetCharset ( nsPlatformCharsetSel  selector,
nsACString &  oResult 
) [virtual]

Implements nsIPlatformCharset.

Definition at line 59 of file nsBeOSCharset.cpp.

{
  aResult = mCharset;
  return NS_OK;
}
NS_IMETHODIMP nsPlatformCharset::GetDefaultCharsetForLocale ( const nsAString &  localeName,
nsACString &  oResult 
) [virtual]

Implements nsIPlatformCharset.

Definition at line 66 of file nsBeOSCharset.cpp.

{
  aResult = mCharset;
  return NS_OK;
}

Definition at line 73 of file nsBeOSCharset.cpp.

{
  return NS_OK;
}
nsresult nsPlatformCharset::InitGetCharset ( nsACString &  oString) [private]

Definition at line 90 of file nsBeOSCharset.cpp.

{
  aString = mCharset;
  return NS_OK;
}

Definition at line 111 of file nsBeOSCharset.cpp.

{
  return NS_OK;
}
nsresult nsPlatformCharset::MapToCharset ( short  script,
short  region,
nsACString &  outCharset 
) [private]

Definition at line 78 of file nsBeOSCharset.cpp.

{
  return NS_OK;
}
nsresult nsPlatformCharset::MapToCharset ( nsAString &  inANSICodePage,
nsACString &  outCharset 
) [private]

Definition at line 84 of file nsBeOSCharset.cpp.

{
  return NS_OK;
}

Definition at line 104 of file nsBeOSCharset.cpp.

{
  aCharset = mCharset;
  return NS_OK;
}

Member Data Documentation

Definition at line 56 of file nsPlatformCharset.h.

Definition at line 57 of file nsPlatformCharset.h.


The documentation for this class was generated from the following files: