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

来自 , 2020-09-20, 写在 Delphi (Object Pascal), 查看 143 次.
URL http://www.code666.cn/view/5db30d43
  1. function ReverseStrR(const S: string): string;
  2. begin
  3.   if SysUtils.AnsiSameText(S, SysUtils.EmptyStr) or (System.Length(S) = 1) then
  4.     Result := S
  5.   else
  6.     Result := StrUtils.RightStr(S, 1)
  7.       + ReverseStrR(StrUtils.LeftStr(S, System.Length(S) - 1))
  8. end;
  9. //delphi/2325

回复 "又一个Delphi字符串反转函数"

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

captcha