Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsAutoCompleteMdbResult.cpp File Reference
#include "nsAutoCompleteMdbResult.h"
#include "nsCOMPtr.h"
#include "nsCRT.h"

Go to the source code of this file.

Functions

static void SwapBytes (PRUnichar *aDest, const PRUnichar *aSrc, PRUint32 aLen)

Function Documentation

static void SwapBytes ( PRUnichar aDest,
const PRUnichar aSrc,
PRUint32  aLen 
) [static]

Definition at line 42 of file nsAutoCompleteMdbResult.cpp.

{
  for(PRUint32 i = 0; i < aLen; i++)
  {
    PRUnichar aChar = *aSrc++;
    *aDest++ = (0xff & (aChar >> 8)) | (aChar << 8);
  }
}