mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 21:10:04 +00:00
Use const std::string& instead of std::string_view with RE2 to avoid abseil issues
This commit is contained in:
parent
d3d9823459
commit
d00b2fe063
2 changed files with 2 additions and 2 deletions
|
|
@ -28,7 +28,7 @@ public:
|
||||||
[[nodiscard]] std::shared_ptr<TextProductMessage> message(size_t i) const;
|
[[nodiscard]] std::shared_ptr<TextProductMessage> message(size_t i) const;
|
||||||
|
|
||||||
bool LoadFile(const std::string& filename);
|
bool LoadFile(const std::string& filename);
|
||||||
bool LoadData(std::string_view filename, std::istream& is);
|
bool LoadData(const std::string& filename, std::istream& is);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
class Impl;
|
class Impl;
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@ bool TextProductFile::LoadFile(const std::string& filename)
|
||||||
return fileValid;
|
return fileValid;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TextProductFile::LoadData(std::string_view filename, std::istream& is)
|
bool TextProductFile::LoadData(const std::string& filename, std::istream& is)
|
||||||
{
|
{
|
||||||
static constexpr LazyRE2 kDateTimePattern_ = {
|
static constexpr LazyRE2 kDateTimePattern_ = {
|
||||||
R"(((?:19|20)\d{2}))" // Year (YYYY)
|
R"(((?:19|20)\d{2}))" // Year (YYYY)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue