Use `BLI_strdupn` instead of repeating the same logic a bunch of times. Use StringRef where StringRefNull isn't necessary, and use StringRefNull instead of a std::string reference in one case.
Use `BLI_strdupn` instead of repeating the same logic a bunch of times. Use StringRef where StringRefNull isn't necessary, and use StringRefNull instead of a std::string reference in one case.