@@ -19,7 +19,7 @@ ctre::match<"REGEX">(subject); // C++20
1919* Searching (` search ` or ` starts_with ` )
2020* Capturing content (named captures are supported too, but only with syntax ` (?<name>...) ` )
2121* Back-Reference (\g{N} syntax, and \1...\9 syntax too)
22- * Multiline support (with ` multi_ ` ) functions
22+ * Multiline support (with ` multiline_ ` ) functions
2323* Unicode properties and UTF-8 support
2424
2525The library is implementing most of the PCRE syntax with a few exceptions:
@@ -248,26 +248,26 @@ This support is preliminary, probably the API will be changed.
248248```c++
249249auto input = "123,456,768"sv;
250250
251- for (auto match: ctre::range <"([0-9]+),?">(input)) {
251+ for (auto match: ctre::search_all <"([0-9]+),?">(input))
252252 std::cout << std::string_view{match.get<0>()} << "\n";
253- }
254253```
255254
256255### Unicode
257256
258257``` c++
259258#include < ctre-unicode.hpp>
260259#include < iostream>
260+
261261// needed if you want to output to the terminal
262262std::string_view cast_from_unicode (std::u8string_view input) noexcept {
263263 return std::string_view(reinterpret_cast<const char * >(input.data()), input.size());
264264}
265- int main()
266- {
265+
266+ int main() {
267267 using namespace std::literals;
268268 std::u8string_view original = u8"Tu es un génie"sv;
269269
270- for (auto match : ctre::range <"\\p{Letter}+">(original))
270+ for (auto match : ctre::search_all <"\\p{Letter}+">(original))
271271 std::cout << cast_from_unicode(match) << std::endl;
272272 return 0;
273273}
0 commit comments