Water 5-Common Data Types-String, Bytes, and Char
class string
Contract
Parameter keyDefault valueType
ends_atfalse
Parameter kindDefault valueType
Other unkeyed argumentsopt with ekind of bytes
Water Contract
<class string
  _other_unkeyed=opt=wob=ekind.bytes=wob="_add_to_environment"
/>
String literals are modeled after Java. They are immutable. You can not for example, take a string and set the first character to something else. You can make string literals by surrounding characters with double_quotes. Example: "a string" Any Unicode character can be put in a string by using a numeric XML entity. A numeric XML entity starts with a &#, followed by an integer representing the character number, and always ends with a semi-colon (;).
"a
string"
to make a newline between "a" and "string". Newline, carriage return, and tab characters have one character entity names: A string with a newline: "first line &n;;second line" A string with a carriage_return "first line &r;;second line" A string with a carriage_return "before tab &t;;after tab" To view the available XML character entities, use char.<entity_names/> To add an XML character entity, use char.<add_entity_name "custom_name" char.newline/> If you want to create a string literal with a lot of double_quotes in it, you may well find it easier to use: <string>a "string" <p/></string> Note that in the above, no "p" object is created. The <p/> is just the ending chars of the string. We could have done exactly the same thing with:
<string>a "string" <p/></string>
The XML syntax for CDATA can also be used.
<![CDATA[some "'<string]]>
<bytes>
some "'<string</>.0