Flutter Engine
The Flutter Engine
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
11namespace dart {
12
13class ParsedUri {
14 public:
22};
23
24// Parses a uri into its parts.
25//
26// Returns nullptr if the parse fails.
27std::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.
32CStringUniquePtr ResolveUri(const char* ref_uri, const char* base_uri);
33
34} // namespace dart
35
36#endif // RUNTIME_PLATFORM_URI_H_
CStringUniquePtr path
Definition: uri.h:19
CStringUniquePtr scheme
Definition: uri.h:15
CStringUniquePtr query
Definition: uri.h:20
CStringUniquePtr fragment
Definition: uri.h:21
CStringUniquePtr userinfo
Definition: uri.h:16
CStringUniquePtr port
Definition: uri.h:18
CStringUniquePtr host
Definition: uri.h:17
Definition: dart_vm.cc:33
std::unique_ptr< ParsedUri > ParseUri(const char *uri)
Definition: uri.cc:215
CStringUniquePtr ResolveUri(const char *ref_uri, const char *base_uri)
Definition: uri.cc:432