6#if defined(DART_HOST_OS_WINDOWS)
22 return new Namespace(
nullptr);
30Namespace::~Namespace() {
31 ASSERT(namespc_ ==
nullptr);
39 int length = GetCurrentDirectoryW(0,
nullptr);
44 current =
reinterpret_cast<wchar_t*
>(
46 GetCurrentDirectoryW(
length + 1, current);
58 bool result = SetCurrentDirectoryW(system_path.get()) != 0;
62void Namespace::ResolvePath(Namespace* namespc,
65 const char** resolved_path) {
NamespaceScope(Namespace *namespc, const char *path)
static Namespace * Create(intptr_t namespc)
static const char * GetCurrent(Namespace *namespc)
static intptr_t Default()
static bool SetCurrent(Namespace *namespc, const char *path)
static char * WideToUtf8(wchar_t *wide, intptr_t len=-1, intptr_t *result_len=nullptr)
std::unique_ptr< wchar_t[]> Utf8ToWideChar(const char *path)
DART_EXPORT uint8_t * Dart_ScopeAllocate(intptr_t size)