Перевести все символы строки в БОЛЬШИЕ БУКВЫ верхнего регистра. Функция работает только с ASCII.
function UpperCase(sSt: string): string;
Параметр |
Тип |
Значение |
---|---|---|
sSt |
string |
оригинальная строка. |
Возвращает строку в верхнем регистре.
const
sSt = 'In the town where I was born, lived a man who sailed to sea.';
begin
mLogScript('Original string: "' + sSt + '"', '');
mLogScript(UpperCase(sSt), '');
end.
[14:09:58] (Log "UpperCase"): Original string: "In the town where I was born, lived a man who sailed to sea."
[14:09:58] (Log "UpperCase"): IN THE TOWN WHERE I WAS BORN, LIVED A MAN WHO SAILED TO SEA.