[Delphi (Object Pascal)] Delphi 字符串反转函数 →→→→→进入此内容的聊天室

来自 , 2020-09-18, 写在 Delphi (Object Pascal), 查看 104 次.
URL http://www.code666.cn/view/f19fec2f
  1. function ReverseStr(S: string): string;
  2. begin
  3.   Result := SysUtils.EmptyStr;
  4.   while System.Length(S) > 0 do
  5.   begin
  6.     Result := Result + StrUtils.RightStr(S, 1);
  7.     S := StrUtils.LeftStr(S, Pred(System.Length(S)));
  8.   end;
  9. end;
  10. //delphi/2324

回复 "Delphi 字符串反转函数"

这儿你可以回复上面这条便签

captcha