blob: af90e6ab22314b8cc0ec38671a901347f1465dcb [file] [log] [blame]
{% from 'macros.tmpl' import trie_length_switch %}
// Copyright (c) 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "{{namespace}}ElementLookupTrie.h"
#include "{{namespace}}Names.h"
namespace blink {
using namespace {{namespace}}Names;
StringImpl* lookup{{namespace}}Tag(const UChar* data, unsigned length)
{% macro trie_return_statement(tag) %}{{tag}}Tag.localName().impl(){% endmacro %}
{{ trie_length_switch(length_tries, trie_return_statement, false) | indent(4) }}
return nullptr;
} // namespace blink