Content()
getting content of the string
also written: Text · AsWell · String · ToString · TheString · Stringified · DeepStringified
Basic examples (2)
o1 = new stzList([ 1, 2, 3 ])
? @@( o1 + Q(4) + 5 )
? @@( (o1 + Q("X" : "Z")).content() )[ 1, 2, 3, 4, 5 ] [ 1, 2, 3, [ "X", "Y", "Z" ] ]
run on 2026-10-02 04:22 inside the library at commit 0e72e2e2c; taken from 408_plus_operator.ring(opens in a new tab)
o1 = new stzString("File")
? o1 * 3
? o1 + "File"
? @@( o1 / 4 )
? o1.Content()FileFileFile FileFile [ "F", "i", "l", "e" ] File
run on 2026-10-02 04:23 inside the library at commit 0e72e2e2c; taken from 583_string_operators.ring(opens in a new tab)
Scope (4)
o1 = new stzString("A**BC***DE***")
# stars removed in the result
? o1 - "*"
# ... but the object keeps them
? o1.Content()ABCDE A**BC***DE***
run on 2026-10-02 04:24 inside the library at commit 0e72e2e2c; taken from 996_minusoperator.ring(opens in a new tab)
o2 = new stzString("R I N G")
# Copy().ReplaceQ() returns the changed copy
? o2.Copy().ReplaceQ(" ", "-").Content()
# the original is unchanged
? o2.Content()R-I-N-G R I N G
run on 2026-10-02 04:24 inside the library at commit 0e72e2e2c; taken from 55_replace_ref_vs_copy.ring(opens in a new tab)
o1 = new stzString("ilir")
# Copy().Uppercase.Spacify.Replace(' ','*') -> I*L*I*R
? o1.Copy().UppercaseQ().SpacifyQ().ReplaceQ(" ", "*").Content()
# the original is unchanged
? o1.Content()I*L*I*R ilir
run on 2026-10-02 04:24 inside the library at commit 0e72e2e2c; taken from 52_copy.ring(opens in a new tab)
o1 = new stzString("Barack Obama loves the wonderful city of Paris.")
# string delegates to the domain
? o1.Sentiment()
# Q(str).TextQ() reaches the same domain object
? o1.TextQ().Sentiment()
# Text() (no Q) returns DATA -- the content, not an object
? o1.Text()
ot = StzTextQ("Barack Obama loves the wonderful city of Paris.")
# a stzText is the domain object itself
? @@(ot.PersonNames())
# stzText inherits the structural layer (Words) from stzStringText
? len(ot.Words())positive positive Barack Obama loves the wonderful city of Paris. [ "Barack Obama" ] 8
run on 2026-10-02 04:23 inside the library at commit 0e72e2e2c; taken from text_query_layer_narrated.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.Copy · stzString.Sentiment · stzText.PersonNames · stzText.Sentiment

