Where Online Learning is simpler!
The C and C++ Include Header Files
cat -n /usr/include/nodejs/src/path.h
1 #ifndef SRC_PATH_H_ 2 #define SRC_PATH_H_ 3 4 #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS 5 6 #include <string> 7 #include <vector> 8 #include "node_options-inl.h" 9 #include "util-inl.h" 10 11 namespace node { 12 13 constexpr bool IsPathSeparator(const char c) noexcept; 14 15 std::string NormalizeString(const std::string_view path, 16 bool allowAboveRoot, 17 const std::string_view separator); 18 19 std::string PathResolve(Environment* env, 20 const std::vector<std::string_view>& paths); 21 22 #ifdef _WIN32 23 constexpr bool IsWindowsDeviceRoot(const char c) noexcept; 24 #endif // _WIN32 25 26 void ToNamespacedPath(Environment* env, BufferValue* path); 27 void FromNamespacedPath(std::string* path); 28 29 } // namespace node 30 31 #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS 32 33 #endif // SRC_PATH_H_