Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/xpcom/string/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1004 B image not shown  

Quelle  SourcePathLiteral.h

  Sprache: C
 

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


#ifndef mozilla_SourcePathLiteral_
#define mozilla_SourcePathLiteral_

#include "nsLiteralString.h"

namespace mozilla::detail {

template <std::size_t N>
struct SourcePathLiteralBuffer {
  char value[N];
  MOZ_IMPLICIT constexpr SourcePathLiteralBuffer(const char (&aSrc)[N]) {
    for (std::size_t i = 0; i < N; ++i) {
      value[i] = aSrc[i];
#if defined(__clang__) && defined(_WIN32)
      if (value[i] == '/') {
        value[i] = '\\';
      }
#endif
    }
  }
};

}  // namespace mozilla::detail

// Returns a literal CString that matches the syntax of __FILE__ (using
// back slashes on windows, and forward slashes elsewhere).
template <::mozilla::detail::SourcePathLiteralBuffer aPath>
constexpr const nsLiteralCString operator""_sp() {
  return nsLiteralCString(aPath.value);
}

#endif

Messung V0.5 in Prozent
C=86 H=86 G=85

¤ Dauer der Verarbeitung: 0.16 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.