summaryrefslogtreecommitdiffstats
path: root/webkit/glue/entity_map.h
blob: 1b7e28bc90c7b306f3d5bcf38b0a06c7434342f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (c) 2006-2008 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.

#ifndef WEBKIT_GLUE_ENTITY_MAP_H__
#define WEBKIT_GLUE_ENTITY_MAP_H__

#include <string>

#include "base/basictypes.h"
#include "base/string16.h"

namespace webkit_glue {

class EntityMap {
 public:
  // Check whether specified unicode has corresponding html or xml built-in
  // entity name. If yes, return the entity notation, if not then return NULL.
  // Parameter is_html indicates check the code in html entity map or in xml
  // entity map. THIS FUNCTION IS NOT THREADSAFE.
  static const char* GetEntityNameByCode(char16 code, bool is_html);

 private:
  DISALLOW_IMPLICIT_CONSTRUCTORS(EntityMap);
};

}  // namespace webkit_glue

#endif  // WEBKIT_GLUE_ENTITY_MAP_H__