source: trunk/third/gtkhtml/src/htmlentity.h @ 16767

Revision 16767, 1.5 KB checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r16766, which included commits to RCS files with non-trunk default branches.
Line 
1/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2/* htmlentity.c
3 *
4 * Copyright (C) 1999  Helix Code, Inc.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of the
9 * License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public
17 * License along with this program; if not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
20 *
21 * Author: Ettore Perazzoli
22 */
23
24#ifndef _HTMLENTITY_H
25#define _HTMLENTITY_H
26
27#include <glib.h>
28
29/* We name it with correct unicode name, but OK, later... Lauris */
30/* char used for &nbsp; - must correspond to table below */
31#define ENTITY_NBSP 160
32#define IS_UTF8_NBSP(s) (*s == (guchar)0xc2 && *(s + 1) == (guchar)0xa0)
33
34gulong html_entity_parse (const gchar *s, guint len);
35
36#if 0
37/* We do not need that - 0x160 is valid unicode character after all... Lauris */
38/* prepares text to draw/get_width, returned text is allocated using g_strdup so it could be g_free'ed */
39gchar * html_entity_prepare (const gchar *s);
40#endif
41
42#endif
Note: See TracBrowser for help on using the repository browser.