Westwind Utilities
StringUtils.Occurs
Table of Contents
On this page:

StringUtils.Occurs

Counts the number of times a sub string occurs in a given string

public static int Occurs(string source, char match)

Parameters

source
input string

match
character to match

Overloads

public static int Occurs(string source, string match)

© West Wind Technologies, 2026 • updated: Jan 30, 2026
Comment or report problem with topic