text stringlengths 14 6.51M |
|---|
unit LLVM.Imports.Core;
interface
//based on Core.h
uses
LLVM.Imports,
LLVM.Imports.Types;
{$MinEnumSize 4}
const
// versione
LTO_API_VERSION = 24;
type
TLLVMAttrKind = (
// IR-Level Attributes
LLVMNone, ///< No attributes have been set
LLVMAlignment, ... |
unit ncTarifador;
{
ResourceString: Dario 13/03/13
}
{
Ajustar re-ordenação de passaportes a cada hora
Evitar expiração de passaportes indevidamente
}
interface
uses
SysUtils,
DB,
MD5,
Classes,
Windows,
ClasseCS,
ncClassesBase,
ncPassaportes;
type
TncPausa = class
pInicio : TDateTime;
... |
unit uMainForm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, ComCtrls, Menus, frxpngimage, sSkinManager,
Grids, AdvObj, BaseGrid, AdvGrid, DBAdvGrid, frxClass, CPort;
type
TMainForm = class(TForm)
MainMenu1: TMainMenu;
File1: T... |
unit delphi_intf_2;
interface
implementation
type
IUnknown = interface
function QueryInterface(const IID: TGUID; out Intf: IUnknown): Int32; stdcall;
function _AddRef: Int32; stdcall;
function _Release: Int32; stdcall;
end external 'SYS';
function GetIUnknown: IUnknown; external 'SYS';
var... |
unit ksSlideMenuUI;
interface
{$I ksComponents.inc}
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Objects,
ksTypes, ksVirtualListView, FMX.Effects, ksAppEvents;
type
TfrmSlideMenuUI = class(TForm)
l... |
unit uEngineAnimation;
{$ZEROBASEDSTRINGS OFF}
{
引擎中基础的动画类....
以T2DAnimation为基础,对具体的动画进行扩展....
这里的动画,实际上主要的功能就是根据时间计算出当前的值....
}
interface
uses
System.Classes,System.UITypes, FMX.Types,FMX.Objects, System.JSon,
System.SysUtils, System.Types, uEngineUtils, Math,RTTI;
Type
TAnimationFinish = Pro... |
{***************************************************************
*
* Project : TCPStreamClient
* Unit Name: ClientMain
* Purpose : Indy TCP Stream Client Demo - streaming a StringList
* Version : 1.0
* Date : October 6, 2000
* Author : Don Siders <sidersd@att.net>
* History :
* Tested : Wed 25 Apr 2001... |
program tema6_2017;
uses crt;
const
N = 7;
type Tmat = array[1..7,1..N] of Integer;
Tvec = array[1..7] of Integer;
procedure cargarProduccion(var A: Tmat);
var
i,j: Integer;
begin
for i := 1 to 7 do
begin
for j := 1 to N do
begin
A[i,j]:=1+random(N+10+1-1);
end;
end;
end;
procedu... |
unit SMCnst;
interface
{English strings}
const
strMessage = 'Yazdır...';
strSaveChanges = 'Database Server''a bilgileri yazmak istediğinize emin misiniz?';
strErrSaveChanges = 'Veriler kaydedilemedi. Veri taban bağlantısını ve/veya datalar kontrol ediniz.';
strDeleteWarning = '%s tablosunu gerçekten silm... |
unit FIToolkit.Reports.Builder.Consts;
interface
uses
System.SysUtils,
FIToolkit.Reports.Parser.Types,
FIToolkit.Localization;
const
{ Common consts }
ARR_MSGTYPE_TO_MSGKEYWORD_MAPPING : array [TFixInsightMessageType] of String =
(String.Empty, 'Warning', 'Optimization', 'CodingConvention', 'Fatal',... |
unit vr_JsonRpcClasses;
{$mode delphi}{$H+}
{$I vrode.inc}
interface
{.$DEFINE FORMS_ASYNC_CALL}
uses
Classes, SysUtils, vr_utils, vr_classes, vr_JsonRpc, vr_JsonUtils, vr_promise,
vr_transport, vr_SysUtils, vr_variant
{$IFDEF FORMS_ASYNC_CALL}, Forms{$ENDIF};
type
IPromise = vr_promise.IPromise;
... |
unit Error;
interface
uses
ScktComp;
type
TError = class
type ErrorCode = (
UnknownError,
UnknownCommand,
InvalidCommandFormat,
IncorrectNickName,
NickNameIsInUse,
IncorrectRoomName,
AlreadyInChannel
);
// Эмиттировать ошибку у клиента
... |
unit RValueComparison;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, DBCtrls, DBTables, DB, Buttons, Grids,
Wwdbigrd, Wwdbgrid, ExtCtrls, Wwtable, Wwdatsrc, Menus, wwdblook,
TabNotBk, Types, RPFiler, RPDefine, RPBase, RPCanvas, RPrinter, Progress... |
unit MediaStream.Framer.Bmp;
interface
uses Windows,SysUtils,Classes,MediaProcessing.Definitions,MediaStream.Framer,MediaStream.Framer.Picture,BitPlane;
type
TStreamFramerBmp = class (TStreamFramerPicture)
private
FBmpFileHeader: BITMAPFILEHEADER;
FBmpInfoHeader: BITMAPINFOHEADER;
FBmpDib: TBytes;
... |
// auteur : Djebien Tarik
// date : Mai 2010
// objet : Unite pour la structure de donnée linéaire de PILE (LIFO).
UNIT U_Pile;
INTERFACE
uses SysUtils;
TYPE
(*===============================================================================================*)
(*============================= DEFINITION DU TYPE POI... |
unit Rx.Observable.Delay;
interface
uses Rx, Rx.Implementations, Generics.Collections, Rx.Subjects;
type
TDelay<T> = class(TPublishSubject<T>)
type
TValue = TSmartVariable<T>;
strict private
FCache: TList<TValue>;
FCompleted: Boolean;
FError: IThrowable;
FInterval: TObservable... |
{
LaKraven Studios Standard Library [LKSL]
Copyright (c) 2014, LaKraven Studios Ltd, All Rights Reserved
Original Source Location: https://github.com/LaKraven/LKSL
License:
- You may use this library as you see fit, including use within commercial applications.
- You may modify this library to suit yo... |
////////////////////////////////////////////
// Обертка над Query и Connection к SQL
// Требуется для относительно бескровного перехода от MS SQL к Postgres
////////////////////////////////////////////
unit GMSqlQuery;
interface
uses Windows, Classes, ZDataset, ZConnection, GMGlobals, DB, ConnParamsStorage, SysUtils... |
unit frmMain;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs,
Vcl.StdCtrls, Vcl.Grids, System.StrUtils, Vcl.ExtCtrls,
Vcl.ComCtrls, Vcl.Menus,
Xml.xmldom, Xml.XMLIntf, Xml.XMLDoc,
Ths.Erp.Helper.BaseType... |
unit SJ_CTR;
(*************************************************************************
DESCRIPTION : SkipJack CTR mode functions
Because of buffering en/decrypting is associative
User can supply custom increment functions
REQUIREMENTS : TP5-7, D1-D7/D9-D10/D12, FPC, VP... |
unit Dirs_Entrega;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Mask, RxToolEdit, StrMan, StringLib,
RzEdit, RzBtnEdt, RzLabel, ExtCtrls, RzPanel, RzRadChk, RzButton, RzCmboBx,
ClsDirEntrega;
type
TfraDirs_Entrega = class(TFrame)
RzPane... |
unit uTurtleManager;
{$mode delphi}{$H+}
interface
uses
Classes, SysUtils, fgl, uTurtle;
type TTurtleListe = TFPGList<TTurtle>;
type PTurtle = ^TTurtle;
type TTurtleManager = class
private
FTurtleListe: TTurtleListe;
{ Rueckgabe: True, wenn gueltig. False andernfalls. }
function ueberpruefeGuelti... |
program TestEnums;
procedure internal();
type
Days = (Sun, Mon, Tue, Wed, Thu, Fri, Sat);
var day : Days;
begin
WriteLn('Mon: ', Mon);
day := Tue;
WriteLn('day: ', day);
end;
begin
internal();
end.
|
{*******************************************************}
{ }
{ CodeGear Delphi Runtime Library }
{ Copyright(c) 2013-2018 Embarcadero Technologies, Inc. }
{ All rights reserved }
{ ... |
unit NtUtils.Registry;
interface
uses
Winapi.WinNt, Ntapi.ntregapi, NtUtils.Exceptions, NtUtils.Objects;
type
TRegValueType = Ntapi.ntregapi.TRegValueType;
TKeyBasicInfo = record
LastWriteTime: TLargeInteger;
TitleIndex: Cardinal;
Name: String;
end;
TRegValueEntry = record
ValueType: TReg... |
program rhombus;
function EnterRhombusHight(): integer;
var
d : integer;
begin
repeat
write('Enter a hight (an odd positive number):');
readln(d);
until (d > 0) and (d mod 2 = 1);
EnterRhombusHight := d;
end;
var
rhombus_hight, line_num, line_pos, rhombus_mid, star_shift : integer... |
unit ActiveClient;
interface
uses
AppConstants, System.Rtti, SysUtils, DateUtils, Ledger, Math, LoanClassification;
type
TLoan = class
strict private
FId: string;
FLoanTypeName: string;
FAccountTypeName: string;
FBalance: currency;
FPrincipalDeficit: currency;
FInterestMethod: string;
... |
unit UEngineConfig;
interface
uses
windows,IniFiles,SysUtils;
const
C_ROOT = 'NgPlugin';
type
TEngineConfig = class
private
mActive:BOOL;
mDir:String; //模块所在目录
mCfgPath:String; //配置文件完整路径
mFileName:String;
mIni:TIniFile;
function GetIp: String;
... |
program Sample;
var
H, G : String;
begin
H := 'Hello World';
G := H;
H[1] := 'M';
WriteLn('G: ', G);
WriteLn('H: ', H);
end.
|
{*********************************************}
{ TeeBI Software Library }
{ Abstract TBIGridPlugin class }
{ Copyright (c) 2017 by Steema Software }
{ All Rights Reserved }
{*********************************************}
unit BI.Grid.Plugin;
interface
... |
unit Stats.PedsTraceData;
interface
uses
Stats.IO.Base,
Stats.Constant;
type
TPedTestTraceData = class (TTraceDataObj)
strict private
FSimTime: TDateTime;
FID: integer;
FName: String;
public
property SimTime: TDateTime read FSimTime write FSimTime;
property ID: integer read FID w... |
unit uReminders;
interface
uses
Windows, Messages, Classes, Controls, StdCtrls, SysUtils, ComCtrls, Menus,
Graphics, Forms, ORClasses, ORCtrls, ORDtTm, ORFn, ORNet, Dialogs, uPCE,
uVitals,
ExtCtrls, fDrawers, fDeviceSelect, TypInfo, StrUtils,fRptBox;
type
TReminderDialog = class(TObject)
private
FDlg... |
{
Double Commander
-------------------------------------------------------------------------
Generic file view containing default panels (header, footer, etc.)
Copyright (C) 2012-2018 Alexander Koblov (alexx2000@mail.ru)
Copyright (C) 2012 Przemyslaw Nagay (cobines@gmail.com)
This program ... |
unit PosInterface;
interface
type
TMsgDescriptionProc = procedure(AMsgDescription : string) of object;
IPos = interface
procedure SetMsgDescriptionProc(Value: TMsgDescriptionProc);
function GetMsgDescriptionProc: TMsgDescriptionProc;
function GetLastPosError : string;
function Payment... |
unit fpeMakerNoteSanyo;
{$IFDEF FPC}
{$MODE DELPHI}
//{$mode objfpc}{$H+}
{$ENDIF}
interface
uses
Classes, SysUtils,
fpeTags, fpeExifReadWrite;
type
TSanyoMakerNoteReader = class(TMakerNoteReader)
protected
procedure GetTagDefs({%H-}AStream: TStream); override;
end;
implementation
uses
fpeStrC... |
unit FC.Trade.Statistics;
{$I Compiler.inc}
interface
uses Classes, SysUtils, FC.Definitions;
type
TStockTradingStatistics = class
private
FBalance: TStockRealNumber;
FLargestProfit: TStockRealNumber;
FLargestLoss : TStockRealNumber;
FLargestProfitPts: integer;
FLargestLossPts : integer;
... |
unit DragDropInternet;
// -----------------------------------------------------------------------------
// Project: Drag and Drop Component Suite.
// Module: DragDropInternet
// Description: Implements Dragging and Dropping of internet related data.
// Version: 4.0
// Date: ... |
// ************************************************************************ //
// The types declared in this file were generated from data read from the
// WSDL File described below:
// WSDL : http://localhost:8082/wsdl/IClientsTalking
// >Import : http://localhost:8082/wsdl/IClientsTalking>0
// Version : 1.0... |
unit ANovaCondicaoPagamento;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, formularios,
StdCtrls, Buttons, Componentes1, ExtCtrls, PainelGradiente, DBKeyViolation, constantes,
ComCtrls, Grids, CGrades, Mask, numericos, UnDadosCR, UnCondicaoPagamento,
Localiza... |
unit classe.aluno;
interface
Uses TEntity, AttributeEntity, SysUtils;
type
[TableName('ALUNO')]
TAluno = class(TGenericEntity)
private
FIdAluno:integer;
FNome:string;
procedure setIdAluno(const Value: integer);
procedure setNome(value:string);
public
[KeyField('IDALUNO')]
[FieldN... |
{*******************************************************}
{ }
{ Delphi LiveBindings Framework }
{ }
{ Copyright(c) 2011-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
// ****************************************************************************
// * mxWebUpdate Component for Delphi 5,6,7
// ****************************************************************************
// * This component can be freely used and distributed in commercial and
// * private environments, provied this... |
unit ncaPanItensVendaBase;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, LMDControl, LMDCustomControl, LMDCustomPanel, LMDCustomBevelPanel,
LMDSimplePanel, ncMovEst, cxGraphics, cxControls, cxLookAndFeels,
cxLookAndFeelPainters, cxContainer, cxEdit, Menus, ... |
// (c) Alex Konshin mailto:alexk@msmt.spb.su 05.01.99
unit DateComboBox;
// замена для TDateTimePicker
interface
uses
SysUtils, Windows, Classes, Messages, Graphics, Controls, ComCtrls, CommCtrl, Types;
type
{ Calendar common control support }
TCustomCalendar = class;
ECommonCalendarError = class(Exception... |
unit GeoUnitTests;
interface
uses
TestFramework;
type
// Test methods for unit Geo.pas
TGeoUnitTest = class(TTestCase)
private
public
published
procedure Test00;
procedure Test01;
procedure Test02;
procedure Test03;
procedure Test04;
procedure Test05;
procedure Test06;
p... |
unit OS.EnvironmentVariable;
interface
uses
Forms, Windows, SysUtils, Classes, ShlObj, Character,
Registry.Helper, Registry.Helper.Internal, AsciiCheck;
type
TEnvironmentVariable = class
private
function AppendRandomNSTFooter(const BasePath: String): String;
function RootTempFolder: String;
proce... |
{$mode objfpc}{$H+}{$J-}
{$modeswitch advancedrecords}
type
TMyRecord = record
public
I, Square: Integer;
procedure WriteLnDescription;
end;
procedure TMyRecord.WriteLnDescription;
begin
WriteLn('Квадрат числа ', I, ' равен ', Square);
end;
var
A: array [0..9] of TMyRecord;
R: TMyRecord;
I: Inte... |
unit Unit2;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, jpeg, ExtCtrls, StdCtrls, Mask, DBCtrls;
type
TForm2 = class(TForm)
Image2: TImage;
Panel2: TPanel;
Panel1: TPanel;
Image1: TImage;
Label1: TLabel;
txtRamal: TDBEdit;
txtSe... |
unit CustLayout;
interface
uses Classes, HTTPApp, Db, DbClient, Midas,
XMLBrokr, WebComp, PagItems, MidItems;
type
TTitleLayoutGroup = class(TLayoutGroup)
private
FCaption: string;
FCaptionPosition: TCaptionPosition;
FCaptionAttributes: TCaptionAttributes;
protected
function ImplContent(Optio... |
{*******************************************************}
{ }
{ Borland Delphi Visual Component Library }
{ CGI/WinCGI Web server application components }
{ }
{ Copyright (c) 1997,98... |
{$F-,A+,O+,G+,R-,S+,I+,Q-,V-,B-,X+,T-,P-,D-,L-,N-,E+}
unit Swap;
interface
const
UseEmsIfAvailable : Boolean = True; {True to use EMS if available}
BytesSwapped : LongInt = 0; {Bytes to swap to EMS/disk}
EmsAllocated : Boolean = False; {True when EMS allocated for swap}
FileAl... |
unit FrostUnit;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ComCtrls;
type
TFrostForm = class(TForm)
Label1: TLabel;
Label2: TLabel;
EditH: TEdit;
TrackBarH: TTrackBar;
... |
unit Support.Sandisk.USB;
interface
uses
SysUtils, Math,
Support, Device.SMART.List;
type
TSandiskUSBNSTSupport = class sealed(TNSTSupport)
private
InterpretingSMARTValueList: TSMARTValueList;
function GetFullSupport: TSupportStatus;
function GetTotalWrite: TTotalWrite;
function IsProductOfSa... |
unit ElevationUtils;
{
#===============================================================================
# Name: ElevationUtils.pas
# Author: Aleksander Oven
# Created: 2007-03-01
# Last Change: 2007-03-01
# Version: 1.0
# Description:
Windows Vista COM Elevation Moniker implementation.
http:... |
{
Huge Integer Numbers
By Mehran
}
unit numunit;
interface
const
CBase = 10;
MaxN = 100;
type
TInt = longint;
TDigit = integer;
TWorkDigit = longint;
TNumber = record
n:integer;
a:array [0..MaxN] of TDigit;
end;
function compareNumber(const a, b:TNumber):integer; (* approved *)
procedure assig... |
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls ,ComCtrls,uSoundTypes,uToneGenerator, sTrackBar,
ExtCtrls ;
type
TVolumeLevel = 0..127;
type
TForm1 = class(TForm)
Button1: TButton;
btnSave: TButton;
edtFreque... |
unit Thread.Update.Helper;
interface
uses
Classes, SysUtils, Windows, ShellApi,
Version, Web.HTTP, Global.Constant, Thread.Download, Getter.WebPath,
Getter.CodesignVerifier, Global.LanguageString, OS.EnvironmentVariable, Form.Alert,
Thread.Download.Helper, OS.DeleteDirectory;
type
TCheckUpdateResult = reco... |
unit Plus;
interface
uses windows, classes, xbase;
procedure PrepareVariables;
function Win2Dos(const WinStr: string): string;
function Dos2Win(const DosStr: string): string;
function FileNameDos2Win(const FileName: string; convert: boolean): string;
function FileNameWin2Dos(const FileName: string; convert: bool... |
{
ID: a2peter1
PROG: milk
LANG: PASCAL
}
{$B-,I-,Q-,R-,S-}
const
problem = 'milk';
MaxN = 5000;
var
N,M,i,j,sol : longint;
A,B : array[0..MaxN] of longint;
var p,tmp : longint;
procedure qsort(d,h: longint);
var i,j : longint;
begin
i := d; j := h; p := A[(d +... |
{*******************************************************}
{ }
{ Kylix Runtime Library }
{ Linux Kernel API Interface Unit }
{ }
{ Copyright(c) 2016-2018 Embar... |
unit MediaStream.Framer.Wave;
interface
uses Windows,SysUtils,Classes,MediaProcessing.Definitions,MediaStream.Framer,MMSystem;
type
TStreamFramerWave = class (TStreamFramer)
private
FStream : TStream;
FBuffer: TBytes;
FFormat: TPCMWaveFormat;
FDataSize: DWORD;
FTimeStamp: int64;
public
... |
unit Financas.Model.Connections.Interfaces;
interface
uses
System.Classes;
type
iModelConnectionParams = interface;
iModelConnection = interface
['{E8538D27-DFF2-4485-A303-616176681A93}']
function Conectar : iModelConnection;
function EndConnection: TComponent;
function Params: iModelConnectio... |
{
Copyright (c) 2003-2006, Loginov Dmitry Sergeevich
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of con... |
unit DragDropFile;
// -----------------------------------------------------------------------------
// Project: Drag and Drop Component Suite.
// Module: DragDropFile
// Description: Implements Dragging and Dropping of files and folders.
// Version: 4.0
// Date: 18-MAY-20... |
unit TestAdvanceTextPos;
{(*}
(*------------------------------------------------------------------------------
Delphi Code formatter source code
The Original Code is TestAdvanceTextPos
The Initial Developer of the Original Code is Anthony Steele.
Portions created by Anthony Steele are Copyright (C) 1999-2008... |
unit main;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Grids, Outline, ComCtrls, ImgList, ExtCtrls;
type
TRegForm = class(TForm)
TreeView1: TTreeView;
ListView1: TListView;
ImageList1: TImageList;
ImageList2: TImageList;
Splitter1: TSpl... |
unit SMCnst;
interface
{Indonesian strings}
const
strMessage = 'Mencetak...';
strSaveChanges = 'Rekam perubahan-perubahan pada Database Server?';
strErrSaveChanges = 'Gagal merekam data! Cek Server connection atau data validation.';
strDeleteWarning = 'Hapus table %s?';
strEmptyWarning = 'Hapus se... |
unit uPing;
interface
uses
{$IF CompilerVersion > 22}
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, System.TypInfo,
{$ELSE}
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
... |
// *************** ДОБАВЛЕНИЕ ТАЙМЕРА НА КНОПКИ ДИАЛОГОВ *************** \\
unit DlgCountdown;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Classes;
type
// Как искать кнопку:
// cdsByClass - по классу и индексу.
// BtnID - индекс, BtnStr - класс.
// Выполняется перебо... |
unit UUser;
interface
uses
System.JSON.Types, System.JSON.Readers, System.JSON.BSON,
System.JSON.Builders, FireDAC.Phys.MongoDBWrapper, UDMMongo,
IdHashMessageDigest, SysUtils, IdHash, FireDAC.Phys.MongoDBDataSet;
type TUser = class
private
FUsename: string;
FName: string;
FPassword: string;
... |
{ 25/05/2007 11:10:25 (GMT+1:00) > [Akadamia] checked in }
{ 25/05/2007 11:08:25 (GMT+1:00) > [Akadamia] checked out /}
{ 14/02/2007 08:43:02 (GMT+0:00) > [Akadamia] checked in }
{-----------------------------------------------------------------------------
Unit Name: MAU
Author: ken.adam
Date: 15-Jan-20... |
unit uFizzBuzz;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Memo1: TMemo;
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
procedure fizzbuzz;... |
{ Portable BP compatible Dos unit
This unit supports most of the routines and declarations of BP's
Dos unit.
Notes:
- The procedures Keep, GetIntVec, SetIntVec are not supported
since they make only sense for Dos real-mode programs (and GPC
compiled programs do not run in real-mode, even on IA32 unde... |
unit ncFirewall;
{
ResourceString: Dario 12/03/13
}
interface
uses
ActiveX, ComObj, ncDebug, SysUtils;
procedure addPortToFirewall(EntryName:string;PortNumber:Cardinal);
procedure allowexceptionsOnFirewall;
procedure addApplicationToFirewall(EntryName:string;ApplicationPathAndExe:string);
implementation
Co... |
unit umutex;
interface
uses Windows, SysUtils;
type
tMutexLog = procedure(msg:string) of object;
tMutex = class
private
onLog : tMutexLog;
handle : cardinal;
f_name : string;
procedure log(s:string);
function name_local : string;
function name_global : string;
function name_current : str... |
unit uUnidadeModel;
interface
uses
uEnumerado, FireDAC.Comp.Client;
type
TUnidadeModel = class
private
FAcao: TAcao;
FCodigo: integer;
FNome: string;
FCep: string;
FCidade: string;
procedure SetCep(const Value: string);
procedure SetCidade(const Value: string);
procedure SetC... |
unit NtUtils.Exec.Wmi;
interface
uses
NtUtils.Exec, NtUtils.Exceptions;
type
TExecCallWmi = class(TExecMethod)
class function Supports(Parameter: TExecParam): Boolean; override;
class function Execute(ParamSet: IExecProvider; out Info: TProcessInfo):
TNtxStatus; override;
end;
implementation
us... |
unit Connection.Base;
interface
uses Windows, GMConst, GMGlobals, ScktComp, StrUtils, StdResponce;
type
TExchangeType = (etSend, etRec, etSenRec);
TCheckCOMResult = (ccrBytes, ccrEmpty, ccrError);
BoolReturningFunc = function: bool of object;
TRequestUniversalXmlContent = (ruxcRequest, ruxcResponce);
TCon... |
unit ClassAdresy;
interface
uses DBTables, StdCtrls;
type TAdresy = class
private
Query : TQuery;
procedure NacitajAdresy;
procedure OpravDiakritiku;
public
Adresy : array of array of string;
Active : integer;
constructor Create;
destructor Destroy; overri... |
unit UMinecraftLoader;
interface
uses WinApi.Windows, classes, UFileUtilities, SysUtils, ULauncherProfileLoader,
SuperObject;
type
TMinecraftLibrary = class
public
OldText, Formatted:string;
RuleCount:integer;
RulesAction:array[1..8]of string;
RulesOSName:array[1..8]of string;
RulesOSVers... |
unit MD5.Message;
interface
uses
MD5.Globals,
MD5.Utils;
type
{ TScreenMessage }
TScreenMessageShowMode = (smNORMAL, smFORCE, smDONE);
TScreenMessageParameters = array[0..10] of Cardinal; // Параметры статистики
/// <summary>
/// Ссылка на процедуру, которая умеет
/// показывать статистическую инф... |
{*******************************************************}
{ }
{ Delphi DataSnap Framework }
{ }
{ Copyright(c) 2011-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
{
*
* Copyright (C) 2005-2009 UDW-SOFTWARE <http://udw.altervista.com/>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later ... |
unit ComboBoxImpl1;
interface
uses
Windows, ActiveX, Classes, Controls, Graphics, Menus, Forms, StdCtrls,
ComServ, StdVCL, AXCtrls, DelCtrls_TLB;
type
TComboBoxX = class(TActiveXControl, IComboBoxX)
private
{ Private declarations }
FDelphiControl: TComboBox;
FEvents: IComboBoxXEvents;
procedu... |
unit Unit1;
interface
uses
{$IFDEF TESTING}
TestFramework,
{$ENDIF}
Classes, SysUtils;
type
TMyObject = class(TObject)
public
procedure DoSomething;
end;
{$IFDEF TESTING}
TTestMyObject = class(TTestCase)
private
FMyObject: TMyObject;
public
procedure Setup; override;
procedure ... |
unit Soccer.Voting.RulePreferenceList;
interface
uses
System.SysUtils,
System.Classes,
System.Generics.Collections,
Soccer.Voting.AbstractRule;
type
TSoccerVotingRulePreferenceList = class
private
FList: TList<ISoccerVotingRule>;
FPreferenceFile: string;
function IsBiggerThan(ARule: ISoccerV... |
unit uConexao;
interface
uses
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, Data.DB, FireDAC.Comp.Client, FireDAC.Phys.MySQLDef,
FireDAC.Phys.FB, System.SysUtils, FireDAC.DApt, FireDAC.... |
unit ANU_CBC;
(*************************************************************************
DESCRIPTION : Anubis (tweaked) CBC functions
REQUIREMENTS : TP5-7, D1-D7/D9-D10/D12, FPC, VP
EXTERNAL DATA : ---
MEMORY USAGE : ---
DISPLAY MODE : ---
REFERENCES : B.Schneier, Applied Crypto... |
unit BrickCamp.Common.JsonContract;
// this too via Sir Rufo.
interface
type
TJsonContractBase = class abstract
protected
procedure DisposeObjectArray<T: class>( var arr: TArray<T> );
class function _FromJson( const aJsonStr: string ): TObject; overload;
class procedure _FromJson( aResult: TObject; con... |
unit gsPLScript;
interface
uses
Windows, Classes, SysUtils
, swiprolog
;
type
TgsPL = class(TObject)
public
constructor Create;
destructor Destroy; override;
end;
TgsPLScript = class(TgsPL)
private
FInput: String;
FOutput: String;
FReturnValue: String;
procedure SetInput(cons... |
unit UnitFormChart;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, VclTee.TeeGDIPlus, VclTee.TeEngine,
Vcl.ExtCtrls, VclTee.TeeProcs, VclTee.Chart, VclTee.Series, Vcl.Grids,
UnitApiClient, Vcl.Co... |
unit HSLUtils;
interface
uses
Windows, Graphics,System.Classes;
// Получить цвет, темнее исходного на Percent процентов
function DarkerColor(const Color : TColor; Percent : Integer) : TColor;
// Получить цвет, светлее исходного на Percent процентов
function LighterColor(const Color : TColor; Percent : Integer) : T... |
unit U.Converters;
interface
procedure RegisterStringToListBoxConverter;
procedure RegisterStringToBrushColorConverter;
implementation
uses
System.Bindings.Outputs,
System.Rtti,
Vcl.StdCtrls,
Vcl.Graphics,
System.SysUtils;
procedure RegisterStringToListBoxConverter;
var
LConverterDescription: TConverte... |
unit string_seg_count;
interface
implementation
type Integer = Int32;
function Pos(const SubStr, Str: string; Offset: Int32): Int32;
var
I, LIterCnt, L, J: Int32;
begin
L := Length(SubStr);
LIterCnt := Length(Str) - L - Offset;
if (Offset >= 0) and (LIterCnt >= 0) and (L > 0) then
begin
for I := 0 to... |
{-------------------------------------------------------------------------------
The contents of this file are subject to the Mozilla Public License
Version 1.1 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/
So... |
unit EmployerList;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BaseGridDetail, Data.DB,
System.ImageList, Vcl.ImgList, RzButton, Vcl.StdCtrls, Vcl.Mask,
RzEdit, RzTabs, Vcl.Grids, Vcl.DBGrids, RzDBGrid, R... |
unit SevenZipIntfWrapper;
interface
type
TThreadParam = packed record
fileName: string;
end;
PTThreadParam = ^TThreadParam;
TProgressCallback = function(value: Cardinal): Integer;
procedure SZNewArchive(const archTypeName: PAnsiChar; const libDir: PAnsiChar); stdcall;
procedure ... |
Program ScopeDemo;
Var
A: integer;
Procedure ScopeInner;
Var
A: integer;
Begin
A := 10;
WriteLn(A);
End;
Begin
A := 20;
WriteLn(A);
ScopeInner;
WriteLn(A);
End.
|
UNIT GraphPrm;
{ Graphic Primitives from FRACTALS IN C }
{ ===========================================================}
interface
{ ===========================================================}
VAR
DisplayWidth,
DisplayHeight : INTEGER;
HalfWidth,
HalfHeight : INTEGER;
PROCEDURE SetMode(mode : BYTE);
{ set v... |
unit uDeleteFiles;
interface
uses
Windows, SysUtils, classes, SyncObjs, uDirUtils;
type
TFolderEvent = procedure(Sender: TObject; Dirname : string) of object;
TDeleteFilesThread = class(TThread)
private
fOnDelete : TFolderEvent;
fDirName : string;
fPasta : string;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.