diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-06-04 16:03:56 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-06-04 16:03:56 +0100 |
| commit | 45e530dceda42282fae56b4c4f5fa7865f57899d (patch) | |
| tree | 685868f4bf78c64e851cbcdafd674e887bc782a5 /dotnet/Mammoth/Couscous/JavaStringExtensions.cs | |
| parent | b5a83b1cb96d410e325ff8b733d550295376d8c7 (diff) | |
Remove dotnet (use submodule from dotnet repo instead)
Diffstat (limited to 'dotnet/Mammoth/Couscous/JavaStringExtensions.cs')
| -rw-r--r-- | dotnet/Mammoth/Couscous/JavaStringExtensions.cs | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/dotnet/Mammoth/Couscous/JavaStringExtensions.cs b/dotnet/Mammoth/Couscous/JavaStringExtensions.cs deleted file mode 100644 index bf4e73f..0000000 --- a/dotnet/Mammoth/Couscous/JavaStringExtensions.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System; - -namespace Mammoth.Couscous { - internal static class JavaStringExtensions { - internal static char charAt(this string value, int index) { - return value[index]; - } - - internal static bool equalsIgnoreCase(this string first, string second) { - return first.Equals(second, StringComparison.InvariantCultureIgnoreCase); - } - - internal static string replace(this string original, string search, string replacement) { - return original.Replace(search, replacement); - } - - internal static bool isEmpty(this string value) { - return value.Length == 0; - } - - internal static bool startsWith(this string value, string prefix) { - return value.StartsWith(prefix); - } - - internal static string trim(this string value) { - return value.Trim(); - } - - internal static string[] split(this string value, string separator) { - return System.Text.RegularExpressions.Regex.Split(value, separator); - } - } -} |
