resqpy.olio.keyword_filesΒΆ
Basic functions for searching for keywords in an ascii control file such as a nexus deck.
Ascii file must already have been opened for reading before calling any of these functions.
Functions
Returns True if the next line contains only white space; False otherwise (including comments). |
|
Returns True if the end of the file has been reached. |
|
Looks for line starting with given keyword; file pointer is left at start of that line. |
|
Looks for line starting with a given pair of keywords. |
|
Looks for line starting with given keyword, copying lines in the meantime. |
|
Looks for line starting with keyword, but without passing line starting with no_pass_keyword. |
|
Looks for line starting with any number. |
|
Returns a string (usually one character) being the guess as to the comment character, or None. |
|
Returns True if next token in file is a number. |
|
Skips any lines containing only white space or comment. |
|
Skips any lines containing only a comment. |
|
Returns True if next token in file is the specified keyword. |
|
Returns a pair of strings: (line stripped of trailing comment, trailing comment). |
|
Returns a copy of line with any trailing comment removed. |
|
Returns True if the first argument is a substring of the second. |