Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
b266f584
Commit
b266f584
authored
Aug 06, 2019
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add second overload to parse() for URI
parent
8b7c57aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
libcaf_core/caf/uri.hpp
libcaf_core/caf/uri.hpp
+5
-0
libcaf_core/src/uri.cpp
libcaf_core/src/uri.cpp
+7
-0
No files found.
libcaf_core/caf/uri.hpp
View file @
b266f584
...
...
@@ -22,6 +22,7 @@
#include <vector>
#include "caf/detail/comparable.hpp"
#include "caf/detail/parser/state.hpp"
#include "caf/detail/unordered_flat_map.hpp"
#include "caf/fwd.hpp"
#include "caf/intrusive_ptr.hpp"
...
...
@@ -134,6 +135,10 @@ typename Inspector::result_type inspect(Inspector& f, uri::authority_type& x) {
/// @relates uri
std
::
string
to_string
(
const
uri
&
x
);
/// @relates uri
/// @private
void
parse
(
detail
::
parser
::
state
<
string_view
::
iterator
>
ps
,
uri
&
dest
);
/// @relates uri
error
parse
(
string_view
str
,
uri
&
dest
);
...
...
libcaf_core/src/uri.cpp
View file @
b266f584
...
...
@@ -101,6 +101,13 @@ std::string to_string(const uri& x) {
return
result
;
}
void
parse
(
detail
::
parser
::
state
<
string_view
::
iterator
>
ps
,
uri
&
dest
)
{
uri_builder
builder
;
read_uri
(
ps
,
builder
);
if
(
ps
.
code
<=
pec
::
trailing_character
)
dest
=
builder
.
make
();
}
error
parse
(
string_view
str
,
uri
&
dest
)
{
using
namespace
detail
::
parser
;
uri_builder
builder
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment