LogoLogo
  • Internet Object 1.0
  • Internet Object
    • Abstract
    • The Poetic Principles of Internet Object
    • Objectives
    • Introducing Internet Object
  • The Structure
    • Internet Object Document
      • Header
      • Data Sections
    • Structural Elements
      • Structural Characters and Literals
      • Literals
      • Other Special Characters
      • Whitespaces
    • Values Representations
      • Objects
      • Arrays
      • Strings
        • Open Strings
        • Regular Strings
        • Raw Strings
      • Numeric Values
        • Number
        • BigInt
        • Decimal
        • Special Numeric Integer Formats
          • Hexadecimal
          • Octal
          • Binary
        • NaN and Infinity
      • Binary
      • Date and Time
      • Booleans
      • Nulls
    • Comments
    • Encoding
  • The Collections
    • Collection
    • Creating Collection
    • Collection Rules
    • Data Streaming
  • The Definitions
    • Definitions
    • Variables
    • Complex Schema
  • Schema Definition Language
    • Internet Object Schema
    • The structure
    • Data Types
      • Any
      • String
        • String Derived Types
          • Email
          • URL
          • Date
          • Time
          • DateTime
      • Number
        • Derived Types
          • int
          • byte
          • int16
          • int32
      • Object
      • Array
      • Bool
    • Dynamic Schema
    • Is Object, a MemberDef or a Schema?
  • Other
    • Best Practices
    • FAQs
    • Contributors
    • License
Powered by GitBook
On this page
  • An Open String Walkthrough
  • Escaping

Was this helpful?

Edit on GitHub
Export as PDF
  1. The Structure
  2. Values Representations
  3. Strings

Open Strings

PreviousStringsNextRegular Strings

Last updated 4 years ago

Was this helpful?

This is the simplest and the most basic type of format is the Open string format. As the name suggests, open strings are not enclosed within any sort of enclosures or quotation marks. This free and open type of string starts with any non-whitespace codepoint. They end when any structural character(s) is encountered or when the end of the document is reached.

Open strings can not start or end with the whitespace character. However, whitespace characters within the strings are preserved. The quotation characters ( " U+0022 or ' U+0027) do not require to be escaped.

The Open String

An Open String Walkthrough

A simple open string. Notice it is not enclosed in any sort of enclosures.

John Doe

Quotes in the open strings don't cause termination.

Peter D'mello 

The following object contains three open string Unicode values.

जॉन डो, Wow Great, 😃

To create a multiline string, you don't need any escaping mechanism. In the following case, a string is spread over the five lines.

Lorem ipsum dolor sit amet consetetur sadipscing elitr sed 
diam nonumy eirmod. 

Tempor invidunt ut labore et dolore magna aliquyam erat 
sed diam voluptua

Escaping

In order to keep things simple, the open string format does not support character escaping. If the text does not fit into open string format, other formats such as regular string can be used.