v0.0-459-g4d6929e: Refactor out SplitLines.
Avoid repeating logic surrounding absl::StrSplit, in particular handling around presence/absence of terminating '\n'. PiperOrigin-RevId: 319048981
Avoid repeating logic surrounding absl::StrSplit, in particular handling around presence/absence of terminating '\n'. PiperOrigin-RevId: 319048981