Instant properties: lower

The instant property lower represents the lower case version of a string or character stored within a string or char operand.

Declaration

Form 1:

string string.lower

Form 2:

char char.lower

Discussion

The first version of the lower instant property is used in context of a string operand. The read access to this property results in a copy of the original string with upper case characters changed to the lower case notation. The original operand is not affected by the operation. This property is read-only. The write access to this property is not allowed. For example:

var string s = "Hello World!"; // Get the value of the lower property var string result = s.lower; // result = "hello world!" // Modification is not allowed s.lower = "other text"; // Chora compiler error

The second version of the lower instant property is used in context of a char operand. The read access to this property results in a copy of the original character modified from upper to the lower case notation. The original operand is not affected by the operation. This property is read-only. The write access to this property is not allowed. For example:

var char c = 'H'; // Get the value of the lower property var char result = c.lower; // result = 'h' // Modification is not allowed c.lower = 'o'; // Chora compiler error

IMPORTANT

The current implementation of the lower instant property is limited to code points lying below 0x052F, which includes the UNICODE blocks: Basic Latin, Latin-1 Supplement, Latin-Extended-A, Latin-Extended-B, IPA Extensions, Greek and Coptic, Cyrillic, Cyrillic Supplement. Other characters are not guaranteed to be converted.