Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Roblox
GitHub Repository: Roblox/luau
Path: blob/master/Require/src/PathUtilities.h
2725 views
1
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
2
#pragma once
3
4
#include <string_view>
5
#include <utility>
6
7
namespace Luau::Require
8
{
9
10
enum class PathType
11
{
12
RelativeToCurrent,
13
RelativeToParent,
14
Aliased,
15
Unsupported
16
};
17
18
PathType getPathType(std::string_view path);
19
20
std::pair<std::string_view, std::string_view> splitPath(std::string_view path);
21
22
} // namespace Luau::Require
23
24