Flutter Engine
The Flutter Engine
third_party
dart-lang
sdk
runtime
platform
uri.h
Go to the documentation of this file.
1
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2
// for details. All rights reserved. Use of this source code is governed by a
3
// BSD-style license that can be found in the LICENSE file.
4
5
#ifndef RUNTIME_PLATFORM_URI_H_
6
#define RUNTIME_PLATFORM_URI_H_
7
8
#include <memory>
9
#include "
platform/utils.h
"
10
11
namespace
dart
{
12
13
class
ParsedUri
{
14
public
:
15
CStringUniquePtr
scheme
;
16
CStringUniquePtr
userinfo
;
17
CStringUniquePtr
host
;
18
CStringUniquePtr
port
;
19
CStringUniquePtr
path
;
20
CStringUniquePtr
query
;
21
CStringUniquePtr
fragment
;
22
};
23
24
// Parses a uri into its parts.
25
//
26
// Returns nullptr if the parse fails.
27
std::unique_ptr<ParsedUri>
ParseUri
(
const
char
* uri);
28
29
// Resolves some reference uri with respect to a base uri.
30
//
31
// Returns nullptr if the resolve fails.
32
CStringUniquePtr
ResolveUri
(
const
char
* ref_uri,
const
char
* base_uri);
33
34
}
// namespace dart
35
36
#endif
// RUNTIME_PLATFORM_URI_H_
dart::CAllocUniquePtr< char >
dart::ParsedUri
Definition:
uri.h:13
dart::ParsedUri::path
CStringUniquePtr path
Definition:
uri.h:19
dart::ParsedUri::scheme
CStringUniquePtr scheme
Definition:
uri.h:15
dart::ParsedUri::query
CStringUniquePtr query
Definition:
uri.h:20
dart::ParsedUri::fragment
CStringUniquePtr fragment
Definition:
uri.h:21
dart::ParsedUri::userinfo
CStringUniquePtr userinfo
Definition:
uri.h:16
dart::ParsedUri::port
CStringUniquePtr port
Definition:
uri.h:18
dart::ParsedUri::host
CStringUniquePtr host
Definition:
uri.h:17
dart
Definition:
dart_vm.cc:33
dart::ParseUri
std::unique_ptr< ParsedUri > ParseUri(const char *uri)
Definition:
uri.cc:215
dart::ResolveUri
CStringUniquePtr ResolveUri(const char *ref_uri, const char *base_uri)
Definition:
uri.cc:432
utils.h
Generated on Sun Jun 23 2024 21:55:25 for Flutter Engine by
1.9.4