Softanza
StartFrançais
Softanza
The library documents itself · String

stzStringCounter

23 own methods · 12 forms written with extensions, listed under their method

the source: base/string/stzStringCounter.ring(opens in a new tab) · All classes · The area reference: String

Under each method, its extensions (Q CS XT Z ZZ IB W U): bold and ticked, it exists; struck, it does not. The extensions and what they mean

Examples: 0 come from the library's tests; 20 were composed from each method's signature and run for this page, on a fresh object, for example o1 = new stzStringCounter("abc 123 def 456 ghi 789"). 3 methods have none yet. Examples run on 2026-10-03 12:54 inside the library at commit 0e72e2e2c.

Method
Explanation, as the source carries it
init
initializationno extension
Content
content accessno extension
NumberOfChars
content access
composed example
o1 = new stzStringCounter("abc 123 def 456 ghi 789")
? o1.NumberOfChars()
#--> 23
composed from the signature, run for this page
QCSXTZZZIBWU
IsEmpty
content access
composed example
o1 = new stzStringCounter("abc 123 def 456 ghi 789")
? o1.IsEmpty()
#--> 0
composed from the signature, run for this page
no extension
NumberOfOccurrence
counting occurrences of a substringalso written: NumberOfOccurrences
composed example
o1 = new stzStringCounter("abc 123 def 456 ghi 789")
? o1.NumberOfOccurrence("an")
#--> 0
composed from the signature, run for this page
QCSXTZZZIBWU
Count
Same as CountCS: How many times the given substring occurs.also written: CountSubString
composed example
o1 = new stzStringCounter("abc 123 def 456 ghi 789")
? o1.Count("an")
#--> 0
composed from the signature, run for this page
QCSXTZZZIBWU
NumberOfSubStrings
number of substringsalso written: HowManySubStrings
composed example
o1 = new stzStringCounter("abc 123 def 456 ghi 789")
? o1.NumberOfSubStrings()
#--> 276
composed from the signature, run for this page
QCSXTZZZIBWU
CountBetween
count between two positionsQCSXTZZZIBWU
CountAnyChar
in a given set)
composed example
o1 = new stzStringCounter("abc 123 def 456 ghi 789")
? o1.CountAnyChar("an")
#--> 1
composed from the signature, run for this page
no extension
CountLeadingChar
count leading / trailing char
composed example
o1 = new stzStringCounter("abc 123 def 456 ghi 789")
? o1.CountLeadingChar("an")
#--> 1
composed from the signature, run for this page
no extension
CountTrailingChar
count leading / trailing char
composed example
o1 = new stzStringCounter("abc 123 def 456 ghi 789")
? o1.CountTrailingChar("an")
#--> 0
composed from the signature, run for this page
no extension
CountBetweenMarkers
count between markers
composed example
o1 = new stzStringCounter("abc 123 def 456 ghi 789")
? o1.CountBetweenMarkers("an", "an")
#--> 0
composed from the signature, run for this page
no extension
GraphemeCount
grapheme count
composed example
o1 = new stzStringCounter("abc 123 def 456 ghi 789")
? o1.GraphemeCount()
#--> 23
composed from the signature, run for this page
no extension
CountMarks
script-specific counts
composed example
o1 = new stzStringCounter("abc 123 def 456 ghi 789")
? o1.CountMarks()
#--> 0
composed from the signature, run for this page
no extension
CountControls
script-specific counts
composed example
o1 = new stzStringCounter("abc 123 def 456 ghi 789")
? o1.CountControls()
#--> 0
composed from the signature, run for this page
no extension
CountCjk
script-specific counts
composed example
o1 = new stzStringCounter("abc 123 def 456 ghi 789")
? o1.CountCjk()
#--> 0
composed from the signature, run for this page
no extension
CountCyrillic
script-specific counts
composed example
o1 = new stzStringCounter("abc 123 def 456 ghi 789")
? o1.CountCyrillic()
#--> 0
composed from the signature, run for this page
no extension
CountHebrew
script-specific counts
composed example
o1 = new stzStringCounter("abc 123 def 456 ghi 789")
? o1.CountHebrew()
#--> 0
composed from the signature, run for this page
no extension
CountDevanagari
script-specific counts
composed example
o1 = new stzStringCounter("abc 123 def 456 ghi 789")
? o1.CountDevanagari()
#--> 0
composed from the signature, run for this page
no extension
CountThai
script-specific counts
composed example
o1 = new stzStringCounter("abc 123 def 456 ghi 789")
? o1.CountThai()
#--> 0
composed from the signature, run for this page
no extension
CountOverlapping
Same as CountOverlappingCS: How many times it occurs, counting OVERLAPPING matches.
composed example
o1 = new stzStringCounter("abc 123 def 456 ghi 789")
? o1.CountOverlapping("an")
#--> 0
composed from the signature, run for this page
QCSXTZZZIBWU
CountRegex
How many matches of the given regex pattern.also written: NumberOfRegexMatches
composed example
o1 = new stzStringCounter("abc 123 def 456 ghi 789")
? o1.CountRegex("an")
#--> 0
composed from the signature, run for this page
QCSXTZZZIBWU
CountCharsW
count chars matching expressionalso written: CountCharsWhere
composed example
o1 = new stzStringCounter("abc 123 def 456 ghi 789")
? o1.CountCharsW("@char = 'a'")
#--> 1
composed from the signature, run for this page
no extension