String | Manual

String

Literal: 'Hello World, this is a String.' A sequence of bytes or characters. In Citrine, strings are UTF-8 aware. You may only use single quotes. To escape a character use the backslash '\\' character. Use the special characters and to insert a newline or tab respectively. The following string constants exist: a-z equals abcdefghijklmnopqrstuvwxyz A-Z equals ABCDEFGHIJKLMNOPQRESTUVWXYZ Strings in Citrine represent a series of bytes. Strings can be interpreted as real bytes or as text depending on the messages send. For instance, the message 'bytes' returns the number of bytes in a string, while the message 'length' returns the number of characters (as defined as separate UTF-8 code points) in a string.

Welcome to the Citrine Online Manual Pages. This online manual has been generated automatically from source code comments using the shtml.ctr script. All Citrine documentation is also available as a UNIX manual file included in the download package. These pages are just a web version of the original Citrine Programming Language User Manual and Reference Guide.

Improve this manual

You can help to improve this manual. Any help is appreciated! If you spot an error in this manual or you want to contribute, just change the corresponding comment in the original Citrine Programming Language source code hosted on github and create a 'Pull Request'. After the documentation generation script has been invoked again the manual pages will be updated to reflect your contribution and so will these online manual pages.

About Citrine

Citrine is an easy to use programming language for everyone. Citrine is so simple it does not even need special syntax for loops or conditions. You can learn Citrine in just a couple of minutes. Citrine makes programming fun again! Visit the homepage for a quick tutorial.

back to homepage | back to manual menu | top of page