Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
nsInternetConfigService.cpp File Reference
#include "nsInternetConfigService.h"
#include "nsCOMPtr.h"
#include "nsIMIMEInfo.h"
#include "nsMIMEInfoMac.h"
#include "nsAutoPtr.h"
#include "nsIFactory.h"
#include "nsIComponentManager.h"
#include "nsIURL.h"
#include "nsXPIDLString.h"
#include "nsReadableUtils.h"
#include "nsString.h"
#include "nsCRT.h"
#include "nsILocalFileMac.h"
#include "nsMimeTypes.h"
#include <TextUtils.h>
#include <CodeFragments.h>
#include <Processes.h>
#include <Gestalt.h>
#include <CFURL.h>
#include <Finder.h>
#include <LaunchServices.h>

Go to the source code of this file.

Defines

#define MAKE_NS_RGB(_r, _g, _b)   ((PRUint32) ((255 << 24) | ((_b)<<16) | ((_g)<<8) | (_r)))

Functions

static void ConvertCharStringToStr255 (const char *inString, Str255 &outString)

Define Documentation

#define MAKE_NS_RGB (   _r,
  _g,
  _b 
)    ((PRUint32) ((255 << 24) | ((_b)<<16) | ((_g)<<8) | (_r)))

Function Documentation

static void ConvertCharStringToStr255 ( const char *  inString,
Str255 &  outString 
) [static]

Definition at line 63 of file nsInternetConfigService.cpp.

{
  if (inString == NULL)
    return;
  
  PRInt32 len = strlen(inString);
  NS_ASSERTION(len <= 255 , " String is too big");
  if (len> 255)
  {
    len = 255;
  }
  memcpy(&outString[1], inString, len);
  outString[0] = len;
}

Here is the call graph for this function: