⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mal_xml.mx

📁 一个内存数据库的源代码这是服务器端还有客户端
💻 MX
字号:
@' The contents of this file are subject to the MonetDB Public License@' Version 1.1 (the "License"); you may not use this file except in@' compliance with the License. You may obtain a copy of the License at@' http://monetdb.cwi.nl/Legal/MonetDBLicense-1.1.html@'@' Software distributed under the License is distributed on an "AS IS"@' basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the@' License for the specific language governing rights and limitations@' under the License.@'@' The Original Code is the MonetDB Database System.@'@' The Initial Developer of the Original Code is CWI.@' Portions created by CWI are Copyright (C) 1997-2007 CWI.@' All Rights Reserved.@f mal_xml@a M. Kersten@+ XML interfaceThe primitives to manipulate XML objects and to prepare for XML outputis collected in this single file. It is expected to grow out intoall the primitives needed to support an XML front-end.@{@h#ifndef _MAL_XML_H#include "mal.h"mal_export char *xmlChr(str s);#endif /* _MAL_XML_H */@c#include "mal_config.h"#include "mal_xml.h"char *xmlChr(str s){	static char buf[BUFSIZ + 5];	char *c = buf, *lim = buf + BUFSIZ;	while (s && c < lim && *s) {		switch (*s) {		case '_':			sprintf(c, "\\_");			c += 2;			break;		case '$':			sprintf(c, "\\$");			c += 2;			break;		case '%':			sprintf(c, "\\%%");			c += 4;			break;		case '<':			sprintf(c, "$&lt;$");			c += 6;			break;		case '>':			sprintf(c, "$&gt;$");			c += 6;			break;		case '&':			sprintf(c, "&amp;");			c += 5;			break;		default:			*c++ = *s;		}		s++;	}	*c = 0;	return buf;}@}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -