string.RemoveConsecutiveConsonantsWithSameSound()

Here are the examples of the csharp api string.RemoveConsecutiveConsonantsWithSameSound() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 Source : Solution.cs
with MIT License
from cwetanow

public static string Soundex(string input)
		{
			if (string.IsNullOrEmpty(input))
			{
				return null;
			}

			var firstLetter = input.First();

			return input
					.RemoveConsecutiveConsonantsWithSameSound()
					.RemoveFirstLetter()
					.RemoveVowels()
					.ReplaceConsonants()
					.AppendNumbers()
					.AppendFirstLetter(firstLetter);
		}