Skip to main content

find_directive_after_if

Function find_directive_after_if 

Source
fn find_directive_after_if(line: &str) -> Option<usize>
Expand description

Parse the argument content of a directive into individual string tokens.

Given a line like if (getRversion() < "3.2.0") export(anyNA), find the byte offset where the actual directive starts (after the if condition). Returns None if the line is malformed.