icount Summary Counts the occurrences of the specified substring in the string while ignoring case. Usage public unsigned int icount(string substr) Returns The number of occurrences of the specified substring - regardless of case - in the string. Parameters substr The substring to count. Description Counts the number of occurrences of the specified substring in the string while ignoring case. Examples Basic Usage 12345import System; string str = "abc 123 abc 123";Console.log(str.count("abc")); // 2Console.log(str.count("ABC")); // 2 Share HTML | BBCode | Direct Link