Internationalization and localization tools


Culture-Sensitive C# Method

using System.Globalization

public virtual int IndexOf(string source, char value);

public virtual int IndexOf(string source, string value);

public virtual int IndexOf(string source, char value, CompareOptions options);

public virtual int IndexOf(string source, char value, int startIndex)

public virtual int IndexOf(string source, string value, CompareOptions options);

public virtual int IndexOf(string source, string value, int startIndex);

public virtual int IndexOf(string source, char value, int startIndex, CompareOptions options);

public virtual int IndexOf(string source, char value, int startIndex, int count);

public virtual int IndexOf(string source, string value, int startIndex, CompareOptions options);

public virtual int IndexOf(string source, string value, int startIndex, int count);

public virtual int IndexOf(string source, char value, int startIndex, int count, CompareOptions options);

public virtual int IndexOf(string source, string value, int startIndex, int count, CompareOptions options);

Internationalization (I18n) Method Overview

Searches for the specified value and returns the zero-based index of the first occurrence within the source string (or substring).

For more information see Microsoft's MSDN online documentation.

I18n Issues

We flag this method to ensure that the CompareInfo object, through which this method is called, has been created for the correct culture. To create a CompareInfo object for any culture, use the GetCompareInfo method.

Culture and Number Format Information

 

Lingoport internationalization and localization services and software