string_manip |
Smart pascal source code
const empty = ''; var str: String = empty; WriteLn(Length(str)); SetLength(str, 1); WriteLn(Length(str)); str[1] := 'z'; WriteLn(str); str[1] := Chr($5A); // 'Z' str := str + 'a'; str := 'o' + str; WriteLn(str); WriteLn('df' + '01' + str + '13' + '45' + str + empty + str); {<<< RESULT - CONSOLE LOG >>> ----------------------------- 0 1 z oZa df01oZa1345oZaoZa ----------------------------- {<<<<<<<<< THE END >>>>>>>>>}