blob: 4d6828a42b741964f0cfa183d2e0e0bcc5fcae20 [file]
{% 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) {
DCHECK(data);
DCHECK(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