Previous:Common Color Pitfalls Main Index Next:String Literals

### Strings

The POV-Ray language requires you to specify a string of characters to be used as a file name, text for messages or text for a text object. Strings may be specified using literals, identifiers or functions which return string values. See "String Functions" for details on string functions. Although you cannot build string expressions from symbolic operators such as are used with floats, vectors or colors, you may perform various string operations using string functions. Some applications of strings in POV-Ray allow for non-printing formatting characters such as newline or form-feed.

STRING:
  STRING_FUNCTION

|
  STRING_IDENTIFIER
|
  STRING_LITERAL
STRING_LITERAL:
`
  "
`up to 256 ASCII characters`"`
STRING_FUNCTION:
`
  str(
` FLOAT `,` INT `,` INT `)` | `concat(` STRING `,` STRING `,` [STRING `,`...]`)` | `chr(` INT `)` | `
  substr(
` STRING `,` INT `,` INT `)` | `strupr(` STRING `)` | `strlwr(` STRING `)`

Previous:Common Color Pitfalls Main Index Next:String Literals