There can be a difference between an absent field and an empty field. For example, in "unix:/tmp/foo", the host is absent, while in "unix:///tmp/foo", the host is empty but present. This function helps distinguish.
| 48 | // "unix:///tmp/foo", the host is empty but present. |
| 49 | // This function helps distinguish. |
| 50 | bool IsTextRangeSet(const UriTextRangeStructA& range) { return range.first != nullptr; } |
| 51 | |
| 52 | #ifdef _WIN32 |
| 53 | bool IsDriveSpec(const std::string_view s) { |