[SPIP] v3.2.12 -> v3.2.12 - Reinstallation avec le spip_loader
[lhc/web/www.git] / www / ecrire / xml / interfaces.php
1 <?php
2
3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
5 * *
6 * Copyright (c) 2001-2019 *
7 * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
8 * *
9 * Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
10 * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. *
11 \***************************************************************************/
12
13 if (!defined('_ECRIRE_INC_VERSION')) {
14 return;
15 }
16
17 define('_REGEXP_DOCTYPE',
18 '/^((?:<\001?[?][^>]*>\s*)*(?:<!--.*?-->\s*)*)*<!DOCTYPE\s+(\w+)\s+(\w+)\s*([^>]*)>\s*/s');
19
20 define('_REGEXP_XML', '/^(\s*(?:<[?][^x>][^>]*>\s*)?(?:<[?]xml[^>]*>)?\s*(?:<!--.*?-->\s*)*)<(\w+)/s');
21
22 define('_MESSAGE_DOCTYPE', '<!-- SPIP CORRIGE -->');
23
24 define('_SUB_REGEXP_SYMBOL', '[\w_:.-]');
25
26 define('_REGEXP_NMTOKEN', '/^' . _SUB_REGEXP_SYMBOL . '+$/');
27
28 define('_REGEXP_NMTOKENS', '/^(' . _SUB_REGEXP_SYMBOL . '+\s*)*$/');
29
30 define('_REGEXP_ID', '/^[A-Za-z_:]' . _SUB_REGEXP_SYMBOL . '*$/');
31
32 define('_REGEXP_ENTITY_USE', '/%(' . _SUB_REGEXP_SYMBOL . '+);/');
33 define('_REGEXP_ENTITY_DEF', '/^%(' . _SUB_REGEXP_SYMBOL . '+);/');
34 define('_REGEXP_TYPE_XML', 'PUBLIC|SYSTEM|INCLUDE|IGNORE|CDATA');
35 define('_REGEXP_ENTITY_DECL', '/^<!ENTITY\s+(%?)\s*(' .
36 _SUB_REGEXP_SYMBOL .
37 '+;?)\s+(' .
38 _REGEXP_TYPE_XML .
39 ')?\s*(' .
40 "('([^']*)')" .
41 '|("([^"]*)")' .
42 '|\s*(%' . _SUB_REGEXP_SYMBOL . '+;)\s*' .
43 ')\s*(--.*?--)?("([^"]*)")?\s*>\s*(.*)$/s');
44
45 define('_REGEXP_INCLUDE_USE', '/^<!\[\s*%\s*([^;]*);\s*\[\s*(.*)$/s');
46
47 define('_DOCTYPE_RSS', 'http://www.rssboard.org/rss-0.91.dtd');
48
49 /**
50 * Document Type Compilation
51 **/
52 class DTC {
53 public $macros = array();
54 public $elements = array();
55 public $peres = array();
56 public $attributs = array();
57 public $entites = array();
58 public $regles = array();
59 public $pcdata = array();
60 }