Add pattern_len() function for null-terminated pattern handling
Fortran's len_trim() returns 0 for whitespace-only strings, which breaks
patterns like " " (two spaces). This function respects null terminators
to track exact pattern length, falling back to full string length when
no terminator is present.
patterns like " " (two spaces). This function respects null terminators
to track exact pattern length, falling back to full string length when
no terminator is present.
Authored by
mfwolffe <wolffemf@dukes.jmu.edu>
- SHA
b43bcce5c8d8e2737ce3ed36e29bbdc3c7682c92- Parents
-
0d61ac5 - Tree
423e3dd