📄 stringtab.def
字号:
(*#@(#)stringtab.def 4.1 Ultrix 7/17/90 *)(**************************************************************************** * * * Copyright (c) 1984 by * * DIGITAL EQUIPMENT CORPORATION, Maynard, Massachusetts. * * All rights reserved. * * * * This software is furnished under a license and may be used and copied * * only in accordance with the terms of such license and with the * * inclusion of the above copyright notice. This software or any other * * copies thereof may not be provided or otherwise made available to any * * other person. No title to and ownership of the software is hereby * * transferred. * * * * The information in this software is subject to change without notice * * and should not be construed as a commitment by DIGITAL EQUIPMENT * * CORPORATION. * * * * DIGITAL assumes no responsibility for the use or reliability of its * * software on equipment which is not supplied by DIGITAL. * * *$Header: stringtab.def,v 1.3 84/05/19 11:34:51 powell Exp $ ****************************************************************************)definition module stringtab;from io import file;export qualified String, InitStringTable, NewString, AddChar, AddText, AddString, CopyString, WriteString;(* string table stuff *)const STRINGBLOCKSIZE = 10000; MAXSTRINGSIZE = 1000; STRINGHASHSIZE = 1357;type StringIndex = [0..STRINGBLOCKSIZE]; StringLength = [0..MAXSTRINGSIZE]; StringBlock = pointer to StringBlockRec; StringBlockRec = record; next : StringBlock; s : array StringIndex of char; end; StringEntry = pointer to StringEntryRec; StringEntryRec = record block : StringBlock; index : StringIndex; length : StringLength; hash : cardinal; (* hash value for quick comparisons *) next : StringEntry; end; String = StringEntry;procedure InitStringTable();procedure NewString() : String;procedure AddChar(c : char);procedure GetChar(s : String; charNum : StringLength) : char;procedure AddText(s : array of char);procedure AddString(str : String);procedure CopyString(str : String; var arr : array of char);procedure WriteString(f : file; s : String);procedure WriteStringConst(f : file; s : String);procedure DumpStringTab();procedure EqualAnyCase(a,b : String) : boolean;end stringtab.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -