Count occurrences of a substring: Difference between revisions
Content deleted Content added
Thundergnat (talk | contribs) m →{{header|C sharp}}: Regularize header markup to recommended on category page |
|||
Line 985:
var count = 0
while true {
idx = str.
if idx == -1 {
break
}
idx += val.
count += 1
}
|