网络 从缓冲区中取一行; 从缓冲中取一行; 当前行; getline
It grabs the specified range of lines from the buffer with a getline and iterates through each.
它通过getline从缓冲区获取代码的指定范围,并对各项进行迭代。
The function also needs to know the text on the current line, which can be retrieved using getline , and is stored in curr_line.
该函数还需要知道当前行上的文本,可以使用getline来获取存储在curr_line中的当前行。
The function then grabs every line in the current file (getline(1,'$')) and calls the built-in writefile() function to write them to disk.
函数随后获取当前文件(getline(1,'$'))中的每一行并调用内置的 writefile() 函数来将它们写入到磁盘中。
The changes begin in the third code block, which USES the two-argument form of the built-in getline function to return a list of all the lines in the range to be realigned.
从第三个代码块开始发生变化,它使用内置的getline函数的双参数形式来返回需要重新对齐的行的列表。