using System;
using System.Globalization;
namespace MediaBrowser.Model.Extensions
{
    /// 
    /// Isolating these helpers allow this entire project to be easily converted to Java
    /// 
    public static class StringHelper
    {
        /// 
        /// Equalses the ignore case.
        /// 
        /// The STR1.
        /// The STR2.
        /// true if XXXX, false otherwise.
        public static bool EqualsIgnoreCase(string str1, string str2)
        {
            return string.Equals(str1, str2, StringComparison.OrdinalIgnoreCase);
        }
        /// 
        /// Indexes the of ignore case.
        /// 
        /// The string.
        /// The value.
        /// System.Int32.
        public static int IndexOfIgnoreCase(string str, string value)
        {
            return str.IndexOf(value, StringComparison.OrdinalIgnoreCase);
        }
        /// 
        /// To the string culture invariant.
        /// 
        /// The value.
        /// System.String.
        public static string ToStringCultureInvariant(int val)
        {
            return val.ToString(CultureInfo.InvariantCulture);
        }
        /// 
        /// To the string culture invariant.
        /// 
        /// The value.
        /// System.String.
        public static string ToStringCultureInvariant(long val)
        {
            return val.ToString(CultureInfo.InvariantCulture);
        }
        /// 
        /// To the string culture invariant.
        /// 
        /// The value.
        /// System.String.
        public static string ToStringCultureInvariant(double val)
        {
            return val.ToString(CultureInfo.InvariantCulture);
        }
    }
}