-
WikiChip
WikiChip
-
Architectures
Popular x86
-
Intel
- Client
- Server
- Big Cores
- Small Cores
-
AMD
Popular ARM
-
ARM
- Server
- Big
- Little
-
Cavium
-
Samsung
-
-
Chips
Popular Families
-
Ampere
-
Apple
-
Cavium
-
HiSilicon
-
MediaTek
-
NXP
-
Qualcomm
-
Renesas
-
Samsung
-
From WikiChip
mirc/identifiers/$count
< mirc | identifiers
The $count identifier allows mIRC to return the total count of a matching substring, or set of substrings to a target string.
Synopsis
$count(string,substring,substring2,...)
Parameters
string The target string to match
substring The substring to match within the target
substring2,... The second substring to match, and beyond
Example
The example string is going to be: My string to match
Echo the matching substring count for str:
//echo -a Result: $count(My string to match,str)
Result: 1
Echo the matching substring count for str and m:
//echo -a Result: $count(My string to match,str,m)
Result: 3
The above returns 3 because str is matched to string once, and m is matched to My and match; therefore, the total matches is 3.
Compatibility
Added: mIRC v4.6
Added On: 07/09/96