IsMadeOf()
Same as IsMadeOfCS: TRUE if the string is built ONLY from the given substring(s).
Basic examples (2)
# made of m, a, a, n
? Q("maan").IsMadeOf([ "m", "a", "a", "n" ])1
run on 2026-10-02 04:24 inside the library at commit 0e72e2e2c; taken from 852_ismadeof.ring(opens in a new tab)
# all octal digits qualify
? Q("01234567").IsMadeOfSome( OctalChars() )
# a binary string uses both bits
? Q("001100101").IsMadeOf( BinaryChars() )1 1
run on 2026-10-02 04:24 inside the library at commit 0e72e2e2c; taken from 848_ismadeofsome.ring(opens in a new tab)
Scope (4)
o1 = new stzString("10011033001")
# made of 1, 0 and 3
? o1.IsMadeOf([ "1", "0", "3" ])
# same, said narratively
? o1.IsMadeOf([ "1", "0", :and = "3" ])1 1
run on 2026-10-02 04:24 inside the library at commit 0e72e2e2c; taken from 847_ismadeof.ring(opens in a new tab)
o1 = new stzString("aabbcaacccbb")
# made of aa, bb and c
? o1.IsMadeOf([ "aa", "bb", "c" ])
# made of some of a, b, c, x
? o1.IsMadeOfSome([ "a", "b", "c", "x" ])1 1
run on 2026-10-02 04:24 inside the library at commit 0e72e2e2c; taken from 816_ismadeof.ring(opens in a new tab)
# '121212' is made of '12'
? Q("121212").IsMadeOf("12")
# '121212' is made of ['1','2']
? Q("121212").IsMadeOf([ "1", "2" ])
# '984332' is made of numbers
? Q("984332").IsMadeOfNumbers()1 1 1
run on 2026-10-02 04:23 inside the library at commit 0e72e2e2c; taken from 254_ismadeof.ring(opens in a new tab)
o1 = new stzString("سلسبيل")
# its four letters
? o1.IsMadeOf([ "ب", "ل", "س", "ي" ])
# an unused fifth spoils IsMadeOf
? o1.IsMadeOf([ "ب", "ل", "س", "ي", "ج" ])
# ... but not IsMadeOfSome
? o1.IsMadeOfSome([ "ب", "ل", "س", "ي", "m" ])1 0 1
run on 2026-10-02 04:24 inside the library at commit 0e72e2e2c; taken from 817_ismadeof.ring(opens in a new tab)
The extensions of this method
Each extension, and whether it exists for this method; an extension that exists combines with the others (FindSTCS).
Every example is a test file of the library, run inside the library for this page; only those whose output kept every promise their file wrote are shown.
See also
- The class stzString
- The area's reference: String
- The other methods in these examples: stzString.IsMadeOfNumbers · stzString.IsMadeOfSome

