We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
//Add a function similar to the following
std::string strRepos = "https://github.com/fmtlib/fmt"; std::string strUrl; std::string strProto; std::string strUserName; std::string strProject; scn::scan(strRepos , "{0}://{1}/{2}/{3}", strProto, strUrl, strUserName, strProject);
The text was updated successfully, but these errors were encountered:
Now sort of possible with
std::string url = "https://github.com/eliaskosunen/scnlib"; std::string protocol, domain, username, repo; // [^:] means accept everything but ':' -> read until ':' // same for [^/] auto result = scn::scan(url, "{:[^:]}://{:[^/]}/{:[^/]}/{}", protocol, domain, username, repo); // result.empty() == true // protocol == "https" // domain == "github.com" // username == "eliaskosunen" // repo == "scnlib"
Better ergonomics for this are planned to come post-1.0.
Sorry, something went wrong.
No branches or pull requests
//Add a function similar to the following
std::string strRepos = "https://github.com/fmtlib/fmt";
std::string strUrl;
std::string strProto;
std::string strUserName;
std::string strProject;
scn::scan(strRepos , "{0}://{1}/{2}/{3}", strProto, strUrl, strUserName, strProject);
The text was updated successfully, but these errors were encountered: