Main Features Download Documentation Resources

String Literal


Different programming languages have very distinct formats for string literals. Most often, the are a series of characters delimited with double-quotes. However, this is not always the case. Some languages use single quotes, such as Smalltalk, or an even more exotic format.

Whenever the template needs to create a string literal, it uses the this section. There are a series of override character keys that useful for overriding the delimiters.

Java Example
[String Literal]
Text = "{Characters}"
Replace Char 1 = "
Replace By 1 = \"
Replace Char 2 = \
Replace By 2 = \\

Text Key

The text key is used to generate the syntax of the string literal. The {characters} field contains a character sequence after the original string is modified by the various replacement keys.

Fields Contents
{characters} The characters of the string literal

Replace Keys

String literals can contain up to 3 character replacement pairs. In the example above, all occurances of " will be replaced by \" and all occurances of \ will be replaced by \\.