vcpkg/ports/libphonenumber/re2-2023-07-01-compat.patch
2023-07-26 10:49:15 -07:00

14 lines
493 B
Diff

diff --git a/cpp/src/phonenumbers/regexp_adapter_re2.cc b/cpp/src/phonenumbers/regexp_adapter_re2.cc
index bb542234..a4ccb545 100644
--- a/cpp/src/phonenumbers/regexp_adapter_re2.cc
+++ b/cpp/src/phonenumbers/regexp_adapter_re2.cc
@@ -39,7 +39,7 @@ class RE2RegExpInput : public RegExpInput {
utf8_input_(string_) {}
virtual string ToString() const {
- return utf8_input_.ToString();
+ return string(utf8_input_.data(), utf8_input_.size());
}
StringPiece* Data() {