亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? 個人收集及編寫的一個通用函數集.pas

?? 個人收集及編寫的一個通用函數集
?? PAS
?? 第 1 頁 / 共 5 頁
字號:

{$IFNDEF K_CB5}
procedure DrawBlockFrameSmall(vleft, vtop, vright,
  vbuttom: integer; DrawColor : TColor;Canvas : TCanvas);
var
  vcolor : DWORD;
  mPen : TPen;
begin
  mPen := TPen.Create;
  try
    mPen.Assign(Canvas.Pen);
    with Canvas do begin
      Brush.Color := DrawColor;
      Pen.Width := cFrame;
      Pen.Style := psclear;
      Rectangle(vLeft,vtop,vright,vbuttom);  //畫主色哉
      vcolor := DWord(DrawColor);
      Pen.Style := psSolid;
      Pen.Color := GetColor(true,vcolor);         //畫亮線
      MoveTo(vRight - cFrame, vTop);
      LineTo(vLeft,vTop);
      LineTo(vLeft,vButtom-cFrame);
      Pen.Color :=GetColor(false,vcolor);              //畫暗線
      MoveTo(vLeft,vButtom - cFrame);
      LineTo(vRight- cFrame ,vButtom-cFrame);
      LineTo(vRight-cFrame,vTop);

      Pen.Width := 1;
    end;
    Canvas.Pen.Assign(mPen);
  finally
    mPen.Free;
  end;
end;

procedure DrawBlockFrameSmall(mRect: TRect; DrawColor: TColor;Canvas : TCanvas);
var
  vleft,vtop,vright,vbottom : integer;
begin
  vleft := mRect.Left;
  vtop := mRect.Top;
  vright := mRect.Right;
  vbottom := mRect.Bottom;
  DrawBlockFrameSmall(vleft,vtop,vright,vbottom,Drawcolor,Canvas);
end;

procedure DrawBlockFrameOnner(vleft, vtop, vright,
  vbuttom: integer; DrawColor : TColor;Canvas : TCanvas);
var
  vcolor : DWORD;
  mPen : TPen;
begin
  mPen := TPen.Create;
  try
    mPen.Assign(Canvas.Pen);
    with Canvas do begin
      Brush.Color := DrawColor;
      Pen.Width := cFrame;
      Pen.Style := psclear;
      Rectangle(vLeft,vtop,vright,vbuttom);  //畫主色哉
      vcolor := DWord(DrawColor);
      Pen.Style := psSolid;
      Pen.Color := GetColorA(true,vcolor);         //畫亮線
      MoveTo(vRight - cFrame, vTop);
      LineTo(vLeft,vTop);
      LineTo(vLeft,vButtom-cFrame);
      Pen.Color :=GetColorA(false,vcolor);              //畫暗線
      MoveTo(vLeft,vButtom - cFrame);
      LineTo(vRight- cFrame ,vButtom-cFrame);
      LineTo(vRight-cFrame,vTop);

      Pen.Width := 1;
    end;
    Canvas.Pen.Assign(mPen);
  finally
    mPen.Free;
  end;
end;

procedure DrawBlockFrameOnner(mRect: TRect; DrawColor: TColor;Canvas : TCanvas);
var
  vleft,vtop,vright,vbottom : integer;
begin
  vleft := mRect.Left;
  vtop := mRect.Top;
  vright := mRect.Right;
  vbottom := mRect.Bottom;
  DrawBlockFrameOnner(vleft,vtop,vright,vbottom,Drawcolor,Canvas);
end;

procedure DrawBlockFrameInner(mRect: TRect;
  DrawColor: TColor ;Canvas : TCanvas);
var
  vleft,vtop,vright,vbottom : integer;
begin
  vleft := mRect.Left;
  vtop := mRect.Top;
  vright := mRect.Right;
  vbottom := mRect.Bottom;
  DrawBlockFrameInner(vleft,vtop,vright,vbottom,Drawcolor,Canvas);
end;

procedure DrawBlockFrameInner(vleft, vtop, vright,
  vbuttom: integer; DrawColor: TColor;Canvas : TCanvas);
var
  vcolor : DWORD;
  mPen : TPen;
begin
  mPen := TPen.Create;
  try
    mPen.Assign(Canvas.Pen);
    with Canvas do begin
      Brush.Color := DrawColor;
      Pen.Width := cFrame;
      Pen.Style := psclear;
      Rectangle(vLeft,vtop,vright,vbuttom);  //畫主色哉
      vcolor := DWord(DrawColor);
      Pen.Style := psSolid;
      Pen.Color := GetColor(false,vcolor);         //畫暗線
      MoveTo(vRight - cFrame, vTop);
      LineTo(vLeft,vTop);
      LineTo(vLeft,vButtom-cFrame);
      Pen.Color :=GetColor(true,vcolor);              //畫亮線
      MoveTo(vLeft,vButtom - cFrame);
      LineTo(vRight- cFrame ,vButtom-cFrame);
      LineTo(vRight-cFrame,vTop);

      Pen.Width := 1;
    end;
    Canvas.Pen.Assign(mPen);
  finally
    mPen.Free;
  end;
end;

procedure DrawBlockFrameSiGuo(vleft, vtop, vright,
  vbuttom: integer; Canvas : TCanvas);
var
  mPen : TPenReCall;
begin
  mPen := TPenReCall.Create(Canvas.Pen);
  try
    with Canvas do begin
      Pen.Width := cFrame;
      Pen.Color := $00323456;
      MoveTo(vLeft + 10, vTop +1);
      LineTo(vLeft+1,vTop+1);
      LineTo(vLeft+1,vTop + 10);
      MoveTo(vRight - 10,vButtom- 1);
      LineTo(vRight-1,vButtom- 1);
      LineTo(vRight-1,vButtom - 10);
    end;
  finally
    mPen.Free;
  end;
end;

procedure DrawBlockFrameSiGuo(mRect: TRect; Canvas : TCanvas);
var
  vleft,vtop,vright,vbottom : integer;
begin
  vleft := mRect.Left;
  vtop := mRect.Top;
  vright := mRect.Right;
  vbottom := mRect.Bottom;
  DrawBlockFrameSiGuo(vleft,vtop,vright,vbottom,Canvas);
end;

{$Endif}

var
  vBuffer: array[0..MAX_PATH] of Char;
////////////////////快速字符串////////////////////////////////////

const
  cDeltaSize = 1.5;

var
  GUpcaseTable : array[0..255] of char;
  GUpcaseLUT: Pointer;

//NOTE : FastCharPos and FastCharPosNoCase do not require you to pass the length
//       of the string, this was only done in FastPos and FastPosNoCase because
//       they are used by FastReplace many times over, thus saving a LENGTH()
//       operation each time.  I can't see you using these two routines for the
//       same purposes so I didn't do that this time !
function FastCharPos(const aSource : String; const C: Char; StartPos : Integer) : Integer;
var
  L                           : Integer;
begin
  //If this assert failed, it is because you passed 0 for StartPos, lowest value is 1 !!
  Assert(StartPos > 0);
  
  Result := 0;
  L := Length(aSource);
  if L = 0 then exit;
  if StartPos > L then exit;
  Dec(StartPos);
  asm
      PUSH EDI                 //Preserve this register

      mov  EDI, aSource        //Point EDI at aSource
      add  EDI, StartPos
      mov  ECX, L              //Make a note of how many chars to search through
      sub  ECX, StartPos
      mov  AL,  C              //and which char we want
    @Loop:
      cmp  Al, [EDI]           //compare it against the SourceString
      jz   @Found
      inc  EDI
      dec  ECX
      jnz  @Loop
      jmp  @NotFound
    @Found:
      sub  EDI, aSource        //EDI has been incremented, so EDI-OrigAdress = Char pos !
      inc  EDI
      mov  Result,   EDI
    @NotFound:

      POP  EDI
  end;
end;

function FastCharPosNoCase(const aSource : String; C: Char; StartPos : Integer) : Integer;
var
  L                           : Integer;
begin
  Result := 0;
  L := Length(aSource);
  if L = 0 then exit;
  if StartPos > L then exit;
  Dec(StartPos);
  if StartPos < 0 then StartPos := 0;

  asm
      PUSH EDI                 //Preserve this register
      PUSH EBX
      mov  EDX, GUpcaseLUT

      mov  EDI, aSource        //Point EDI at aSource
      add  EDI, StartPos
      mov  ECX, L              //Make a note of how many chars to search through
      sub  ECX, StartPos

      xor  EBX, EBX
      mov  BL,  C
      mov  AL, [EDX+EBX]
    @Loop:
      mov  BL, [EDI]
      inc  EDI
      cmp  Al, [EDX+EBX]
      jz   @Found
      dec  ECX
      jnz  @Loop
      jmp  @NotFound
    @Found:
      sub  EDI, aSource        //EDI has been incremented, so EDI-OrigAdress = Char pos !
      mov  Result,   EDI
    @NotFound:

      POP  EBX
      POP  EDI
  end;
end;

function FastmemPos(const aSource, aFind; const aSourceLen, aFindLen : integer) : Pointer;
asm
          push ESI
          push EDI
          push EBX

          mov  ESI, aFind
          mov  EDI, aSource
          mov  ECX, aSourceLen

  //Quick exit code
          mov  Result, 0
  //SourceLen < FindLen
          cmp  ECX, aFindLen
          jl   @TheEnd
  //FindLen < 1
          cmp  aFindLen, 1
          jl   @TheEnd

  //Now DEC aSourceLen by aFindLen-1
          sub  ECX, aFindLen
          inc  ECX

  //Get the first char of aFindString, note how it is done outside
  //of the main loop, as it never changes !
          Mov  Al, [ESI]
          jmp  @Scasb
  @FindNext:
          inc  EDI  //Done only when returning from CompareStrings
          dec  ECX
          jz   @NotFound

  //Now the FindFirstCharacter loop !
  @ScaSB:
  //Get the value of the current character in aSourceString
  //This is equal to ah := EDI^, that is what the [] are around [EDI]
  //compare this character with aDestString[1]
          cmp [EDI], al
  //If they are equal we compare the strings

          jz   @CompareStrings
          inc  EDI
          dec  ECX
          jnz  @ScaSB
          jmp  @NotFound

  @CompareStrings:
  //Put the length of aFindLen in EBX
          mov  EBX, aFindLen

  @CompareNext:
  //We DEC EBX to point to the end of the string, ie, we dont
  //want to add the whole length as this would point past the end of string
          dec  EBX
          jz   @FullMatch

  //here is another optimization tip !
  //People at this point usually PUSH ESI etc and then POP ESI etc
  //at the end, instead I opted not to change ESI etc at all.
  //This saves lots of pushing and popping !

  //Get aFindString character + aFindStringLength (the last char)
          mov  Ah, [ESI+EBX]

  //Get aSourceString character (current position + aFindStringLength)
  //Compare them
          cmp  Ah, [EDI+EBX]
          Jnz  @FindNext

          Jmp  @CompareNext

    @FullMatch:
          //Move the address of the *current* character in EDI
          //note, we have not altered EDI since the first char was found
          mov  Result, EDI
          jmp  @TheEnd
    @NotFound:
          //The substring was not found
          mov  Result, 0

  @TheEnd:
          pop  EBX
          pop  EDI
          pop  ESI
end;

function FastmemPosNC(const aSource, aFind; const aSourceLen, aFindLen : integer) : Pointer;
asm
          push ESI
          push EDI
          push EBX

          mov  ESI, aFind
          mov  EDI, aSource
          mov  ECX, aSourceLen

  //Quick exit code
          mov  Result, 0
  //SourceLen < FindLen
          cmp  ECX, aFindLen
          jl   @TheEnd
  //FindLen < 1
          cmp  aFindLen, 1
          jl   @TheEnd

  //Now DEC aSourceLen by aFindLen-1
          sub  ECX, aFindLen
          inc  ECX

  //Get the first char of aFindString, note how it is done outside
  //of the main loop, as it never changes !
          mov  EDX, GUpcaseLUT
          xor  EBX, EBX
          jmp  @FindFirst
  @FindNext:
          inc  EDI  //Done only when returning from CompareStrings
          dec  ECX
          jz   @NotFound
  @FindFirst:
          mov  Bl, [ESI]
          mov  AL, [EDX+EBX]

  //Now the FindFirstCharacter loop !
  @ScaSB:
  //Get the value of the current character in aSourceString
  //This is equal to ah := EDI^, that is what the [] are around [EDI]
  //compare this character with aDestString[1]
          mov  Bl, [EDI]
          cmp  Al, [EDX+EBX]
  //If they are equal we compare the strings

          jz   @CompareStrings
          inc  EDI
          dec  ECX
          jnz  @ScaSB
          jmp  @NotFound

  @CompareStrings:
  //Save ECX
          push ECX
          mov  ECX, aFindLen

  @CompareNext:
          dec  ECX
          jz   @FullMatch

          mov  Bl, [ESI+ECX]
          mov  Al, [EDX+EBX]

          mov  Bl, [EDI+ECX]
          cmp  Al, [EDX+EBX]
          jz   @KeepChecking

          POP  ECX
          jmp  @FindNext

    @KeepChecking:
          Jmp  @CompareNext

    @FullMatch:
          pop  ECX
          mov  Result, EDI
          jmp  @TheEnd

    @NotFound:
          mov  Result, 0

  @TheEnd:
          pop  EBX
          pop  EDI
          pop  ESI

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久综合色播五月| 亚洲欧洲性图库| 99久久国产综合精品女不卡| 亚洲不卡av一区二区三区| 久久综合久久鬼色| 91精品国产91久久久久久一区二区| 成人免费毛片app| 日本va欧美va欧美va精品| 亚洲精品国产品国语在线app| 欧美videofree性高清杂交| 91福利社在线观看| 成人av手机在线观看| 久久国产成人午夜av影院| 亚洲精品免费看| 国产女同互慰高潮91漫画| 精品美女在线观看| 3d动漫精品啪啪一区二区竹菊| 成人动漫精品一区二区| 精品亚洲成a人| 日韩中文字幕亚洲一区二区va在线| 综合精品久久久| 国产精品丝袜在线| 久久婷婷色综合| 日韩欧美中文一区| 91精品午夜视频| 欧美最猛黑人xxxxx猛交| 成人av综合一区| 国产成人免费视频| 九九视频精品免费| 麻豆精品在线看| 免费不卡在线视频| 亚洲成年人影院| 一区二区三区国产精品| 亚洲精品成人精品456| 综合亚洲深深色噜噜狠狠网站| 国产欧美日韩另类视频免费观看| 日韩女优av电影在线观看| 88在线观看91蜜桃国自产| 欧美日韩一级黄| 欧美亚洲高清一区| 欧美日韩精品专区| 欧美日韩国产小视频在线观看| 欧美亚洲国产一卡| 欧美日韩国产成人在线免费| 欧美精品一卡两卡| 88在线观看91蜜桃国自产| 欧美一区二区在线看| 日韩精品专区在线影院重磅| 欧美一区二区观看视频| 在线播放国产精品二区一二区四区| 欧美三级资源在线| 欧美理论片在线| 在线综合亚洲欧美在线视频| 欧美一区二区黄| 精品日韩欧美在线| 欧美高清在线一区二区| 久久综合色天天久久综合图片| 国产亚洲视频系列| 中文av字幕一区| 亚洲精品乱码久久久久久| 亚洲高清一区二区三区| 老色鬼精品视频在线观看播放| 国产一区二区三区av电影| 亚洲欧美激情视频在线观看一区二区三区 | 欧美日韩中文字幕一区二区| 欧美日韩www| 欧美mv日韩mv国产网站app| 久久综合网色—综合色88| 国产精品福利一区| 一区二区三区四区视频精品免费| 亚洲福利视频一区| 蜜桃视频在线观看一区二区| 国产一区二区女| 一本色道a无线码一区v| 日韩三级视频中文字幕| 国产精品乱人伦中文| 亚洲福中文字幕伊人影院| 韩国三级电影一区二区| 99久久伊人精品| 91精品国产麻豆国产自产在线 | 亚洲欧美怡红院| 日韩中文字幕91| 国产毛片精品视频| 欧美唯美清纯偷拍| 久久精品一区二区三区不卡| 一区二区三区在线视频观看| 久久av资源网| 色天使色偷偷av一区二区| 精品久久一二三区| 亚洲三级小视频| 麻豆91在线播放| 色8久久人人97超碰香蕉987| 精品日韩一区二区| 亚洲国产一区二区在线播放| 国产麻豆91精品| 欧美精品日韩精品| 中文字幕国产一区| 久久精品国产精品亚洲综合| 色综合色综合色综合色综合色综合 | 91久久一区二区| 精品国精品自拍自在线| 亚洲乱码国产乱码精品精的特点 | 久久国产精品色| 欧美在线啊v一区| 久久综合久久99| 日韩国产欧美在线观看| 97久久精品人人做人人爽50路| 日韩你懂的在线观看| 夜夜精品浪潮av一区二区三区| 成人国产精品免费| 久久久久综合网| 日韩在线播放一区二区| 91蝌蚪porny成人天涯| 国产日韩成人精品| 国产专区欧美精品| 欧美不卡123| 日韩高清在线观看| 欧美图区在线视频| 洋洋成人永久网站入口| 91原创在线视频| 国产精品女主播在线观看| 国产成人亚洲综合a∨婷婷图片| 91精品一区二区三区久久久久久| 一区二区三区高清不卡| 91丨九色丨蝌蚪富婆spa| 中文字幕巨乱亚洲| 成人在线视频一区| 久久久不卡网国产精品一区| 精一区二区三区| 欧美成人三级在线| 日本sm残虐另类| 日韩亚洲欧美综合| 亚洲mv在线观看| 99精品1区2区| 国产精品久久久久一区二区三区 | 激情欧美一区二区三区在线观看| 日韩三级视频在线观看| 91麻豆精品国产91| 99久久国产综合精品女不卡| 黄色资源网久久资源365| 午夜精品久久久久久久久久久| 91精品国产品国语在线不卡| 国产aⅴ精品一区二区三区色成熟| 久久影院视频免费| 欧美大白屁股肥臀xxxxxx| 欧美视频一区二区| 国产成a人亚洲精| 奇米888四色在线精品| 日产国产欧美视频一区精品| 日韩电影在线一区二区三区| 美女网站色91| 9i在线看片成人免费| 亚洲免费色视频| 欧美成人女星排名| 日本高清免费不卡视频| 国产河南妇女毛片精品久久久| 国产精品影视在线观看| 国产精一区二区三区| 自拍偷拍亚洲综合| 中文字幕在线观看一区二区| 亚洲国产成人一区二区三区| 久久精品人人爽人人爽| 日韩免费在线观看| 一本久久a久久精品亚洲| 91视频xxxx| 91精品国产福利| 精品久久一二三区| 久久精品一区二区三区不卡牛牛| 7777精品伊人久久久大香线蕉完整版 | 欧美三级中文字幕| 欧美一级高清片| 亚洲精品欧美激情| 国产福利91精品一区二区三区| 欧美性猛交xxxxxx富婆| 久久久久99精品一区| 亚洲成人综合视频| 国产成人av福利| 6080日韩午夜伦伦午夜伦| 亚洲国产精品t66y| 日本欧美一区二区| 欧美日韩国产乱码电影| 在线精品视频一区二区三四| 日韩欧美视频一区| 亚洲高清免费观看| 91黄色在线观看| 亚洲欧美区自拍先锋| 国产成人激情av| 国产日韩影视精品| 成人av资源站| 中文字幕亚洲成人| 成人网在线播放| 久久精品夜色噜噜亚洲a∨| 国产一区二区主播在线| 精品动漫一区二区三区在线观看| 日韩经典中文字幕一区| 成人午夜视频网站| 国产精品嫩草久久久久| 成人精品免费视频| 日韩美女精品在线| 在线观看三级视频欧美|