字串替换-vtk用户手册

时间:2021-06-04 05:23:48
【文件属性】:
文件名称:字串替换-vtk用户手册
文件大小:2.7MB
文件格式:PDF
更新时间:2021-06-04 05:23:48
common lisp 中文 图 7.2 字串替换 下列表格展示了当我们将文件中的 "baro" 替换成 "baric" 所发生的事,其中文件只有一个 单字 "barbarous" : CHARACTER SOURCE MATCH CASE OUTPUT BUFFER b file b 2 b a file a 2 b a r file r 2 b a r b file o 4 b b.a r b. a buffer b 1 a a.r b. r buffer b 1 r r.b. b buffer b 1 r b: a file a 2 r b:a r file r 2 r b:a o file o 3 baric r b:a r u file b 1 u a file b 1 s 第一栏是当前字符 –– c 的值;第二栏显示是从缓冲区或是直接从输入流读取;第三栏显示 需要匹配的字符 –– old 的第 posth 字符;第四栏显示那一个条件式 (case)被求值作为结 果;第五栏显示被写至输出流的字符;而最後一栏显示缓冲区之後的内容。在最後一栏里, used与 new 的位置一样,由一个冒号 ( : colon)表示。 在文件 "test1" 里有如下文字: 1 2 3 The struggle between Liberty and Authority is the most conspicuous feature in the portions of history with which we are earliest familiar, particularly in that of Greece, Rome, and England. 在我们对 (file-subst " th" " z" "test1" "test2") 求值之後,读取文件 "test2" 为: 1 2 3 The struggle between Liberty and Authority is ze most conspicuous feature in ze portions of history with which we are earliest familiar, particularly in zat of Greece, Rome, and England.

网友评论