chromium/third_party/blink/renderer/build/scripts/templates/element_attribute_name_lookup_trie.h.tmpl

{% from "templates/macros.tmpl" import license, source_files_for_generated_file %}
{{ license() }}

{{source_files_for_generated_file(template_file, input_files)}}

#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_{{namespace|upper}}_ELEMENT_ATTRIBUTE_NAME_LOOKUP_TRIE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_{{namespace|upper}}_ELEMENT_ATTRIBUTE_NAME_LOOKUP_TRIE_H_

#include "third_party/blink/renderer/core/core_export.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_uchar.h"

namespace blink {

class QualifiedName;

// Returns the QualifiedName for the attribute whose name matches `data`.
// Returns `g_null_name` if there is no match. It is expected this is only
// called if `length` is > 0.
CORE_EXPORT const QualifiedName& Lookup{{namespace}}AttributeName(const UChar* data, unsigned length);

// Returns the QualifiedName for the attribute whose name matches `data`.
// Returns `g_null_name` if there is no match. It is expected this is only
// called if `length` is > 0.
CORE_EXPORT const QualifiedName& Lookup{{namespace}}AttributeName(const LChar* data, unsigned length);

}  // namespace blink

#endif  // THIRD_PARTY_BLINK_RENDERER_CORE_{{namespace|upper}}_ELEMENT_ATTRIBUTE_NAME_LOOKUP_TRIE_H_