text stringlengths 14 6.51M |
|---|
{
$Project$
$Workfile$
$Revision$
$DateUTC$
$Id$
This file is part of the Indy (Internet Direct) project, and is offered
under the dual-licensing agreement described on the Indy website.
(http://www.indyproject.org/)
Copyright:
(c) 1993-2005, Chad Z. Hower and the Indy Pit Crew. All rights reserv... |
unit RemoveEmptyComment;
{(*}
(*------------------------------------------------------------------------------
Delphi Code formatter source code
The Original Code is RemoveEmptyComment, released Nov 2003.
The Initial Developer of the Original Code is Anthony Steele.
Portions created by Anthony Steele are C... |
////////////////////////////////////////////////////////////////////////////////
//
//
// FileName : SUISideChannel.pas
// Creator : Shen Min
// Date : 2002-5-13 V1-V3
// 2003-7-11 V4
// Comment :
//
// Copyright (c) 2002-2003 Sunisoft
// http://www.sunisoft.com
// Email:... |
unit TableWithProgress;
interface
uses
FireDAC.Comp.Client, ProgressInfo, NotifyEvents, System.Classes, ProcRefUnit;
type
TTableWithProgress = class(TFDMemTable, IHandling)
private
FOnProgress: TNotifyEventsEx;
FPI: TProgressInfo;
public
constructor Create(AOwner: TComponent); override;
destr... |
unit AccountTypeList;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BaseGridDetail, Data.DB, RzButton,
Vcl.StdCtrls, Vcl.Mask, RzEdit, Vcl.Grids, Vcl.DBGrids, RzDBGrid, RzLabel,
Vcl.ExtCtrls, RzPanel, RzDBE... |
{***************************************************************
*
* Project : Demo
* Unit Name: Main
* Purpose : Tunnel demonstration
* Version : 1.0
* Date : Wed 25 Apr 2001 - 01:41:00
* Author : Gregor Ibic
* History :
* Tested : Wed 25 Apr 2001 // Allen O'Neill <allen_oneill@hotmail.com>
*
***... |
{ Default drawing engine based on LCL-only routines
Copyright (C) 2019 Werner Pamler (user wpat Lazarus forum https://forum.lazarus.freepascal.org)
License: modified LGPL with linking exception (like RTL, FCL and LCL)
See the file COPYING.modifiedLGPL.txt, included in the Lazarus distribution,
for details abo... |
(* MPC: MM, 2020-04-29 *)
(* ---- *)
(* MiniPascal compiler. *)
(* ========================================================================= *)
PROG... |
{route certain lines from a file to a new file}
PROGRAM extract;
{ usage: EXTRACT InFileName OutFileName }
uses FileOps; {directOutput, Exist}
CONST
tag = '#';
VAR
outname,
Name : string;
infile,
outfile : TEXT;
WriteDate, Skip : BOOLEAN;
PROCEDURE ProcessText;
CONST
CutOff = 16;
VAR
line, head... |
{ Extended checked controls (radiobutton, checkbox, radiogroup, checkgroup)
Copyright (C) 2020 Lazarus team
This library is free software; you can redistribute it and/or modify it
under the same terms as the Lazarus Component Library (LCL)
See the file COPYING.modifiedLGPL.txt, included in the Lazarus distri... |
unit DelphiSettingEditor;
interface
uses
Classes, Registry, SysUtils;
type
TStringArray = array of string;
IDelphiSettingKeys = interface
['{B910A6AD-9BEB-4540-A17B-4D099E7B7AE9}']
function GetSettingPath : string;
function GetCurrentPath : string;
function GetOnCurrentKeyChanged :... |
unit LoanListIntf;
interface
type
TLoanFilterType = (lftAll,lftPending,lftAssessed,lftApproved,lftActive,
lftCancelled,lftRejected,lftClosed);
type
ILoanListFilter = interface(IInterface)
['{50297F40-7CE9-4F35-AFC3-CEF0A9390904}']
procedure FilterList(const filterType: TLoanFilterType);
end;
imple... |
unit MasterMind.Evaluator.Tests;
{$IFDEF FPC}{$MODE DELPHI}{$ENDIF}
interface
uses
Classes, SysUtils, fpcunit, testregistry, MasterMind.API;
type
TTestMasterMindGuessEvaluator = class(TTestCase)
private
FEvaluator: IGuessEvaluator;
procedure CheckResultsEqual(const Expected, Actual: TGuessEvaluationRe... |
{ KOL MCK } // Do not remove this line!
{$DEFINE KOL_MCK}
unit AboutForm;
interface
{$IFDEF KOL_MCK}
uses Windows, Messages, KOL {$IF Defined(KOL_MCK)}{$ELSE}, mirror, Classes, Controls, mckCtrls, mckObjs, Graphics {$IFEND (place your units here->)};
{$ELSE}
{$I uses.inc}
Windows, Messages, SysUtils, Vari... |
program AVAIL;
{ show remaining system memory }
CONST
I_USE = 20560;
BEGIN
Writeln(MemAvail + I_USE:10,' Total Bytes Available');
END. |
unit uFrameListViewGroup;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
System.Generics.Collections,
FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls,
UI.Frame, UI.Standard, UI.Base, UI.ListView;
type
TDataItem = record
Name: s... |
{ *********************************************************************** }
{ }
{ Delphi Runtime Library }
{ }
{ Copyright (c) ... |
unit FIToolkit.Commons.FiniteStateMachine.FSM;
interface
uses
System.SysUtils, System.Generics.Collections, System.Generics.Defaults;
type
TOnEnterStateMethod<TState, TCommand> =
procedure (const PreviousState, CurrentState : TState; const UsedCommand : TCommand) of object;
TOnEnterStateProc<TState, TCo... |
unit SIB;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ComCtrls, Vcl.ExtCtrls, Data.DB,
Vcl.Grids, Vcl.DBGrids, Vcl.ToolWin, Vcl.Menus,DateUtils, Vcl.Buttons,
FireDAC.Stan.Intf, FireDAC.Stan.Option,
... |
{-------------------------------------------------------------------------------
---------------------------------- ALPHA UTILS ---------------------------------
-------------------------------------------------------------------------------}
{
AlphaUtils : Unité de gestion de la transparence des fenêtres (AlphaB... |
unit uFIBEditorForm;
interface
{$i ..\FIBPlus.inc}
uses Classes,{$IFDEF D6+}Variants, {$ENDIF}{$IFDEF D_XE2}Vcl.Forms{$ELSE}Forms{$ENDIF};
type
TFIBEditorCustomForm= class(TForm)
protected
procedure ReadState(Reader: TReader); override;
procedure OnReadError(Reader: TReader; cons... |
unit Test.Devices.ADCPChannelMaster;
interface
uses Windows, TestFrameWork, GMGlobals, Test.Devices.Base.ReqCreator, GMConst,
Test.Devices.Base.ReqParser;
type
TADCPChannelMasterReqCreatorTest = class(TDeviceReqCreatorTestBase)
protected
function GetDevType(): int; override;
procedure DoCheckRequest... |
{ Hello world }
program Test1;
begin
writeln('Hello, world!');
end.
|
unit IdMessageCoder;
interface
uses
Classes,
IdComponent, IdGlobal, IdMessage;
type
TIdMessageCoderPartType = (mcptUnknown, mcptText, mcptAttachment);
TIdMessageDecoder = class(TIdComponent)
protected
FFilename: string;
// Dont use TIdHeaderList for FHeaders - we dont know that they will all be li... |
PROGRAM marks;
VAR
grade: REAL;
BEGIN
WRITE ('Input your grade : ');
READ (grade);
IF grade>=70 THEN
WRITE ('EXCELLENT')
ELSE
IF grade>=60 THEN
WRITE ('VERY GOOD')
ELSE
IF grade>=50 THEN
WRITE ('GOOD')
ELSE
IF grade>=40 THEN
WRITE ('PASS')
ELSE
WRITE ('FAIL')
END. |
unit uMain;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.Menus, Vcl.Samples.Spin, Vcl.ComCtrls,
sfLog,
org.utilities,
org.algorithms.time,
org.tcpip.tcp,
org.tcpip.tcp... |
{*******************************************************}
{ }
{ Delphi REST Client Framework }
{ }
{ Copyright(c) 2014-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
unit uMeetingsArray;
interface
uses uMeetingsClass, ADODB, DB, SysUtils, Classes, Dialogs;
type TMeetingsArray = class
private
conn : TADOConnection;
dbName : String;
public
constructor Create(db : String);
function getAllMeetings: TStringList;
function deleteMeeting(meetingID : ... |
unit bSpartan;
interface
uses vEnv, vConst, bFile, system.SysUtils, system.StrUtils, firedac.comp.client, bDB, bFormatter, bHelper, types;
type
TSpartan = class
private
class procedure version(newLine: boolean = true);
class procedure noteCaseInsensitive;
class procedure createModel(model_name: stri... |
unit PascalCoin.Frame.NewKey;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes,
System.Variants,
FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls,
FMX.ListBox, FMX.Edit, FMX.Controls.Presentation, FMX.Layouts,
PascalCoin.Wallet.Interfaces;
type
TNewK... |
unit u_xPL_Web_Listener;
{==============================================================================
UnitName = uxPLWebListener
UnitDesc = xPL Listener with WebServer capabilities
UnitCopyright = GPL by Clinique / xPL Project
====================================================================... |
unit Delphi.Mocks.Tests.Utils;
interface
uses
DUnitX.TestFramework,
Rtti,
Delphi.Mocks.Helpers;
type
//Testing TValue helper methods in TValueHelper
{$M+}
[TestFixture]
TTestTValue = class
published
procedure Test_TValue_Equals_Interfaces;
procedure Test_TValue_NotEquals_Interfaces;
proced... |
unit SofaFile;
interface
uses
ECMA.TypedArray, HdfFile;
type
TVector3 = record
X, Y, Z: Float;
end;
TSofaFile = class
private
FNumberOfMeasurements: Integer;
FNumberOfDataSamples: Integer;
FNumberOfEmitters: Integer;
FNumberOfReceivers: Integer;
FListenerPositions: array of TVector... |
unit TestBrickCamp.Repository.Redis;
interface
uses
System.Classes,
TestFramework,
Spring.Container,
Spring.Collections,
Brickcamp.Repository.Redis,
Redis.Commons,
BrickCamp.IRedisRepository,
BrickCamp.IRedisClientProvider,
BrickCamp.ISettings,
BrickCamp.TSettings
;
type
//integration test
... |
unit smf_play;
interface
uses
SysUtils, Classes, Windows, smf_unit, mmsystem, gui_benri;
{
Clock の計算
Timebase = 四分音符分解能
Tempo = 一分間の四分音符数
1clock = 60000msec/Tempo/Timebase
}
type
// プレイヤー(演奏を司るクラス)
TSmfPlayer = class;
TMidiThread = class(TThread)
private
FEventIndex... |
PROGRAM stringops;
CONST
lexbig = 'zzzLexically Great';
lexmiddle1 = 'ZZZLexically Middle+';
lexmiddle = 'ZZZLexically Middle';
lexmiddle2 = 'ZZZLexically Middl';
lexsmall = 'AAALexically Small';
lexnothing = ''
VAR
string1, string2 : string;
BEGIN
IF (lexbig <= lexmiddle) THEN
writ... |
unit fLabInfo;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ExtCtrls, fAutoSz, ORFn, ORCtrls, VA508AccessibilityManager;
type
TfrmLabInfo = class(TfrmAutoSz)
Panel1: TPanel;
btnOK: TButton;
memInfo: TCaptionMemo;
cboTests: TORComboBox;
p... |
unit FIToolkit.Reports.Parser.Messages;
interface
uses
System.Generics.Collections,
FIToolkit.Reports.Parser.Types;
type
TFixInsightMessages = class (TList<TFixInsightMessage>)
private
type
TCollectionNotifications = set of TCollectionNotification;
strict private
FSorted : Boolean... |
unit const_array_of_record_1;
interface
implementation
type
TRec = record
a: Int32;
b: Int32;
end;
const Fields: array [3] of TRec = ([11, 1], [22, 2], [33, 3]);
var
f0a, f0b: Int32;
f1a, f1b: Int32;
f2a, f2b: Int32;
procedure Test;
begin
f0a := Fields[0].a;
f0b := Fields[0].b;
f1a :=... |
program TemperatureProbeInfo;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Classes, SysUtils, uSMBIOS
{ you can add units after this };
function ByteToBinStr(AValue:Byte):string;
const
Bits: array[1..8] of byte = (128,64,32,16,8,4,2,1);
var i: inte... |
{
$Project$
$Workfile$
$Revision$
$DateUTC$
$Id$
This file is part of the Indy (Internet Direct) project, and is offered
under the dual-licensing agreement described on the Indy website.
(http://www.indyproject.org/)
Copyright:
(c) 1993-2005, Chad Z. Hower and the Indy Pit Crew. All rights reserv... |
unit SearchUtil;
interface
uses
{ VCL }
SysUtils, Variants, Classes, StdCtrls, Controls, Forms, Graphics, Windows,
Dialogs, ExtCtrls, ComCtrls, DB, SqlExpr, FMTBcd, DBClient, DBGrids,
{ helsonsant }
DataUtil, UnModelo, UnFabricaDeModelos, UnTeclado;
type
TPesquisa = class(TObject)
private
FAcaoAnte... |
unit ClassPonuka;
interface
uses Windows, Graphics, Classes, Grids, StdCtrls;
const Left_def: integer = 200;
Right_def : integer = 100;
Top_def : integer = 50;
Bottom_def : integer = 200;
Vyska_def : integer = 500;
type TPonuka = class
private
Kom : TStringList;
Model : T... |
{-------------------------------------------------------------------------------
// EasyComponents For Delphi 7
// 一轩软研第三方开发包
// @Copyright 2010 hehf
// ----------------------------... |
{$R-} {Range checking off}
{$B+} {Boolean complete evaluation on}
{$S+} {Stack checking on}
{$I+} {I/O checking on}
{$N-} {No numeric coprocessor}
{$M 65500,16384,655360} {Turbo 3 default stack and heap}
program SetProb;
{Copyright 1985 by Bob Keefer}
{SetProb.Pas creates a 3-dimensional byte
... |
unit MobilePermissions.Permissions.Android;
interface
uses
{$IF CompilerVersion >= 33.0}
System.Permissions,
{$ENDIF}
{$IFDEF ANDROID}
Androidapi.Helpers,
Androidapi.JNI.Os,
Androidapi.JNI.JavaTypes,
{$ENDIF}
System.SysUtils,
System.StrUtils,
MobilePermissions.Permissions.Interfaces;
type TMobi... |
unit uTerminal;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, System.Actions,
Vcl.ActnList,
uMain;
type
TTerminal = class(TForm)
edtMsg: TEdit;
memMsg: TMemo;
btnClose: TButton;... |
unit OverloadTestForm;
interface
// running this program raises an exception by design
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.StdCtrls,
FMX.Layouts, FMX.Memo, FMX.Controls.Presentation, FMX.ScrollBo... |
////////////////////////////////////////////////////////////////////////////////
//
//
// FileName : SUITrackBar.pas
// Creator : Shen Min
// Date : 2002-11-20 V1-V3
// 2003-06-30 V4
// Comment :
//
// Copyright (c) 2002-2003 Sunisoft
// http://www.sunisoft.com
// Email: ... |
unit UserIterface;
interface
uses
Windows,
Messages,
SysUtils,
Variants,
Classes,
Graphics,
Controls,
Forms,
Dialogs,
DimensionsUnit,
DimensionGraphicsUnit,
StdCtrls,
ComCtrls,
ExtCtrls,
RuleConfig,
CreatePoints, ExtDlgs;
type
TUserInterfaceForm = class(TForm)... |
unit ncTipoTran;
interface
uses
SysUtils,
Variants,
DB,
MD5,
Dialogs,
Classes,
Windows,
ClasseCS,
ncClassesBase;
type
TncTipoTran = class ( TncClasse )
private
Ftipo: Byte;
Fuser: Boolean;
Festoque: Boolean;
Fcaixa: Boolean;
Fnome: String;
Fentrada: Boolean;
Femite_n... |
unit Walkers;
interface
uses Canvases, RootObject;
type
IWalker = interface
['{8D1FF79F-4251-4A1D-8214-0ADE721C009B}']
procedure SetAngle(Val: extended);
function GetAngle: extended;
property Angle: extended read GetAngle write SetAngle;
procedure Turn(AAngle: extended);
procedure Forward(Ca... |
(* SafeArrayStackUnit: SWa, 2020-05-27 *)
(* ------------------- *)
(* A stack which stores its elements in an array and prevents stack over-/ *)
(* underflows. *)
... |
unit xElecLine;
interface
uses xElecPoint, SysUtils, Classes;
type
/// <summary>
/// 电线或一点类
/// </summary>
TElecLine = class
private
FCurrent: TElecPoint;
FVoltage: TElecPoint;
FLineName: string;
FOnChange: TNotifyEvent;
FConnPoints: TStringList;
FOnwner: TObject;
... |
unit U.SampleData;
interface
type
TSampleData = class
private
class procedure CreatePizzas;
class procedure CreateCustomers;
class procedure CreateOrders;
public
class procedure CheckForSampleData;
end;
implementation
uses
Model.Interfaces, iORM, System.IOUtils, Model.Order, System.SysUti... |
unit MediaStream.UrlFormats;
interface
uses SysUtils,Windows;
//Медиа-сервер
function MakeMs3sUrl(const aIp: string; aPort: word; const aSourceName: string): string; overload;
function MakeMs3sUrl(const aIp: string; aPort: word; const aSourceName: string; const aUser,aPassword: string): string; overload;
//MSCP
fu... |
unit StrUnit;
(*------------------------------------------------------------------------------
汎用文字列処理を定義したユニット
全ての関数は、マルチバイト文字(S-JIS)に対応している
作成者:クジラ飛行机( web@kujirahand.com ) https://sakuramml.com
作成日:2001/11/24
履歴:
2002/04/09 途中に#0を含む文字列でも検索置換できるように修正
---------------------------------------------------... |
{*******************************************************}
{ }
{ Delphi Visual Component Library }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
//
// This unit is part of the GLScene Project, http://glscene.org
//
{: GLFileMP3<p>
Support for MP3 format.<p>
<b>History : </b><font size=-1><ul>
<li>25/07/09 - DaStr - Added $I GLScene.inc
<li>06/05/09 - DanB - Creation from split from GLSoundFileObjects.pas
</ul></font>
}
unit GLFile... |
{ KOL MCK } // Do not remove this line!
{$DEFINE KOL_MCK}
unit OptionsForm;
interface
{$IFDEF KOL_MCK}
uses Windows, Messages, KOL, KOLMHFontDialog {$IF Defined(KOL_MCK)}{$ELSE}, mirror, Classes, Controls, mckCtrls, mckObjs, Graphics, MCKMHFontDialog {$IFEND (place your units here->)},
Types, KOLHilightEdi... |
unit DataManager;
interface
uses
Windows, SysUtils, Classes, DB, DBClient, FMTBcd, Provider, SqlExpr,
{ Fluente }
UnModelo;
type
TDataManager = class(TObject)
private
FSystem: TFlSystem;
FDataObjects: TList;
FDataProxy: TFlDataProxy;
protected
function GetConnection(ADataObject: TFlComp =... |
unit AnimateImpl1;
interface
uses
Windows, ActiveX, Classes, Controls, Graphics, Menus, Forms, StdCtrls,
ComServ, StdVCL, AXCtrls, DelCtrls_TLB, ComCtrls;
type
TAnimateX = class(TActiveXControl, IAnimateX)
private
{ Private declarations }
FDelphiControl: TAnimate;
FEvents: IAnimateXEvents;
pr... |
unit PaymentDetail;
interface
uses
Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BasePopupDetail, RzButton, RzTabs,
Vcl.StdCtrls, RzLabel, Vcl.Imaging.pngimage, Vcl.ExtCtrls, RzPanel,
Vcl.Mask, RzEdit, Vcl.DBCtrls, RzDBCmbo, RzC... |
unit frmUserGroupInfo;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ComCtrls,
uUserInfo;
type
TfUserGroupInfo = class(TForm)
pgc1: TPageControl;
ts1: TTabSheet;
... |
unit ClassWords;
interface
uses ClassBSTree;
const IS_WORD_FLAG = 32;
LAST_FLAG = 64;
HAS_CHILD_FLAG = 128;
CHAR_MASK = 31;
END_OF_WORDS = 'END OF WORDS';
type TWordsCallback = procedure( Word : string ) of object;
TWords = class
private
FTree : TBSTree;... |
unit Firebird.Scanner.TokenKind.Tests;
interface
uses
DUnitX.TestFramework,
Nathan.Firebird.Validator.Syntax.Keywords.Intf,
Nathan.Firebird.Validator.Syntax.Keywords.Types;
{$M+}
type
[TestFixture]
TTestFb25Token = class
private
FCut: IFb25Token;
public
[Setup]
procedure SetUp();
[Tea... |
unit uDmERP;
interface
uses
System.SysUtils, System.Classes, FireDAC.Stan.Intf, FireDAC.Stan.Option,
FireDAC.Stan.Error, FireDAC.UI.Intf, FireDAC.Phys.Intf, FireDAC.Stan.Def,
FireDAC.Stan.Pool, FireDAC.Stan.Async, FireDAC.Phys, FireDAC.Phys.PG,
FireDAC.Phys.PGDef, FireDAC.VCLUI.Wait, FireDAC.Stan.Para... |
unit Helpers;
interface
uses IdHashMessageDigest, idHash, VCL.Forms, classesArbeitsmittel, Classes;
type
TSuchEintrag = record
SpaltenName: string;
AnzeigeName: string;
constructor Create(Spalte, Anzeige: string);
end;
type
TFormStatus = (fsBearbeiten, fsGesperrt, fsNeu, fsLeer);
function getMD5H... |
{**
* @Author: Du xinming
* @Contact: QQ<36511179>; Email<lndxm1979@163.com>
* @Version: 0.0
* @Date: 2018.10.15
* @Thanks:
* Liu weimin QQ<287413288>
* Zhang gaofeng QQ<6117036>
* @Brief:
* TTCPIOHandle
* 1. 提供所有重叠操作接口;
* 2. 封装IOCP
* TTCPIOContext
* 1. 封装通信套接字
* 2. 管理通信套接字上的所有重叠操作。包括重叠读、重叠写以及重叠断开连接等等
... |
unit rhlMurmur3;
interface
uses
rhlCore;
type
{ TrhlMurmur3 }
TrhlMurmur3 = class(TrhlHashWithKey)
private
const
CKEY: DWord = $C58F1A7B;
var
m_h: DWord;
m_key: DWord;
protected
procedure UpdateBytes(const ABuffer; ASize: LongWord); override;
function... |
unit uclsClasses;
interface
uses IdSMTP, IdSSLOpenSSL, IdMessage, IdText, IdAttachmentFile, IdExplicitTLSClientServerBase, System.StrUtils,
System.Classes;
type
IEnviarEmail = interface
['{DAB06D13-6455-4EAB-9424-EFD1A2C2E7A2}']
procedure Enviar(AAssunto, ADestino, AAnexo: String; ACorpo: TStrings);
end;... |
unit Unit1;
interface
uses
System.SysUtils, System.Classes,
Vcl.Imaging.JPeg, Vcl.Graphics, Vcl.Controls,
Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls,
//GLS
GLScene, GLObjects, GLCadencer, GLTexture, GLWin32Viewer, GLCrossPlatform,
GLCoordinates, GLBaseClasses;
type
TForm1 = class... |
{*********************************************}
{ TeeBI Software Library }
{ TDataProviderNeeds Editor }
{ Copyright (c) 2015-2016 by Steema Software }
{ All Rights Reserved }
{*********************************************}
unit VCLBI.Editor.Needs;
interf... |
unit LUX.Audio.SDIF.Frames;
interface //#################################################################### ■
uses System.Classes,
LUX.Audio.SDIF;
type //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$【型】
TFrame1TYP = class;
TFrameASTI = class;
TFrame1ASO = class;
... |
unit WiseLogger;
interface
uses SysUtils, DateUtils;
type TWiseLogger = class
private
name: string; // The name of the logger, e.g. 'dome-agent'
path: string; // The name of the log-file
f: TextFile; // Handle to the file
function makeFullPath: string;
public
procedure log(s... |
UNIT windows;
INTERFACE
USES Dos,Crt;
PROCEDURE OpenWindow(x1,y1,x2,y2: byte;
Fgnd,Bkgnd: byte;
VAR Error : ShortInt );
(* Creates a blank Window with the given coordinates, and saves the contents *)
(* of the underlying region on the heap. If an Error occurs in attempting to *)
... |
unit Ukey; // SpyroTAS is licensed under WTFPL
// keyboard and controller related stuff
interface
uses
Utas, Windows;
const // from PlayStation spec actually
pad_Select = $0001;
pad_L3 = $0002;
pad_R3 = $0004;
pad_Start = $0008;
pad_Up = $0010;
pad_Right = $0020;
pad_Down = $0040;
... |
{-----------------------------------------------------------------------------
Unit Name: fEditSetting
Author: Original code by Lachlan Gemmell (http://lachlan.gemmell.com/),
maintained and improved by Erwien Saputra.
Purpose: Encapsulates all interaction with the Registry.
History:
12/27/... |
unit ControlBarImpl1;
interface
uses
Windows, ActiveX, Classes, Controls, Graphics, Menus, Forms, StdCtrls,
ComServ, StdVCL, AXCtrls, DelCtrls_TLB, ExtCtrls;
type
TControlBarX = class(TActiveXControl, IControlBarX)
private
{ Private declarations }
FDelphiControl: TControlBar;
FEvents: IControlBar... |
unit testTreeView;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ComCtrls, StdCtrls;
type
TtestTreeViewForm = class(TForm)
tv1: TTreeView;
edt1: TEdit;
btn1: TButton;
procedure edt1Change(Sender: TObject);
procedure FormCreate(Sender: TOb... |
unit WriterThread;
interface
uses Windows, Classes, Math, SysUtils, ltr34api, Dialogs, ltrapi, Config;
type TWriter = class(TThread)
private
procedure WriteConfigInfo(path : string);
public
path:string;
frequency:string;
Files : array of TextFile;
skipAmount: integer;
History: THistory;
... |
// ****************************************************************************
// * mxWebUpdate Component for Delphi 5,6,7
// ****************************************************************************
// * CopyRight 2002-2005, Bitvadász Kft. All Rights Reserved.
// ***********************************************... |
unit ncaFrmPopupUnidade;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ncaFrmPopUpEdit, cxGraphics, cxControls, cxLookAndFeels,
cxLookAndFeelPainters, cxStyles, cxCustomData, cxFilter, cxData,
cxDataStorage, cxEdit, cxNavigator, DB, cxDBData, nxdb, dxBarExt... |
{*******************************************************}
{ }
{ Delphi FireDAC Framework }
{ FireDAC Oracle Call Interface }
{ }
{ Copyright(c) 2004-2018 Embar... |
unit caStackObjects;
{$INCLUDE ca.inc}
interface
uses
// Standard Delphi units
SysUtils,
Classes,
// ca units
caClasses,
caUtils;
type
//---------------------------------------------------------------------------
// TcaStackInteger
//----------------------------------------------------------------... |
unit ltrapidefine;
interface
uses SysUtils;
const
LTRD_ADDR_LOCAL = $7F000001;
LTRD_ADDR_DEFAULT = LTRD_ADDR_LOCAL;
LTRD_PORT_DEFAULT = 11111;
LTR_CRATES_MAX = 16; { Максимальное количество крейтов,
которое можно получить с помощью
... |
{
AD.A.P.T. Library
Copyright (C) 2014-2018, Simon J Stuart, All Rights Reserved
Original Source Location: https://github.com/LaKraven/ADAPT
Subject to original License: https://github.com/LaKraven/ADAPT/blob/master/LICENSE.md
}
unit ADAPT.Collections.Abstract;
{$I ADAPT.inc}
interface
uses
... |
unit MeasureUnit.DataSize;
interface
uses
SysUtils, Math;
type
TNumeralSystem = (Denary, Binary);
TDatasizeUnit = record
FPowerOfKUnit: Integer;
FUnitName: String;
end;
TDatasizeUnitChangeSetting = record
FNumeralSystem: TNumeralSystem;
FFromUnit: TDatasizeUnit;
FToUnit: TDatasizeUnit... |
unit Teste.Build.JSONData;
interface
uses
System.SysUtils, System.JSON;
type
TJSONBuildMock = class
class function CarregarArquivo(const FileName: TFileName): string;
class function CarregarJSONDoArquivo<T: TJSONValue>(const FileName: TFileName): T;
end;
const
ARQUIVO_JSON_SUCESSO = 'build.json';
... |
program Sample;
var
A,B : Char;
S : String;
begin
S := 'Hello World';
A := #66;
S[1] := A;
B := S[7];
WriteLn('A = ', A);
WriteLn('S = ', S);
WriteLn('B = ', B);
end.
|
program pascal(output);
function palindrome(s: string): boolean;
var
result: boolean;
middleChar: integer;
lastChar: integer;
i: integer;
begin
middleChar := length(s) / 2;
lastChar := length(s) - 1;
for i := 1 to middleChar
if s[i] <> s[lastChar - i] then
return := fal... |
(**
This module contains class / interface for managing the zipping of a project to an archive.
@Author David Hoyle
@Version 1.0
@Date 05 Jan 2018
**)
Unit ITHelper.ZIPManager;
Interface
{$INCLUDE 'CompilerDefinitions.inc'}
Uses
Classes,
Contnrs,
ToolsAPI,
ITHelper.Interfaces;
Type
(** ... |
unit uUserControl;
interface
uses
System.Classes, system.SysUtils, uUserInfo, uUserAction;
type
/// <summary>
/// 登录结果
/// </summary>
TUA_LOGIN_STATUS = ( uaUserNotExist, uaWrongPassword, uaSucceed );
type
TUserControl = class
private
FUserGroupList: TStringList;
FUserList: TS... |
Unit TextDisp;
interface
{$I TEXTMODE.INC}
uses CRT, Graph, Windows, Memory;
type
MessageRec = RECORD
BitMap : POINTER;
OldColor,
OldBkColor,
ClipSize : WORD;
x, y : INTEGER;
END;
procedu... |
unit mopformula;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, fgl, mopmaterial, moptype, complexes;
type
{ TMOPLay }
TMOPLay = class // характеристики слоя
public
LayName: string;
LinkMaterialIndex: integer;
MaterialName: string;
Thickness: real;
OpticThic... |
unit CheckField;
interface
uses
System.SysUtils, System.Classes, FMX.Types, FMX.Controls, System.Types,
FMX.Objects, FMX.StdCtrls, System.UITypes, FMX.Graphics, FMX.Dialogs, System.Math,
System.Math.Vectors, FMX.Edit, FMX.Layouts, FMX.Effects, ColorClass;
type
TCheckField = class(TControl)
private
{ Pr... |
unit TestAbsolute;
{ AFS 11 March 2K
This code compiles, but is not semantically meaningfull.
It is test cases for the code-formating utility
Test the 'absolute' keyword
}
interface
implementation
uses Classes, Types;
{ a hack extrac... |
unit uDados;
interface
uses
SysUtils, Classes, FireDAC.Stan.Intf, FireDAC.Stan.Option,
FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf,
FireDAC.DApt.Intf, Data.DB, FireDAC.Comp.DataSet, FireDAC.Comp.Client,
uDWConstsData, uRESTDWPoolerDB, uDWAbout, uniGUIBaseClasses,
uniGUIClasses, U... |
unit SFPHelper;
interface uses Types, SysUtils, Classes,
StreamUtil;
const
// SIMPLE FRAMED PROTOCOL
// 0 1
SFP_FRAME_BOUND = $F0; // bnd
SFP_ESCAPE_START = $F1; // esc
S... |
unit FSTree;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils;
type
TFileSystemNode = class;
{ TFileSystem }
TFileSystem = class(TComponent)
private
FRoot: TFileSystemNode;
class function GetNodeSeparator: string;
function GetRoot: TFileSystemNode;
public
function FindNodeByFileNa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.