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

📄 readme.cords

📁 Boost provides free peer-reviewed portable C++ source libraries. We emphasize libraries that work
💻 CORDS
字号:
Copyright (c) 1993-1994 by Xerox Corporation.  All rights reserved.THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSEDOR IMPLIED.  ANY USE IS AT YOUR OWN RISK.Permission is hereby granted to use or copy this programfor any purpose,  provided the above notices are retained on all copies.Permission to modify the code and to distribute modified code is granted,provided the above notices are retained, and a notice that the code wasmodified is included with the above copyright notice.Please send bug reports to Hans-J. Boehm (Hans_Boehm@hp.com orboehm@acm.org).This is a string packages that uses a tree-based representation.See cord.h for a description of the functions provided.  Ec.h describes"extensible cords", which are essentially output streams that writeto a cord.  These allow for efficient construction of cords withoutrequiring a bound on the size of a cord.More details on the data structure can be found inBoehm, Atkinson, and Plass, "Ropes: An Alternative to Strings",Software Practice and Experience 25, 12, December 1995, pp. 1315-1330.A fundamentally similar "rope" data structure is also part of SGI's standardtemplate library implementation, and its descendents, which include theGNU C++ library.  That uses reference counting by default.There is a short description of that data structure athttp://reality.sgi.com/boehm/ropeimpl.html .  (The more official locationhttp://www.sgi.com/tech/stl/ropeimpl.html is missing a figure.)All of these are descendents of the "ropes" in Xerox Cedar.de.c is a very dumb text editor that illustrates the use of cords.It maintains a list of file versions.  Each version is simply acord representing the file contents.  Nonetheless, standardediting operations are efficient, even on very large files.(Its 3 line "user manual" can be obtained by invoking it withoutarguments.  Note that ^R^N and ^R^P move the cursor byalmost a screen.  It does not understand tabs, which will showup as highlighred "I"s.  Use the UNIX "expand" program first.)To build the editor, type "make cord/de" in the gc directory.This package assumes an ANSI C compiler such as gcc.  It willnot compile with an old-style K&R compiler.Note that CORD_printf iand friends use C functions with variable numbersof arguments in non-standard-conforming ways.  This code is known tobreak on some platforms, notably PowerPC.  It should be possible tobuild the remainder of the library (everything but cordprnt.c) onany platform that supports the collector. 

⌨️ 快捷键说明

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