Coverage Report

Created: 2026-06-13 06:44

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libvisio/src/lib/VSDXMLTokenMap.cpp
Line
Count
Source
1
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/*
3
 * This file is part of the libvisio project.
4
 *
5
 * This Source Code Form is subject to the terms of the Mozilla Public
6
 * License, v. 2.0. If a copy of the MPL was not distributed with this
7
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
 */
9
10
#include "VSDXMLTokenMap.h"
11
12
#include <string.h>
13
14
namespace
15
{
16
17
#include "tokenhash.h"
18
19
} // anonymous namespace
20
21
int libvisio::VSDXMLTokenMap::getTokenId(const xmlChar *name)
22
3.70M
{
23
3.70M
  const xmltoken *token = Perfect_Hash::in_word_set((const char *)name, xmlStrlen(name));
24
3.70M
  if (token)
25
2.30M
    return token->tokenId;
26
1.40M
  else
27
1.40M
    return XML_TOKEN_INVALID;
28
3.70M
}
29
30
/* vim:set shiftwidth=2 softtabstop=2 expandtab: */