aboutsummaryrefslogtreecommitdiff
path: root/dotnet/Mammoth/Couscous/mammoth/internal/util/Paths.cs
diff options
context:
space:
mode:
Diffstat (limited to 'dotnet/Mammoth/Couscous/mammoth/internal/util/Paths.cs')
-rw-r--r--dotnet/Mammoth/Couscous/mammoth/internal/util/Paths.cs8
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);
+ }
+ }
+}