Softanza
StartFrançais
Softanza
The library documents itself · String

stzStringDuplicates

16 own methods · 6 forms written with extensions, listed under their method

the source: base/string/stzStringDuplicates.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; 12 were composed from each method's signature and run for this page, on a fresh object, for example o1 = new stzStringDuplicates("hello world hello"). 4 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
(no comment in the source: the name reads as a sentence) initno extension
Content
(no comment in the source: the name reads as a sentence) contentno extension
NumberOfChars
(no comment in the source: the name reads as a sentence) number of chars
composed example
o1 = new stzStringDuplicates("hello world hello")
? o1.NumberOfChars()
#--> 17
composed from the signature, run for this page
no extension
IsEmpty
(no comment in the source: the name reads as a sentence) is empty
composed example
o1 = new stzStringDuplicates("hello world hello")
? o1.IsEmpty()
#--> 0
composed from the signature, run for this page
no extension
DuplicatedChars
duplicate chars
composed example
o1 = new stzStringDuplicates("hello world hello")
? @@( o1.DuplicatedChars() )
#--> [ "l", "o", " ", "h", "e" ]
composed from the signature, run for this page
no extension
HasDuplicatedChars
duplicate chars
composed example
o1 = new stzStringDuplicates("hello world hello")
? o1.HasDuplicatedChars()
#--> 1
composed from the signature, run for this page
no extension
NumberOfDuplicatedChars
duplicate chars
composed example
o1 = new stzStringDuplicates("hello world hello")
? o1.NumberOfDuplicatedChars()
#--> 5
composed from the signature, run for this page
no extension
UniqueChars
unique chars
composed example
o1 = new stzStringDuplicates("hello world hello")
? @@( o1.UniqueChars() )
#--> [ "h", "e", "l", "o", " ", "w", "r", "d" ]
composed from the signature, run for this page
no extension
NumberOfUniqueChars
unique chars
composed example
o1 = new stzStringDuplicates("hello world hello")
? o1.NumberOfUniqueChars()
#--> 8
composed from the signature, run for this page
no extension
HasConsecutiveDuplicates
consecutive chars
composed example
o1 = new stzStringDuplicates("hello world hello")
? o1.HasConsecutiveDuplicates()
#--> 1
composed from the signature, run for this page
no extension
RemoveConsecutiveDuplicateChars
consecutive chars
composed example
o1 = new stzStringDuplicates("hello world hello")
o1.RemoveConsecutiveDuplicateChars()
? o1.Content()
#--> helo world helo
composed from the signature, run for this page
QCSXTZZZIBWU
ConsecutiveDuplicateCharsRemoved
consecutive chars
composed example
o1 = new stzStringDuplicates("hello world hello")
? o1.ConsecutiveDuplicateCharsRemoved()
#--> helo world helo
composed from the signature, run for this page
no extension
RemoveAllDuplicateChars
remove all duplicates
composed example
o1 = new stzStringDuplicates("hello world hello")
o1.RemoveAllDuplicateChars()
? o1.Content()
#--> helo wrd
composed from the signature, run for this page
QCSXTZZZIBWU
AllDuplicateCharsRemoved
remove all duplicates
composed example
o1 = new stzStringDuplicates("hello world hello")
? o1.AllDuplicateCharsRemoved()
#--> helo wrd
composed from the signature, run for this page
no extension
RemoveDuplicateSubString
deduplicate substringsQCSXTZZZIBWU
DuplicateSubStringRemoved
deduplicate substringsQCSXTZZZIBWU