File tree 7 files changed +87
-0
lines changed
7 files changed +87
-0
lines changed Original file line number Diff line number Diff line change
1
+ #ifndef RVSTD_CONTEXT_HPP
2
+ #define RVSTD_CONTEXT_HPP
3
+
4
+ #include " rvstd/tableau.hpp"
5
+
6
+ namespace rvstd {
7
+
8
+ struct context {
9
+ context ();
10
+ context (context const & ctx) = delete ;
11
+ context (context&& ctx) noexcept = delete ;
12
+ auto operator =(context const & ctx) -> context& = delete ;
13
+ auto operator =(context&& ctx) noexcept -> context& = delete ;
14
+ ~context ();
15
+
16
+ public:
17
+ tableau data;
18
+ };
19
+
20
+ } // namespace rvstd
21
+
22
+ #endif
Original file line number Diff line number Diff line change
1
+ #ifndef RVSTD_PARSER_HPP
2
+ #define RVSTD_PARSER_HPP
3
+
4
+ #include " rvstd/unique_identifier.hpp"
5
+
6
+ #include < boost/url/parse.hpp>
7
+ #include < boost/url/urls.hpp>
8
+
9
+ namespace rvstd {
10
+
11
+ auto parse_uri (boost::core::string_view s) -> unique_identifier
12
+ {
13
+ boost::system ::result<boost::url_view> r = boost::urls::parse_uri (s);
14
+
15
+ return {};
16
+ }
17
+
18
+ auto parse_expression (string_view sv) -> unique_identifier;
19
+
20
+ } // namespace rvstd
21
+
22
+ #endif // RVSTD_PARSER_HPP
Original file line number Diff line number Diff line change
1
+ #ifndef RVSTD_PROPERTY_HPP
2
+ #define RVSTD_PROPERTY_HPP
3
+
4
+ namespace rvstd {
5
+
6
+ struct property {
7
+ property () = default ;
8
+ property (property const & prop) = delete ;
9
+ property (property&& prop) noexcept = delete ;
10
+ auto operator =(property const & prop) -> property& = delete ;
11
+ auto operator =(property&& prop) noexcept -> property& = delete ;
12
+ ~property () = default ;
13
+
14
+ public:
15
+ int value;
16
+ };
17
+
18
+ } // namespace rvstd
19
+
20
+ #endif
Original file line number Diff line number Diff line change
1
+ #include " rvstd/context.hpp"
2
+
3
+ namespace rvstd {
4
+
5
+ rvstd::context::context () = default ;
6
+ rvstd::context::~context () = default ;
7
+
8
+ } // namespace rvstd
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ include(CTest)
6
6
add_executable (
7
7
rvstd_tests
8
8
options .test .cpp
9
+ parser.test .cpp
9
10
resource .test .cpp
10
11
tableau.test .cpp
11
12
unique_identifier.test .cpp
Original file line number Diff line number Diff line change
1
+
2
+ #include < boost/url.hpp>
3
+ #include < catch2/catch_test_macros.hpp>
4
+
5
+ TEST_CASE (" URL" )
6
+ {
7
+ boost::urls::url u (" #/d/e/f" );
8
+
9
+ REQUIRE (u.encoded_host ().empty ());
10
+ REQUIRE (u.encoded_path ().empty ());
11
+ REQUIRE (u.encoded_query ().empty ());
12
+ REQUIRE (u.encoded_fragment () == " /d/e/f" );
13
+ REQUIRE (u.encoded_userinfo ().empty ());
14
+ }
You can’t perform that action at this time.
0 commit comments