2021-09-29 21:55:11 +00:00
|
|
|
|
#if NETFRAMEWORK || NETSTANDARD2_0
|
2020-11-18 09:16:53 -08:00
|
|
|
|
|
2021-03-18 17:46:18 +07:00
|
|
|
|
namespace SharpCompress
|
2020-11-18 09:16:53 -08:00
|
|
|
|
{
|
2021-03-18 17:46:18 +07:00
|
|
|
|
internal static class StringExtensions
|
2020-11-18 09:16:53 -08:00
|
|
|
|
{
|
2021-03-18 17:46:18 +07:00
|
|
|
|
internal static bool EndsWith(this string text, char value)
|
2020-11-18 09:16:53 -08:00
|
|
|
|
{
|
|
|
|
|
|
return text.Length > 0 && text[text.Length - 1] == value;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2021-03-18 17:46:18 +07:00
|
|
|
|
internal static bool Contains(this string text, char value)
|
2020-11-18 09:16:53 -08:00
|
|
|
|
{
|
|
|
|
|
|
return text.IndexOf(value) > -1;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2022-12-20 13:45:47 +00:00
|
|
|
|
#endif
|