载入中...
搜索中...
未找到
eve::Uri类 参考
An immutable, canonical URI value. 更多...
#include <Uri.h>
Public 成员函数 | |
| UriScheme | scheme () const noexcept |
| Return the parsed scheme. | |
| std::string_view | path () const noexcept |
| Return the virtual path, borrowed from this URI until it is moved or destroyed. | |
| std::string_view | query () const noexcept |
Return the query component without ?, borrowed from this URI. | |
| std::string_view | fragment () const noexcept |
Return the fragment component without #, borrowed from this URI. | |
| const std::string & | format () const noexcept |
| Return the stable canonical URI text owned by this value. | |
静态 Public 成员函数 | |
| static Result< Uri > | parse (std::string_view text) |
| Parse and canonicalize a resource URI. | |
| static Result< Uri > | fromParts (UriScheme scheme, std::string_view path, std::string_view query={}, std::string_view fragment={}) |
| Construct a URI from validated components. | |
友元 | |
| bool | operator== (const Uri &, const Uri &) noexcept=default |
| Compare canonical URI values. | |
详细描述
An immutable, canonical URI value.
This type accepts only the five engine resource schemes. It deliberately does not accept file://, URLs, or a bare path. URI values own their text and are safe to retain across frames; they contain no borrowed pointers and have no thread affinity.
成员函数说明
◆ format()
|
inlinenoexcept |
◆ fragment()
|
inlinenoexcept |
◆ fromParts()
|
static |
Construct a URI from validated components.
- 参数
-
scheme One of the supported resource schemes. path Relative virtual path; .and..segments are forbidden.query Optional query component without the leading ?.fragment Optional fragment component without the leading #.
- 返回
- A canonical URI or a structured parse diagnostic.
引用了 path.
◆ parse()
◆ path()
|
inlinenoexcept |
◆ query()
|
inlinenoexcept |
◆ scheme()
友元及相关函数文档
◆ operator==
该类的文档由以下文件生成: