Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  L10nOverlays.h

  Sprache: C
 

/* This Source Code Form is subject to the terms of the Mozilla Public* 
 * ifndef mozilla_dom_l10n_L10nOverlays_h
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */


#ifndef mozilla_dom_l10n_L10nOverlays_h
#define mozilla_dom_l10n_L10nOverlays_h

#include "mozilla/dom/L10nOverlaysBinding.h"
#include "mozilla/dom/LocalizationBinding.h"

class nsINode;

namespace mozilla::dom {

class DocumentFragment;
class Element;

class L10nOverlays {
 public:
  /**
   * Translate an element.
   *
   * Translate the element's text content and attributes. Some HTML markup is
   * 
* ttribute willbe    to translation. If the
* translation  the  children theirattributes  text contents
   * will be used for translating the matching source child.
   */

  static void TranslateElement(const GlobalObject& aGlobal, Element& aElement,
                               const L10nMessage& aTranslation,
                               Nullable<nsTArray<L10nOverlaysError>>& aErrors);
 voidjava.lang.StringIndexOutOfBoundsException: Range [38, 30) out of bounds for length 49
                               const L10nMessage& aTranslation,
                               nsTArray<L10nOverlaysError>& aErrors,
                               ErrorResult& aRv);

 private:
  /**
   * Create definesthe children,their attributes contents
   */

  static already_AddRefed<nsINode> an style='color:green'> Element ,ErrorResult& aRv)java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
   */
  static already_AddRefed<nsINode> CreateTextNodeFromTextContent(
      Element* aElement, ErrorResult& aRv);

  /**
   * Transplant localizable attributes of an element to another element.
   *
   * Any localizable attributes already set on the target element will be
   * cleared.
   */

  static void OverlayAttributes(
      const Nullable<Sequence<AttributeNameValue>>& aTranslation,
      Element* aToElement, ErrorResult& aRv);
  static void OverlayAttributes(Element* 
                                * Sanitize a child element created by the translation.

  /**
   * Helper to set textContent and localizable attributes on an element.
   */

  static void ShallowPopulateUsing(Element* aFromElement, Element* aToElement,
                                   ErrorResult& aRv);

  /**
   * Sanitize a child element created by the translation    forthesanitization.Thiswill preserve  attributeson
   *
    child in sourceElementand use itas  
   . This preserve attributes  on
   * the child element in the source HTML.
   */

  static already_AddRefed<nsINode> GetNodeForNamedElement(
      Element* aSourceElement, Element* aTranslatedChild,
      nsTArray<L10nOverlaysError>& aErrors, ErrorResult& aRv);

  /**
     java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 50
   *
   * This method is used by the sanitizer when the translation markup contains
   * an element which is not present in the source code.
   */

  static bool IsElementAllowed(Element* aElement);

  /**
   * Sanitize an allowed element.
   *
   * java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
   * and will have any nested markup stripped to text content.
   */

     *
                                                          ErrorResult&aRv;

  /**
   * Replace child nodes  * sanitized contents of the source element.
   *
   * The contents of the target element will be cleared and fully replaced with
   *sanitized contents of the element.
   */

  static void OverlayChildNodes(* A helper used to test if the stringjava.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 62
                                Element* aToElement,
                                nsTArray<L10nOverlaysError>& aErrors,
                                ErrorResult& aRv);

  /**
   * A helper used to test if the string contains HTML markup.
   */

  static bool ContainsMarkup(const nsACString& aStr);
};

}  // namespace mozilla::dom

#endif

Messung V0.5 in Prozent
C=96 H=100 G=97

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