InsertSubStrings()
InsertSubStrings(anPos, pacStr): insert pacStr[i] at anPos[i], processed from highest position down so earlier positions stay valid.
Basic examples (2)
o1 = new stzString("All our software versions must be updated!")
o1.InsertSubStrings( o1.PositionAfter("versions"), [ "V1", "V2", "V3" ])
# parenthesized with padding spaces
? o1.Content()All our software versions (V1, V2, V3) must be updated!
run on 2026-10-02 04:24 inside the library at commit 0e72e2e2c; taken from 836_content.ring(opens in a new tab)
o1 = new stzString("All our software versions must be updated!")
o1.InsertSubStringsXT(
o1.PositionAfter("versions"),
[ " V1", "V2", "V3" ],
[ :MainSeparator = "+" ]
)
# bare join
? o1.Content()All our software versions V1+V2+V3 must be updated!
run on 2026-10-02 04:24 inside the library at commit 0e72e2e2c; taken from 837_content.ring(opens in a new tab)
Scope (1)
o1 = new stzString("All our software versions must be updated!")
nPosition = o1.PositionAfter("versions")
o1.InsertSubstringsXT(
nPosition,
[ "V1", "V2", "V3", "V4", "V5" ],
[
:InsertBeforeOrAfter = :Before,
:OpeningChar = "{ ",
:ClosingChar = " }",
:MainSeparator = ",",
:AddSpaceAfterSeparator = TRUE,
:LastSeparator = "and",
:AddLastToMainSeparator = TRUE,
:SpaceOption = :AddLeadingSpace
]
)
# the list sits in the sentence
? o1.Content()All our software versions { V1, V2, V3, V4, and V5 } must be updated!run on 2026-10-02 04:24 inside the library at commit 0e72e2e2c; taken from 835_inserting_lists_inside_a_string.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.

