MyChat Scripts: function AnsilLowerCase, convert UNIODE string into the lower case
Convert all string characters to the lower case. The function works with UNICODE.
Syntax
function AnsiLowerCase(sSt: string): string;
Parameter |
Type |
Value |
sSt |
string |
source string. |
Function result
The function returns the string which characters are converted to the lower case.
Example
const
sSt = #13#10+
'There is another sky,' + #13#10 +
'Ever serene and fair,' + #13#10 +
'And there is another sunshine,?' + #13#10 +
'Though it be darkness there.?..';
begin
mLogScript('Original string: ' + sSt, '');
mLogScript(AnsiLowerCase(sSt), '');
end.
Script work result
[12:54:08] (Log "AnsiLowerCase"): Original string:
There is another sky,
Ever serene and fair,
And there is another sunshine,
Though it be darkness there.
[12:54:08] (Log "AnsiLowerCase"):
there is another sky,
ever serene and fair,
and there is another sunshine,
though it be darkness there.
[12:54:08] (Run "AnsiLowerCase"): Script operation time: 6 ms
[12:54:08] (Run "AnsiLowerCase"): Script done successfully.