From ee97cb9053cced3ccfedd7ddf210579827859b6a Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Tue, 14 Feb 2023 20:25:34 +0700 Subject: Refactoring in Cms --- crypto/src/util/Platform.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crypto/src/util/Platform.cs') 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); -- cgit 1.4.1