Softanza
StartFrançais
Softanza
The library documents itself · String

stzStringNumbers

22 own methods · 3 forms written with extensions, listed under their method

the source: base/string/stzStringNumbers.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; 18 were composed from each method's signature and run for this page, on a fresh object, for example o1 = new stzStringNumbers("price is 42 and tax is 8"). 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 stzStringNumbers("price is 42 and tax is 8")
? o1.NumberOfChars()
#--> 24
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 stzStringNumbers("price is 42 and tax is 8")
? o1.IsEmpty()
#--> 0
composed from the signature, run for this page
no extension
Numbers
extract numbersalso written: ExtractNumbers
composed example
o1 = new stzStringNumbers("price is 42 and tax is 8")
? @@( o1.Numbers() )
#--> [ 42, 8 ]
composed from the signature, run for this page
QCSXTZZZIBWU
NumberOfNumbers
number countalso written: CountNumbers · HowManyNumbers
composed example
o1 = new stzStringNumbers("price is 42 and tax is 8")
? o1.NumberOfNumbers()
#--> 2
composed from the signature, run for this page
no extension
ContainsNumbers
contains numbers
composed example
o1 = new stzStringNumbers("price is 42 and tax is 8")
? o1.ContainsNumbers()
#--> 1
composed from the signature, run for this page
no extension
ContainsOnlyNumbers
contains numbers
composed example
o1 = new stzStringNumbers("price is 42 and tax is 8")
? o1.ContainsOnlyNumbers()
#--> 0
composed from the signature, run for this page
no extension
RemoveNumbers
remove numbers
composed example
o1 = new stzStringNumbers("price is 42 and tax is 8")
o1.RemoveNumbers()
? o1.Content()
#--> price is  and tax is
composed from the signature, run for this page
QCSXTZZZIBWU
NumbersRemoved
remove numbers
composed example
o1 = new stzStringNumbers("price is 42 and tax is 8")
? o1.NumbersRemoved()
#--> price is  and tax is
composed from the signature, run for this page
no extension
SumOfNumbers
sum / stats
composed example
o1 = new stzStringNumbers("price is 42 and tax is 8")
? o1.SumOfNumbers()
#--> 50
composed from the signature, run for this page
no extension
MaxNumber
max / min / average
composed example
o1 = new stzStringNumbers("price is 42 and tax is 8")
? o1.MaxNumber()
#--> 42
composed from the signature, run for this page
no extension
MinNumber
max / min / average
composed example
o1 = new stzStringNumbers("price is 42 and tax is 8")
? o1.MinNumber()
#--> 8
composed from the signature, run for this page
no extension
AverageOfNumbers
max / min / average
composed example
o1 = new stzStringNumbers("price is 42 and tax is 8")
? o1.AverageOfNumbers()
#--> 25
composed from the signature, run for this page
no extension
NthNumber
nth / first / last
composed example
o1 = new stzStringNumbers("price is 42 and tax is 8")
? o1.NthNumber(2)
#--> 8
composed from the signature, run for this page
no extension
FirstNumber
nth / first / last
composed example
o1 = new stzStringNumbers("price is 42 and tax is 8")
? o1.FirstNumber()
#--> 42
composed from the signature, run for this page
no extension
LastNumber
nth / first / last
composed example
o1 = new stzStringNumbers("price is 42 and tax is 8")
? o1.LastNumber()
#--> 8
composed from the signature, run for this page
no extension
ReplaceNumbers
replace numbersQCSXTZZZIBWU
NumbersReplaced
replace numbersno extension
NumbersAsStrings
numbers as strings
composed example
o1 = new stzStringNumbers("price is 42 and tax is 8")
? @@( o1.NumbersAsStrings() )
#--> [ "42", "8" ]
composed from the signature, run for this page
no extension
PositionsOfNumbers
positions of numbers
composed example
o1 = new stzStringNumbers("price is 42 and tax is 8")
? @@( o1.PositionsOfNumbers() )
#--> [ 10, 24 ]
composed from the signature, run for this page
no extension
ScanInteger
scan integer
composed example
o1 = new stzStringNumbers("price is 42 and tax is 8")
? o1.ScanInteger()
#--> 42
composed from the signature, run for this page
no extension