diff options
Diffstat (limited to '')
-rw-r--r-- | crypto/src/util/Platform.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/src/util/Platform.cs b/crypto/src/util/Platform.cs index e43714181..25f2c62d9 100644 --- a/crypto/src/util/Platform.cs +++ b/crypto/src/util/Platform.cs @@ -56,6 +56,11 @@ namespace Org.BouncyCastle.Utilities return InvariantCompareInfo.IsPrefix(source, prefix, CompareOptions.Ordinal); } + internal static bool StartsWithIgnoreCase(string source, string prefix) + { + return InvariantCompareInfo.IsPrefix(source, prefix, CompareOptions.OrdinalIgnoreCase); + } + internal static bool EndsWith(string source, string suffix) { return InvariantCompareInfo.IsSuffix(source, suffix, CompareOptions.Ordinal); |