IsMadeOfSome()
Same as IsMadeOfSomeCS: TRUE if the string is made only of (some of) the given substrings.
Basic examples (2)
# all chars are hex digits
? Q("4E992").IsMadeOfSome( HexChars() )1
run on 2026-10-02 04:24 inside the library at commit 0e72e2e2c; taken from 850_ismadeofsome.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 (2)
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)
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.IsMadeOf

