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()来获取存储在currline中的当前行。
-
It grabs the specified range of lines from the buffer with a getline () and iterates through each .
它通过getline()从缓冲区获取代码的指定范围,并对各项进行迭代。
-
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()函数的双参数形式来返回需要重新对齐的行的列表。