Menu

Strings

Cyder

Strings

The c11 standard describes 4 ways string or characters can be written:

  1. Regular string: "Text here"
  2. Wide string: L"Text here"
  3. 16-bit String: u"Text here"
  4. 32-bit String: U"Text here"

Characters are written the same as strings, but use ' instead of ".
TPP Support all 4 of these strings and accepts all character escape codes described by the standard. As an extension, TPP also allows for the \e escape code for the esc (27) character.

Hint: Characters are considered Integral constants and can be used in #if constant expressions

s.a. [Conditional directives]


Related

Wiki: Conditional directives
Wiki: Multi char constants

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.