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
1. For the sake of this tutorial we need a user repo (githubUsername.github.io). | |
On your root of jekyll project, | |
Create a folder named “.circleci”, inside this folder we’ll put a file named “config.yml” | |
(attached on upwork message). | |
Here is all the circleci thing was located. |
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
subrange( | |
basic_multi_buffer const& b, | |
size_type pos, | |
size_type n) noexcept | |
{ | |
pos = pos + b.in_pos_; | |
auto it = b_->list_.begin(); | |
for(;;) | |
{ | |
if(it == b_->list_.end()) |
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
/** Set the port. | |
The port of the URL is set to the specified | |
which must have the <em>port</em> syntax: | |
@li If the string is empty, the port is | |
cleared including the leading colon (':'). If | |
the port was the last remaining portion of | |
the authority, then the entire authority is | |
removed including the leading double slash ('//'). |
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
void | |
testPath() | |
{ | |
// path-empty | |
BOOST_TEST(value("").set_encoded_path("").encoded_url() == ""); | |
BOOST_TEST(value("//x#").set_encoded_path("").encoded_url() == "//x#"); | |
// path-abempty | |
BOOST_TEST(value("//x#").set_encoded_path("/").encoded_url() == "//x/#"); | |
BOOST_TEST(value("//x#").set_encoded_path("//").encoded_url() == "//x//#"); |
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
// path-empty | |
BOOST_TEST(value("").set_encoded_path("").encoded_url() == ""); | |
BOOST_TEST(value("//x#").set_encoded_path("").encoded_url() == "//x#"); | |
// path-abempty | |
BOOST_TEST(value("//x#").set_encoded_path("/").encoded_url() == "//x/#"); | |
BOOST_TEST(value("//x#").set_encoded_path("//").encoded_url() == "//x//#"); | |
BOOST_TEST(value("//x#").set_encoded_path("/y").encoded_url() == "//x/y#"); | |
BOOST_TEST_THROWS(value("//x#").set_encoded_path("x"), invalid_part); | |
BOOST_TEST_THROWS(value("//x#").set_encoded_path("x/"), invalid_part); |
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
//------------------------------------------------------ | |
// | |
// fragment | |
// | |
//------------------------------------------------------ | |
/** Return the fragment. | |
This function returns the fragment of the URL: |
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
namespace url { | |
class basic_value | |
{ | |
public: | |
basic_value() = default; | |
// return the hostname | |
string_view | |
encoded_hostname() const noexcept |
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
namespace url { | |
class basic_value | |
{ | |
char* s_; | |
public: | |
// construct a URL from a string. | |
// the string is copied. | |
basic_value( string_view s ); |
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
namespace url { | |
class basic_value | |
{ | |
char* s_; | |
public: | |
// construct a URL from a string. | |
// the string is copied. | |
basic_value( string_view s ); |
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
namespace url { | |
class basic_value | |
{ | |
char* s_; | |
protected: | |
virtual | |
char* | |
reserve( |