-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into update-libpng-in-qt-22654
- Loading branch information
Showing
7 changed files
with
136 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
recipes/scnlib/all/patches/0.4-0001-install-dll-windows.patch
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
recipes/scnlib/all/patches/2.0.0-0001-remove-re2-version.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/cmake/dependencies.cmake b/cmake/dependencies.cmake | ||
index ae2832b..fec6359 100644 | ||
--- a/cmake/dependencies.cmake | ||
+++ b/cmake/dependencies.cmake | ||
@@ -154,7 +154,7 @@ if (SCN_REGEX_BACKEND STREQUAL "re2") | ||
message(FATAL_ERROR "SCN_REGEX_BOOST_USE_ICU isn't supported when SCN_REGEX_BACKEND is re2") | ||
endif () | ||
|
||
- find_package(re2 11.0.0 REQUIRED) | ||
+ find_package(re2 REQUIRED) | ||
set(SCN_REGEX_BACKEND_TARGET re2::re2) | ||
endif () | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,27 @@ | ||
#include <iostream> | ||
#include <string> | ||
|
||
#ifndef SCNLIB_V2 | ||
|
||
#include <scn/scn.h> | ||
|
||
#include <string> | ||
int main() { | ||
std::string word; | ||
auto result = scn::scan("Hello world", "{}", word); | ||
std::cout << word << '\n'; | ||
std::cout << result.range_as_string() << '\n'; | ||
} | ||
|
||
#else | ||
|
||
#include <scn/scan.h> | ||
|
||
int main() { | ||
std::string s{"conan-center-index"}; | ||
auto span = scn::make_span(s); | ||
return 0; | ||
if (auto result = scn::scan<std::string>("Hello world!", "{}")) { | ||
std::cout << result->value() << '\n'; | ||
} else { | ||
std::cout << "Couldn't parse a word: " << result.error().msg() << '\n'; | ||
} | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
versions: | ||
"2.0.0": | ||
folder: all | ||
"1.1.3": | ||
folder: all | ||
"1.1.2": | ||
folder: all | ||
"1.0": | ||
folder: all | ||
"0.4": | ||
folder: all |