1 * Summary: Unicode character range checking
2 * Description: this module exports interfaces for the character
3 * range validation APIs
5 * Copy: See Copyright for the status of this software.
7 * Author: Patrick Monnerat <pm@datasphere.ch>, DATASPHERE S.A.
9 /if not defined(XML_CHVALID_H__)
10 /define XML_CHVALID_H__
12 /include "libxmlrpg/xmlversion"
13 /include "libxmlrpg/xmlTypesC"
14 /include "libxmlrpg/xmlstring"
16 * Define our typedefs and structures
18 d xmlChSRangePtr s * based(######typedef######)
20 d xmlChSRange ds based(xmlChSRangePtr)
22 d low like(xmlCushort)
23 d high like(xmlCushort)
25 d xmlChLRangePtr s * based(######typedef######)
27 d xmlChLRange ds based(xmlChLRangePtr)
32 d xmlChRangeGroupPtr...
33 d s * based(######typedef######)
36 d ds based(xmlChRangeGroupPtr)
38 d nbShortRange like(xmlCint)
39 d nbLongRange like(xmlCint)
40 d shortRange like(xmlChSRangePtr)
41 d longRange like(xmlChLRangePtr)
43 * Range checking routine
45 d xmlCharInRange pr extproc('xmlCharInRange')
47 d val value like(xmlCuint)
48 d group like(xmlChRangeGroupPtr) const
50 d xmlIsBaseCharGroup...
51 d ds import('xmlIsBaseCharGroup')
52 d likeds(xmlChRangeGroup) const
55 d ds import('xmlIsCharGroup')
56 d likeds(xmlChRangeGroup) const
58 d xmlIsCombiningGroup...
59 d ds import('xmlIsCombiningGroup')
60 d likeds(xmlChRangeGroup) const
63 d ds import('xmlIsDigitGroup')
64 d likeds(xmlChRangeGroup) const
66 d xmlIsExtenderGroup...
67 d ds import('xmlIsExtenderGroup')
68 d likeds(xmlChRangeGroup) const
70 d xmlIsIdeographicGroup...
71 d ds import('xmlIsIdeographicGroup')
72 d likeds(xmlChRangeGroup) const
74 d xmlIsBaseChar pr extproc('xmlIsBaseChar')
76 d ch value like(xmlCuint)
78 d xmlIsBlank pr extproc('xmlIsBlank')
80 d ch value like(xmlCuint)
82 d xmlIsChar pr extproc('xmlIsChar')
84 d ch value like(xmlCuint)
86 d xmlIsCombining pr extproc('xmlIsCombining')
88 d ch value like(xmlCuint)
90 d xmlIsDigit pr extproc('xmlIsDigit')
92 d ch value like(xmlCuint)
94 d xmlIsExtender pr extproc('xmlIsExtender')
96 d ch value like(xmlCuint)
99 d pr extproc('xmlIsIdeographic')
101 d ch value like(xmlCuint)
103 d xmlIsPubidChar pr extproc('xmlIsPubidChar')
105 d ch value like(xmlCuint)
107 /endif XML_CHVALID_H__