MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / isIncludeLine

Function isIncludeLine

tools/common_functions.php:85–92  ·  view source on GitHub ↗

return true if the given line is a include line, returns false otherwise the fielname and path of the include are written into $include if it is given */

($line, &$include)

Source from the content-addressed store, hash-verified

83 the fielname and path of the include are written into $include if it is given
84*/
85function isIncludeLine($line, &$include) {
86 if(preg_match('/^#[ \t]*include[ \t]*<(.*)>/', ltrim($line), $parts))
87 {
88 $include = $parts[1];
89 return true;
90 }
91 return false;
92}
93
94function isAlpha($char) {
95 $c = ord($char);

Callers 1

checker.phpFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected