Check each char read to see whether it is a form feed; if so, increment the page counter.
检查每个读取的字符是否为换页符;若是,则增加页计数器。
Then check to see whether the page counter is within the requested range of pages, and if so, write the current line; otherwise do not write.
然后检查页计数器是否在请求的页范围之内,若是,则写当前行;否则不写。
In either case, as long as the condition that the page counter value is between the start and end pages holds true, it outputs the text (by line or by char).
这两种情况下,只要页计数器的值在起始页和结束页之间这一条件保持为真,selpg就会输出文本(逐行或逐字)。
Selpg keeps track of the current page number as follows: If input is fixed-lines-per-page, it counts newlines until the page length is reached and increments a page counter.
selpg通过以下方法记住当前页号:如果输入是每页行数固定的,则selpg统计新行数,直到达到页长度后增加页计数器。
Selpg keeps track of the current page number as follows: If input is fixed-lines-per-page, it counts newlines until the page length is reached and increments a page counter.
selpg通过以下方法记住当前页号:如果输入是每页行数固定的,则selpg统计新行数,直到达到页长度后增加页计数器。
应用推荐