String Literals Continuing on Next Lines

This section describes string literals continuing on the next lines.

An escape sequence is needed to allow us continue a single string literal on the next line of the source code:

If \ is followed by +, ("\+"), all white spaces characters, including line breaks, that follows this escape sequence are ignored.

Examples of "string" literals with escape sequences for Unicode characters:

write("Hello \+
   world!"); 

write(
"   The old lady pulled her spectacles down and looked over them \+
about the room; then she put them up and looked out under them. \+ 
She seldom or never looked through them for so small a thing as \+
a boy; they were her state pair, the pride of her heart, and \+
were built for “style,” not service—she could have seen through \+
a pair of stove-lids just as well. She looked perplexed for a \+
moment, and then said, not fiercely, but still loud enough for \+
the furniture to hear:
   
   “Well, I lay if I get hold of you I’ll—”"
);

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