diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-04-14 21:12:07 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-04-17 16:52:39 +0100 |
| commit | 0f9ef005f063198ea2e16ca36beaead4bd5e3824 (patch) | |
| tree | 4ec2f53e900d4cbe9e5258bca48ec0938a8a1762 /dotnet/Mammoth/Couscous/mammoth/internal/util/Paths.cs | |
| parent | 490f87c92ff1618591d1932f23613740e79dcb4b (diff) | |
Add .NET output
Diffstat (limited to 'dotnet/Mammoth/Couscous/mammoth/internal/util/Paths.cs')
| -rw-r--r-- | dotnet/Mammoth/Couscous/mammoth/internal/util/Paths.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dotnet/Mammoth/Couscous/mammoth/internal/util/Paths.cs b/dotnet/Mammoth/Couscous/mammoth/internal/util/Paths.cs new file mode 100644 index 0000000..ca876eb --- /dev/null +++ b/dotnet/Mammoth/Couscous/mammoth/internal/util/Paths.cs @@ -0,0 +1,8 @@ +namespace Mammoth.Couscous.org.zwobble.mammoth.@internal.util { + internal static class Paths { + internal static string getExtension(string path) { + int dotIndex = path.LastIndexOf('.'); + return dotIndex == -1 ? "" : path.Substring(dotIndex + 1); + } + } +} |
