forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpath.h
More file actions
33 lines (22 loc) · 818 Bytes
/
path.h
File metadata and controls
33 lines (22 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef SRC_PATH_H_
#define SRC_PATH_H_
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
#include <string>
#include <vector>
#include "node_options-inl.h"
#include "util-inl.h"
namespace node {
class Environment;
constexpr bool IsPathSeparator(char c) noexcept;
std::string NormalizeString(const std::string_view path,
bool allowAboveRoot,
const std::string_view separator);
std::string PathResolve(Environment* env,
const std::vector<std::string_view>& paths);
#ifdef _WIN32
constexpr bool IsWindowsDeviceRoot(const char c) noexcept;
#endif // _WIN32
void ToNamespacedPath(Environment* env, BufferValue* path);
} // namespace node
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
#endif // SRC_PATH_H_