String Literals with Line Breaks

This section describes string literals with line breaks.

String literals with line breaks are supported in the double-quote enclosed format.

The following example shows a "string" literal contains line breaks:

# "Daffodils" by William Wordsworth
write("I wandered lonely as a cloud 
That floats on high o'er vales and hills, 
When all at once I saw a crowd, 
A host, of golden daffodils; 
Beside the lake, beneath the trees, 
Fluttering and dancing in the breeze.");

Table of Contents

 About This Book

 Introduction of H Language

 Syntax

 Data Types

 Variables

 Expressions

 Statements

 "boolean" Data Type

 "integer" Data Type

"string" Data Type

 What Is "string" Data Type

 "string" Literals

 Escape Sequences in "string" Literals

 Escape Sequences for Non-Printable ASCII Characters

 Escape Sequences for Unicode Characters

String Literals with Line Breaks

 String Literals Continuing on Next Lines

 Expression Interpolation in String Literals

 String Literals with No Escape Sequences

 Constructor Function: string()

 string.get() - Retrieve Character from String

 x[i] - Array Element Format for string.get()

 string.set() - Update Character to String

 x[i] - Array Element Format for string.set()

 "string" "add" Operation

 "string" "subtraction" Operation

 "string" "multiplication" Operation

 "string" "division" Operation

 "string" "modulo" Operation

 string.length() Function

 "real" Data Type

 "array" Data Type

 Source Code Packages

 Classes and Objects

 Object Oriented Programming

 Inheritance - Object Attachments

 Encapsulation - Private Members

 References

 Full Version in PDF/ePUB