public static long CountAllSpaces(this string text) { return text.CountAll(c => (c == ' ')); }
public static long CountAllWhitespaceCharacters(this string text) { return text.CountAll(c => (c.IsWhitespaceCharacter())); }
public static long CountAllLettersAndDigitsAnd(this string text, char additionalCharacterToKeep) { return text.CountAll(c => (char.IsLetterOrDigit(c) || c == additionalCharacterToKeep)); }
public static long CountAllLettersAndDigitsAnd(this string text, char[] additionalCharactersToKeep) { return text.CountAll(c => (char.IsLetterOrDigit(c) || additionalCharactersToKeep.Contains(c))); }
public static long CountAllLettersAndDigits(this string text) { return text.CountAll(char.IsLetterOrDigit); }
public static long CountAllLetters(this string text) { return text.CountAll(char.IsLetter); }
public static long CountAllDigits(this string text) { return text.CountAll(char.IsDigit); }
public static long CountAll(this string text, char[] charactersToCount) { return text.CountAll(charactersToCount.Contains); }
public static long CountAll(this string text, char characterToCount) { return text.CountAll(c => c == characterToCount); }