Homebrew Store: Fetch license and website URL. Add buttons to go to website and look up license info.

This commit is contained in:
Henrik Rydgård committed 2024-09-02 01:05:55 +02:00
1 parent e82f6e5333
commit d0ab095b1d
4 files changed
+47 -4

No files matched your search

+8
View File
@@ -171,6 +171,14 @@ std::string IndentString(const std::string &str, const std::string &sep, bool sk
return output.str();
}
std::string_view StripPrefix(std::string_view prefix, std::string_view s) {
if (startsWith(s, prefix)) {
return s.substr(prefix.size(), s.size() - prefix.size());
} else {
return s;
}
}
void SkipSpace(const char **ptr) {
while (**ptr && isspace(**ptr)) {
(*ptr)++;