View Source

[modwtcl]
apreq.h
dist/
libapreq1/
mod_wtcl.c
mod_wtcl.h
setupExclude.txt
util/
win.def
win.mak
wt1.1/
WtAppTable.c
WtAppTable.h
WtBasicCmds.c
WtBasicCmds.h
WtClientRequest.c
WtClientRequest.h
WtCollection.c
WtCollection.h
WtCollectionCmds.c
WtCollectionCmds.h
WtContext.c
WtContext.h
WtContextEvents.c
WtContextEvents.h
WtCookie.c
WtCookie.h
WtDbSession.c
WtDbSession.h
WtExecute.c
WtExecute.h
WtHtmlEntities.c
WtHtmlEntities.h
WtInitCmds.c
WtInitCmds.h
WtMtTable.c
WtMtTable.h
WtMultiTable.c
WtMultiTable.h
WtOS.h
WtProcSession.c
WtProcSession.h
WtResponse.c
WtResponse.h
WtServerCmds.c
WtServerCmds.h
WtSession.c
WtSession.h
WtSettings.c
WtSettings.h
WtTable.c
WtTable.h
WtTableCmds.c
WtTableCmds.h
WtTableUtil.c
WtTableUtil.h
WtUpload.c
WtUpload.h
WtUtil.c
WtUtil.h
WtWebErrors.c
WtWebErrors.h
WtWindows.h
File: / archive / modwtcl / WtHtmlEntities.h

Lines Size Modified Created Owner MIME Types
51 1,446 2010/05/08 18:46:41 2011/06/13 15:35:15 BUILTIN\Administrators text/x-chdr

0001
/*
0002
 * Copyright 2001 Alexander Boverman and the original authors.
0003
 * 
0004
 * Licensed under the Apache License, Version 2.0 (the "License");
0005
 * you may not use this file except in compliance with the License.
0006
 * You may obtain a copy of the License at
0007
 * 
0008
 *      http://www.apache.org/licenses/LICENSE-2.0
0009
 * 
0010
 * Unless required by applicable law or agreed to in writing, software
0011
 * distributed under the License is distributed on an "AS IS" BASIS,
0012
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0013
 * See the License for the specific language governing permissions and
0014
 * limitations under the License.
0015
 */
0016
0017
#ifndef _WT_HTML_ENTITIES_H
0018
#define _WT_HTML_ENTITIES_H
0019
0020
#include <tcl.h>
0021
0022
typedef enum {
0023
  WT_ENT_DEFAULT        = 0x01,
0024
  WT_ENT_ALL            = 0x02,
0025
  WT_ENT_SPECIAL_CHARS  = 0x04,
0026
  WT_ENT_DOUBLE_QUOTE   = 0x08,
0027
  WT_ENT_SINGLE_QUOTE   = 0x10,
0028
  WT_ENT_NAMED_ENTITIES = 0x20,
0029
  WT_ENT_UNKNOWN_CHARS  = 0x40
0030
} WtHtmlEncodingOption;
0031
0032
void WtInitHtmlEntities();
0033
void WtDoInitHtmlEntities();
0034
void WtDeleteHtmlEntities();
0035
void WtDoDeleteHtmlEntities();
0036
Tcl_Obj *WtEncodeHtml(const char *utfStr, int options);
0037
0038
typedef struct WtHtmlMaps {
0039
  int initialized;
0040
  char **charsToEnts;
0041
  const int maxHtmlChar;
0042
  Tcl_HashTable *entsToChars;
0043
  Tcl_Mutex htmlLock;
0044
} WtHtmlMaps;
0045
0046
extern WtHtmlMaps wtHtmlMaps;
0047
extern int wtHtmlEntityChars[];
0048
extern const char *wtHtmlEntityStrings[];
0049
0050
0051
#endif /* ! _WT_HTML_ENTITIES_H */