📄 ch17l01.txt
字号:
Listing 17.1 Look for a specific named variable.function TForm1.CookieFromString(cookie, name : String) : String;var beginPos, endPos : integer; restOfString : String;begin {set the beginPos to the beginning of the input name value} beginPos := Pos(name,cookie) + Length(name) + 1; {+1 for '=' character} {if the search was successful} if(beginPos > (Length(name)+1)) then begin restOfString := Copy(cookie, beginPos, Length(cookie)); endPos := Pos(';',restOfString); CookieFromString := Copy(cookie, beginPos, endPos); end else CookieFromString := 'Error';end;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -