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. The current implementation is limited to ASCII signs A-Z. Please note, 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. The current implementation is limited to ASCII signs A-Z. Please note, 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