StringTools[CountCharacterOccurrences] - count the number of occurrences of a character in a string
|
Calling Sequence
|
|
CountCharacterOccurrences( s, ch )
|
|
Parameters
|
|
s
|
-
|
Maple string
|
ch
|
-
|
Maple string; character
|
|
|
|
|
Description
|
|
•
|
The CountCharacterOccurrences( s, ch ) calling sequence counts the number of occurrences of the character ch in the string s. A non-negative integer is returned.
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
|
|
Download Help Document
Was this information helpful?