Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  URLPattern.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_dom_URLPattern_h
#define mozilla_dom_URLPattern_h

#include "mozilla/dom/URLPatternBinding.h"
#include "nsCycleCollectionParticipant.h"
#include "nsWrapperCache.h"

using UrlPatternGlue = void*;

namespace mozilla::dom {

class URLPattern final : public nsISupports, public nsWrapperCache {
 public:
  NS_DECL_CYCLE_COLLECTING_ISUPPORTS
  NS_DECL_CYCLE_COLLECTION_WRAPPERCACHE_CLASS(URLPattern)

  explicit URLPattern(nsISupports* aParent, UrlPatternGlue aPattern,
                      bool aIgnoreCase)
      : mParent(aParent),
        mPattern(std::move(aPattern)),
        mIgnoreCase(aIgnoreCase) {}

  nsISupports* GetParentObject() const { return mParent; }

  JSObject* WrapObject(JSContext* aCx,
                       JS::Handle<JSObject*> aGivenProto) override;

  bool Test(const UTF8StringOrURLPatternInit& aInput,
            const Optional<nsACString>& aBase, ErrorResult& rv);

  void Exec(const UTF8StringOrURLPatternInit& aInput,
            const Optional<nsACString>& aBaseUrl,
            Nullable<URLPatternResult>& aResult, ErrorResult& rv);

  static already_AddRefed<URLPattern> Constructor(
      const GlobalObject& aGlobal, const UTF8StringOrURLPatternInit& aInput,
      const URLPatternOptions& aOptions, ErrorResult& rv);

  static already_AddRefed<URLPattern> Constructor(
      const GlobalObject& aGlobal, const UTF8StringOrURLPatternInit& aInput,
      const nsACString& aBase, const URLPatternOptions& aOptions,
      ErrorResult& rv);

  void GetProtocol(nsACString& aProtocol) const;
  void GetUsername(nsACString& aUsername) const;
  void GetPassword(nsACString& aPassword) const;
  void GetHostname(nsACString& aHostname) const;
  void GetPort(nsACString& aPort) const;
  void GetPathname(nsACString& aPathname) const;
  void GetSearch(nsACString& aSearch) const;
  void GetHash(nsACString& aHash) const;
  bool HasRegExpGroups() const;

 private:
  ~URLPattern();
  nsCOMPtr<nsISupports> mParent;

  // dom holds onto opaque pointer to urlpattern::UrlPattern (lib.rs)
  UrlPatternGlue mPattern;
  bool mIgnoreCase;
};

}  // namespace mozilla::dom

#endif  // mozilla_dom_URLPattern_h

Messung V0.5 in Prozent
C=91 H=95 G=92

¤ Dauer der Verarbeitung: 0.14 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=141584
#Domains=752002