Skip to content
Snippets Groups Projects
Commit 22552f86 authored by Googler's avatar Googler Committed by shantuo
Browse files

Replace starts_with with absl::StartsWith

PiperOrigin-RevId: 673102808
parent 7d48789b
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,7 @@
#include <vector>
#include "third_party/absl/status/status.h"
#include "third_party/absl/strings/match.h"
#include "third_party/absl/strings/str_cat.h"
#include <unordered_map>
......@@ -107,8 +108,8 @@ uint64_t Builder::FunctionId(const char *name, const char *system_name,
}
void Builder::SetDocURL(absl::string_view url) {
if (!url.empty() && !url.starts_with("http://") &&
!url.starts_with("https://")) {
if (!url.empty() && !absl::StartsWith(url, "http://") &&
!absl::StartsWith(url, "https://")) {
if (error_.ok()) {
error_ = absl::InternalError(
absl::StrCat("setting invalid profile doc URL '", url, "'"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment