• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

ギコナビ


Commit MetaInfo

Revisiond970b3d0b0bf549b213837b5c85cbb79c2a9ae45 (tree)
Zeit2008-09-21 12:06:45
Autorh677 <h677>
Commiterh677

Log Message

レスアンカー(>)でポップアップしなくなったので修正

Ändern Zusammenfassung

Diff

--- a/GikoSystem.pas
+++ b/GikoSystem.pas
@@ -1904,8 +1904,23 @@ var
19041904 i, j, idx : Integer;
19051905 begin
19061906 URL := Trim(LowerCase(URL));
1907- idx := AnsiPos('?', URL);
1907+ for i := 0 to Length(START_NAME) -1 do begin
1908+ idx := AnsiPos(START_NAME[i], URL);
1909+ if (idx <> 0) then begin
1910+ break;
1911+ end;
1912+ idx := AnsiPos(END_NAME[i], URL);
1913+ if (idx <> 0) then begin
1914+ break;
1915+ end;
1916+
1917+ end;
1918+
19081919 if (idx <> 0) then begin
1920+ idx := AnsiPos('?', URL);
1921+ if (idx = 0) then begin
1922+ idx := LastDelimiter('/', URL);
1923+ end;
19091924 stRes := 0;
19101925 endRes := 0;
19111926 bufList := TStringList.Create();
@@ -1915,19 +1930,21 @@ begin
19151930 for i := 0 to bufList.Count - 1 do begin
19161931 convBuf := '';
19171932 // ŠJŽnƒŒƒX”Ô‚ÌŒŸõ
1918- for j := 0 to Length(START_NAME) - 1 do begin
1919- idx := AnsiPos(START_NAME[j], bufList[i]);
1920- if (idx <> 0) then begin
1921- convBuf := Copy(bufList[i], idx + Length(START_NAME[j]), Length(bufList[i]));
1922- stRes := StrToInt64Def( convBuf, 0 );
1923- break;
1933+ if (stRes = 0) then begin
1934+ for j := 0 to Length(START_NAME) - 1 do begin
1935+ idx := AnsiPos(START_NAME[j], bufList[i]);
1936+ if (idx = 1) then begin
1937+ convBuf := Copy(bufList[i], idx + Length(START_NAME[j]), Length(bufList[i]));
1938+ stRes := StrToInt64Def( convBuf, 0 );
1939+ break;
1940+ end;
19241941 end;
19251942 end;
19261943 // I—¹ƒŒƒX”Ô‚ÌŒŸõ
1927- if (convBuf = '') then begin
1944+ if (convBuf = '') and (endRes = 0) then begin
19281945 for j := 0 to Length(END_NAME) - 1 do begin
19291946 idx := AnsiPos(END_NAME[j], bufList[i]);
1930- if (idx <> 0) then begin
1947+ if (idx = 1) then begin
19311948 convBuf := Copy(bufList[i], idx + Length(END_NAME[j]), Length(bufList[i]));
19321949 endRes := StrToInt64Def( convBuf, 0 );
19331950 break;
@@ -1938,7 +1955,7 @@ begin
19381955 if ((stRes = 0) and (endRes = 0) and (convBuf = '')) then begin
19391956 for j := 0 to Length(RES_NAME) - 1 do begin
19401957 idx := AnsiPos(RES_NAME[j], bufList[i]);
1941- if (idx <> 0) then begin
1958+ if (idx = 1) then begin
19421959 convBuf := Copy(bufList[i], idx + Length(RES_NAME[j]), Length(bufList[i]));
19431960 stRes := StrToInt64Def( convBuf, 0 );
19441961 endRes := stRes;