boostorg / boostorg/regex

string_view support

Open
#273 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
119
Forks
113
PR merge metrics
No merged PRs in 30d

Description

`regex` doesn't appear to support `string_view`

```
{
std::string s;
boost::match_results m;
boost::regex_search(s, m, boost::regex(R"(\[quote.*?\])", boost::regex::icase), boost::match_default);
}
{
std::string_view sv;
boost::match_results m;
boost::regex_search(sv, m, boost::regex(R"(\[quote.*?\])", boost::regex::icase), boost::match_default);
// error: no matching function for call to 'regex_search(std::string_view&, boost::match_results&, boost::regex, boost::regex_constants::_match_flags)'
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the regex_search overloads involved in the shown std::string and std::string_view examples, and reproduce the compiler error. Done means the string_view example compiles and behaves like the std::string example.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.