#include <dfe.h>
Definition at line 194 of file dfe.h.
◆ PathSanitizer()
dart::bin::PathSanitizer::PathSanitizer |
( |
const char * |
path | ) |
|
|
explicit |
Definition at line 148 of file dfe.cc.
148 {
149#if defined(DART_HOST_OS_WINDOWS)
150
151
152
153
154
155
156
157
158
159 if (
path ==
nullptr) {
160 return;
161 }
163 char* uri =
reinterpret_cast<char*
>(
new char[
len + 1 + 1]);
164 if (uri == nullptr) {
166 }
168 if (
len > 2 &&
path[1] ==
':') {
170 }
171 for (
const char*
p =
path; *
p !=
'\0'; ++
p, ++
s) {
172 *
s = *
p ==
'\\' ?
'/' : *
p;
173 }
175 sanitized_uri_ = std::unique_ptr<char[]>(uri);
176#else
177 sanitized_uri_ =
path;
178#endif
179}
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
◆ sanitized_uri()
const char * dart::bin::PathSanitizer::sanitized_uri |
( |
| ) |
const |
Definition at line 181 of file dfe.cc.
181 {
182#if defined(DART_HOST_OS_WINDOWS)
183 return sanitized_uri_.get();
184#else
185 return sanitized_uri_;
186#endif
187}
The documentation for this class was generated from the following files:
- third_party/dart-lang/sdk/runtime/bin/dfe.h
- third_party/dart-lang/sdk/runtime/bin/dfe.cc