Audacity 3.2.0
|
#include <string_view>
#include <unordered_map>
Go to the source code of this file.
Classes | |
struct | UriFields |
Typedefs | |
using | QueryFields = std::unordered_map< std::string_view, std::string_view > |
Functions | |
STRING_UTILS_API UriFields | ParseUri (std::string_view uri) noexcept |
STRING_UTILS_API QueryFields | ParseUriQuery (std::string_view query, std::string_view delimiter="&") noexcept |
Parses URI query and returns QueryFields structure with parsed fields. More... | |
using QueryFields = std::unordered_map<std::string_view, std::string_view> |
Definition at line 27 of file UriParser.h.
|
noexcept |
Parses URI and returns UriFields structure with parsed fields. {Scheme}://[{UserInfo}@]{Host}[:{Port}][/{Path}][?{Query}][#{Fragment}]
Definition at line 9 of file UriParser.cpp.
References UriFields::Fragment, UriFields::Host, Tuple::detail::npos(), UriFields::Path, UriFields::Port, UriFields::Query, UriFields::Scheme, and UriFields::UserInfo.
Referenced by audacity::cloud::audiocom::sync::HandleMixdownLink(), audacity::cloud::audiocom::sync::HandleProjectLink(), audacity::cloud::audiocom::sync::anonymous_namespace{ResumedSnaphotUploadOperation.cpp}::IsUrlExpired(), and TEST_CASE().
|
noexcept |
Parses URI query and returns QueryFields structure with parsed fields.
Definition at line 59 of file UriParser.cpp.
References Tuple::detail::npos().
Referenced by audacity::cloud::audiocom::sync::HandleMixdownLink(), audacity::cloud::audiocom::sync::HandleProjectLink(), audacity::cloud::audiocom::sync::anonymous_namespace{ResumedSnaphotUploadOperation.cpp}::IsUrlExpired(), and TEST_CASE().