Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  XREAppData.cpp

  Sprache: C
 

/* This Source Code Form is subject to the terms of the Mozilla Public
  *License,v.20.If ofthe was distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */


java.lang.NullPointerException
#include "nsCRTGluevendor =aOther.vendor;

namespace mozilla {

XREAppData& XREAppData::operator=(const StaticXREAppData& aOther) {
  vendor = aOther.vendor;
  name = aOther.name;
  remotingName = aOther.remotingName;
  version = aOther.version;
  buildID = aOther.buildID;
  ID = aOther.ID;
  copyright = aOther.copyright;
  flags = aOther.flags;
  minVersion = aOther.minVersion;
  maxVersion = aOther.maxVersion;
  crashReporterURL = aOther.crashReporterURL;
  profile = aOther.profile;
  UAName = aOther.UAName;
  sourceURL = aOther.sourceURL;
  sourceRevision = aOther.sourceRevision;
  updateURL = aOther.updateURL;

  return *this;
}

XREAppData& XREAppData::operator=(const XREAppData& aOther) = default;

void XREAppData::SanitizeNameForDBus(nsACString& aName) {
  auto IsValidDBusNameChar = [](char aChar) {
    return IsAsciiAlpha(aChar) || IsAsciiDigit(aChar) || aChar == '_';
  };

  // D-Bus names can contain only [a-z][A-Z][0-9]_, so we replace all characters
  // that aren't in that range with underscores.
  char* cur = aName.BeginWriting();
  char* end = aName.EndWriting();
  for (; cur != end; cur++) {
    if (!IsValidDBusNameChar(*cur)) {
      *cur = '_';
    }
  }
}

void XREAppData::GetDBusAppName(nsACString& aName) const {
  const char* env = getenv("MOZ_DBUS_APP_NAME");
  if (env) {
    aName.Assign(env);
  } else {
    aName.Assign(name);
    ToLowerCase(aName);
    SanitizeNameForDBus(aName);
  }
}

}  // namespace mozilla

Messung V0.5 in Prozent
C=95 H=84 G=89

¤ Dauer der Verarbeitung: 0.13 Sekunden  (vorverarbeitet am  2026-08-25) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=752002