CopyASCIItoUCS2(nsLiteralCString(buf, len), aHexString);
CopyASCIItoUCS2(nsDependentCString(buf, len), aHexString);
static void ColorToHex(nscolor aColor, nsAWritableString& aHexString){   char buf[32];   PRUint32 len = PR_snprintf(buf, 32, "#%02x%02x%02x",                              NS_GET_R(aColor),                              NS_GET_G(aColor),                              NS_GET_B(aColor));   CopyASCIItoUCS2(nsLiteralCString(buf, len), aHexString);}