Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsHankakuToZenkaku Class Reference
Inheritance diagram for nsHankakuToZenkaku:
Inheritance graph
[legend]
Collaboration diagram for nsHankakuToZenkaku:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsHankakuToZenkaku ()
virtual ~nsHankakuToZenkaku ()
NS_IMETHOD Change (const PRUnichar *aText, PRInt32 aTextLength, nsString &aResult)
NS_IMETHOD Change (nsString &aText, nsString &aResult)

Detailed Description

Definition at line 134 of file nsHankakuToZenkaku.cpp.


Constructor & Destructor Documentation

Definition at line 148 of file nsHankakuToZenkaku.cpp.

{
}

Definition at line 151 of file nsHankakuToZenkaku.cpp.

{
}

Member Function Documentation

NS_IMETHODIMP nsHankakuToZenkaku::Change ( const PRUnichar aText,
PRInt32  aTextLength,
nsString aResult 
) [virtual]

Implements nsITextTransform.

Definition at line 155 of file nsHankakuToZenkaku.cpp.

{
  PRInt32 ol;
  if (!EnsureStringLength(aResult, aTextLength))
    return NS_ERROR_OUT_OF_MEMORY;

  HankakuToZenkaku ( aText, aTextLength, aResult.BeginWriting(), aTextLength, &ol);
  aResult.SetLength(ol);

  return NS_OK;
}

Here is the call graph for this function:

NS_IMETHODIMP nsHankakuToZenkaku::Change ( nsString aText,
nsString aResult 
) [virtual]

Implements nsITextTransform.

Definition at line 167 of file nsHankakuToZenkaku.cpp.

{
   aResult = aText;
   const PRUnichar* u = aResult.get();
   PRUnichar* ou = (PRUnichar*) u;
   PRInt32 l = aResult.Length();
   PRInt32 ol;
   
   HankakuToZenkaku ( u, l, ou, l, &ol);
   aResult.SetLength(ol);

   return NS_OK;
}

Here is the call graph for this function:


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