index.c
来自「HTML-XML-utils由一套小型C程序(过滤器)组成」· C语言 代码 · 共 35 行
C
35 行
/* * Insert an index between "<!--begin-index-->" and "<!--end-index-->", * or replacing the comment "<!--index-->" * * The index links to elements with ID attributes as well as with * empty <A NAME> elements. * * Any <A> tags with a class of "bctarget" are not copied, but * regenerated. They are assumed to be backwards-compatible versions * of ID attributes on their parent elements. But if the option -t or * -x are given, those <A> elements are removed. * * There's a limit of 100000 index terms (10^(MAXIDLEN-1)). * * Index terms are elements with a class of "index", "index-inst" or * "index-def", as well as all <dfn> elements. The contents of the * element is the index term, unless the element has a title * attribute. The title attribute can contain "|" and "!!": * * "term" * "term1|term2|term3|..." * "term!!subterm!!subsubterm!!..." * "term1!!subterm1|term2!!subterm2|..." * etc. * * For backward compatibility with an earlier Perl program, "::" is * accepted as an alternative for "!!", but it is better not to use * both separators in the same project, since the sorting maybe * adversely affected. * * Class "index-def" results in a bold entry in the index, "index" in * a normal one. "index-inst" is an alias for "index", provided for * backward compatibility. * * Copyright
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?