⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 utilssys.pas

📁 这是一个有关文本编辑器的源程序,支持彩色语法,你可以任意修改,修改后发给我一份
💻 PAS
字号:
unit UtilsSys;

interface

uses
	Windows, SysUtils, Classes;

function LastPos (const Substr, S: string): Integer;

var
	AppLocationDir: string; // the directory where the program was started from, with a '\' at the end

implementation

function LastPos;
var
	I: Integer;
begin
	for I := Length (S) - Length (Substr) + 1 downto 1 do begin
		if Copy (S, I, Length (SubStr)) = Substr then begin
			Result := I;
			Exit;
		end;
	end;
	Result := 0;
end;

initialization
	AppLocationDir := ExtractFilePath (ParamStr (0));
end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -