text stringlengths 14 6.51M |
|---|
const N = 20;
type arr = array [1..N] of integer; //Change the type if you need.
var
a: arr;
i: integer;
key, res: integer; //Change the type if you need.
function LinearSearch(var dat: arr; key: integer): integer; // This is the Linear Search Algorithm. Change the type if you need.
var
i: integer;
be... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1995, Prospero Software Limited }
{ }
{ TEST 6.9.1-18, FILE=CONF221, CLASS... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.7.2.3-3, FILE=IMPDEP08,... |
unit LPTControler;
interface
uses
Windows, Winsock, Classes, SysUtils, Log4D, Protocol;
type
TLPTControler = class;
TLPTControlerConnection = class (TThread)
private
FControler: TLPTControler;
FSocket: TSocket;
FAddress: TSockAddrIn;
protected
class function Log: TLogLogger... |
unit ippi90legacy;
interface
uses
ippdefs;
{$I ipp.inc}
{LINE 2371}
(* /////////////////////////////////////////////////////////////////////////////
// Name: ippiRotate
// Purpose: Rotates an image around (0, 0) by specified angle + shifts it
// Parameters:
// pSrc Poin... |
unit UCL.ProgressBar;
interface
uses
Classes,
Types,
Messages,
Controls,
Graphics,
UCL.Classes,
UCL.Types,
UCL.Colors,
UCL.Utils,
UCL.IntAnimation;
type
TUProgressBar = class;
TUWaterMarkPositionEvent = procedure (Sender: TUProgressBar; var WaterMarkX, WaterMarkY: Integer;... |
{ ******************************************************************
Beta function
****************************************************************** }
unit ubeta;
interface
uses
uConstants, ugamma;
function Beta(X, Y: Float): Float;
implementation
function Beta(X, Y: Float): Float;
{ Comput... |
unit ScriptEngine;
interface
uses Classes, Windows, uPSComponent, SysUtils, SyncObjs;
type TScriptLog = procedure ( data : string ) of Object;
type TScriptSend = procedure ( data : string ) of Object;
type TScriptStarted = procedure () of Object;
type TScriptPaused = procedure () of Object;
type TScriptRes... |
unit uJsonUtils;
interface
uses
FireDAC.Comp.Client, System.JSON, System.SysUtils, Data.DB, System.Rtti,
System.Classes, Generics.Collections, Variants, QBAES;
type
TJSONUtils = Class
private
Class function CreateTableColumns(AJv: TJSONValue;
ATable: TFDMemTable): Boolean;
public
Class functi... |
unit Main;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, JvComponentBase, JvCreateProcess, StdCtrls, ComCtrls, ExtCtrls,
RestTp;
type
TfrmRestore = class(TForm)
mResult: TMemo;
cpRestore: TJvCreateProcess;
tTimer: TTimer;
proc... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.6.3.8-8, FILE=LEV1F50, ... |
unit uMap;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, JsProcessor, cef.JsExtented,
cefvcl, uDM, Vcl.ExtCtrls, LatLngHelper, uGlobal, uEntity, HeatmapItem;
type
TFrameMap = class(TdxDialogBaseFrame)
... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.6.3.7.1-10, FILE=LEV1F1... |
unit uGrammatik;
{$mode delphi}{$H+}
interface
uses
Classes, SysUtils,fgl, fpjson, jsonparser, jsonConf;
type TRegelProduktionsseite = class
produktion: String;
zufaelligkeit: Real;
constructor Create;
destructor Destroy; override;
end;
type TRegelProduktionsseitenListe = TFPGList<TRegelProduktio... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.7.3-2, FILE=IMPDEP10, C... |
unit ClassConnection;
interface
uses
WinSock, Classes, SysUtils, Windows,
Struct, Defines,
TMSGStruct,
ClassWorld,
LbCipher,
SRP6_LockBox;
const
WS_BUFFER_SIZE = 30*1024;
type
TBuffer = array[0..WS_BUFFER_SIZE-1] of byte;
// --------------------------------------------------------... |
unit UnitInterfaceDuringGame;
interface
uses
Vcl.Controls, Vcl.Dialogs;
procedure ResignGame();
procedure ExitToMainMenu();
procedure DrawGame();
implementation
uses UnitMainForm, UnitAfterGameFinished, UnitSetupBoard, UnitMyMessageBoxes;
procedure ResignGame();
var
WhoResigns: String;
begin
if White... |
unit VamLib.Utils;
interface
uses
SysUtils,
Classes;
const
// NOTE: End of line definition sourced from http://stackoverflow.com/a/254997/395461
EndOfLine = {$IFDEF LINUX} AnsiChar(#10) {$ENDIF}
{$IFDEF MSWINDOWS} AnsiString(#13#10) {$ENDIF};
type
// kChar wraps some ansi charactor const... |
unit ViewModel.Main;
interface
uses System.Generics.Collections,
Model.ProSu.Notification, Model.Declarations, ViewModel.Main.Interfaces;
//const
//type
//var
// procedure
function CreateMainViewModelClass: IMainViewModelInterface;
implementation
uses System.SysUtils, System.RegularExpressions, System.DateUt... |
unit uBitmapUtils;
interface
uses
Graphics, Windows;
type
TColor2Grayscale = (
c2gAverage,
c2gLightness,
c2gLuminosity
);
TBitmapAccess = (
baScanLine,
baPixels
);
TBitmapUtils = class
class procedure ToGray(aBitmap: Graphics.TBitmap;
cg: TColor2Grayscale = c2gLuminosity;
... |
{******************************************************************************
Implementation of the SQLFactory for creating SELECT statements
@author Jeff Chaney
@author Guardian Industries, Inc., Auburn Hills, MI
@author Last Changed By: $Author: jchaney $ $Date: 2014/08/15 22:25:45 $
@group Shared.SQLFac... |
unit ufrmHookMsg;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, tlhelp32, StdCtrls;
type
TfrmHookMsg = class(TForm)
EditName: TEdit;
Label1: TLabel;
Label2: TLabel;
EditDll: TEdit;
Inject: TButton;
procedure InjectClick... |
unit MainDataModuleUnit;
interface
uses System.SysUtils,
System.Classes,
Data.DBXFirebird,
Data.DB,
Data.SqlExpr,
Data.DBXJSON;
type
TWineCellarDataModule = class(TDataModule)
wines: TSQLConnection;
procedure DataModuleCreate(Sender: TObject);
public
function GetWineById(i... |
{
A very simple LFO class.
}
unit eeSimpleLFO;
interface
const
UniOutputScaler : double = 1 / 4294967295; //One over High(Cardinal). Use to scale the phase position to 0..1, ie Uni-polar LFO output.
BiOutputScaler : double = 2 / 4294967295; //Two over High(Cardinal). Use to scale the phase position ... |
program lab6a;
{insert your name here}
{This program is to read data from a text file and
write it to a binary file. When end of file is encountered,
the number of records is displayed on the screen.}
{The file to be read from is called LAB6A DATA. The binary file
is to be called LAB6A BINARY A. It is to be a f... |
{ X86 Intel CPU specific poke/peek functions. This has been modified from FPC RTL and no longer matches it.
However, it still supports X86-64 instructions.
Added Misc functions and defs. --Jazz
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY;without even the i... |
unit SimpleThreadedQueue;
interface
uses
SysUtils, Classes, Generics.Collections, SyncObjs;
type
TSimpleThreadedQueue<T> = class
strict private
FQueue: TQueue<T>;
FClosed: Boolean;
public
constructor Create;
destructor Destroy; override;
function Enqueue(const Item: T; Timeout: LongWord ... |
program aula19;
{
Autor: Samuel T. C. Santos
Data: 08/06/2015
Descricao: Function - funcoes.
Semelhante ao procedimento porem retorna um valor.
}
{
- Funcao para somar dois inteiros.
- Reutilizar
}
function Somar (x, y: integer) : integer;
begin
Somar := x + y;
end;
function Subtracao(x, y: integer): integ... |
unit DetailBPModel;
interface
uses
BPModel;
type
ConnectStatus = (UnConnect,OnLine,OnWorking);//未连接(包含未联网、未返回在线命令)、已连接、测量中
type
TDetailBPModel = class(TBPModel)
private
FcStatus: ConnectStatus;
FcDone: Boolean;
FcReqTime: TDateTime;
procedure SetcStatus(const Value: ConnectStatus);
procedu... |
unit uVio1344Thread;
interface
uses
Classes, SysUtils, Generics.Collections, Variants, ActiveX, uTypes, uLogger,
uGlobal, uCommon, uTmri;
type
TVio1344Thread = class(TThread)
private
FStoped: boolean;
FQueue: TQueue<TVioTemp>;
function GetCllx(hphm, hpzl: string): string;
procedure SaveVio(vi... |
unit DecoratorCream;
interface
uses
Decorator, Beverage;
type
TCreamDecorator = class(TDecorator)
public
FBevarage : TBeverage;
function getPrice: double; override;
function getDescription: string; override;
constructor Create(Bevarage : TBeverage);
destructor Destroy; override;
end;
im... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.8.3.5-23, FILE=CONF214, CLA... |
unit uBllThread;
interface
uses
System.Classes, SysUtils, ActiveX, HttpApp, JSON, IdHttp, IdCustomHTTPServer,
FireDAC.Stan.Param, System.Net.URLClient, System.Net.HttpClientComponent,
System.Net.HttpClient, Data.DB, uCommon, uEntity, uDM;
type
TBllThread = class(TThread)
private
FRequest: TRequest;
... |
unit UCL.Slider;
interface
uses
Classes,
Windows,
Messages,
Controls,
Graphics,
UCL.Classes,
UCL.Types,
UCL.Utils,
UCL.Colors;
type
TUSlider = class(TUCustomControl)
private var
LCurWidth: Integer;
LCurHeight: Integer;
LCurCorner: Integer;
LBarHeight: Intege... |
{
MIT License
Copyright (c) 2017-2018 Marcos Douglas B. Santos
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, cop... |
unit eeEnumHelper;
interface
uses
SysUtils;
type
// TEnumHelper is a utility class to ease converting VST parameter values to and from
// enumerated typed values. The VST protocol limits VST parameters to the 0..1 range.
//
// A 'helper' class needs to be created for each Enumerated type. Generics makes th... |
unit Test.FarScape.ControlAlignment;
interface
uses
TestMocks.FarScapeControls,
FarScape.CustomControl,
FarScape.ControlHelper,
WatchTower;
type
TControlAlignmentTest = class(TWatchTowerTest)
private
protected
RootControl : TMockRootControl;
fsc1 : TMockControl;
fsc2 : TMockControl;
fsc... |
unit LatLngHelper;
interface
uses
System.Math, System.SysUtils;
type
TLatLng = record
lat, lng: Double;
end;
TLatLngs = array of TLatLng;
TLatLngHelper = record Helper for TLatLng
private const
X_PI = 3.14159265358979324 * 3000.0 / 180.0;
function sgn(a: real): real;
function atan2(Y, X... |
unit main;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ExtCtrls;
type
{ TFormMain }
TFormMain = class(TForm)
TimerGlitch: TTimer;
procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
procedure FormCreate(Sender: TObjec... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.4.2.2-12, FILE=IMPDEF06... |
unit unitDriverLink;
interface
uses classes,windows,sysutils,forms,unitLog,unitDriverDeclare,unitConvert,dialogs;
type
TDriverLink=class(TComponent)
private
m_sDLLName : string; //已LINK的DRIVER名稱
m_DLLHandle : THandle; //LINK DRIVER的HANDLE
m_bDllLink : boole... |
unit Oz.Pb.Classes;
interface
uses
System.Classes, System.SysUtils, System.Rtti, Oz.Pb.StrBuffer;
const
TAG_TYPE_BITS = 3;
TAG_TYPE_MASK = (1 shl TAG_TYPE_BITS) - 1;
RecursionLimit = 64;
type
{$Region 'EProtobufError'}
EProtobufError = class(Exception)
const
NotImplemented = 0;
InvalidEndTag ... |
unit Cayan.Genius.Emulator.LibCommon;
interface
uses
System.SysUtils,
System.Classes;
type
TGeniusEmulatorStatus = (gesOffline = 0, gesOnline = 1, gesNeedUpdate = 2, gesError = 3);
IGeniusEmulator = interface
procedure Start;
procedure Stop;
function Status: TGeniusEmulatorStatus;
end;
implem... |
Program Rainbow;
type
RainbowColors = (red,orange,yellow,green,blue,indigo,violet);
Signals = (SigRed, SigYellow,SigGreen);
var
rc:RainbowColors;
begin
rc:=green;
Writeln('red, orange, yellow, green, blue, indigo, violet');
Writeln('pred color green = ', pred(rc));
Writeln('succ color green = ', succ(rc));
Wr... |
unit FontProporties;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Spin;
type
TPropForm = class(TForm)
GroupBox3: TGroupBox;
eCount: TSpinEdit;
bOK: TButton;
bCancel: TButton;
eCompressed: TCheckBox;
procedure FormKeyDown(Se... |
unit SimpleThreadedQueueSem;
interface
uses
SysUtils, Classes, Generics.Collections, SyncObjs;
type
TSimpleThreadedQueue<T> = class
strict private
FQueue: TQueue<T>;
FCriticalSection: TCriticalSection;
FSemaphore: TSemaphore;
public
constructor Create;
destructor Destroy; override;
pr... |
unit uHikHBase;
interface
uses
SysUtils, Generics.Collections, Soap.SOAPHTTPClient, uMoreLikeThisHBase,
uDataStatistics, uDataAnalysis, uAnalysisExtra;
type
THikHBase = Class
private
class function GetResultString(AResult: String): String;
public
class function vehiclePassSummary(startTime, endTime... |
unit unitSearchString;
interface
uses Windows, Classes, SysUtils, StrUtils, unitCharsetMap;
type
TStrArray = array of string;
TStringSearcher = class
protected
fSearchString : String;
fOrWords : TStrArray;
fNotWords : TStrArray;
fAndWords : TStrArray;
nOrWords : Integer;
... |
unit unitRF;
interface
uses classes,sysutils,windows,inifiles,forms,unitDriverLink,unitDriverDeclare,
unitLog,unitConvert,unitDriverThread;
type
TRF=class(TComponent)
private
m_DriverLink : TDriverLink;
m_bInitialOK : boolean;
m_bStart : boolean;
m_Log : TLog;
m_DriverThread : TDriverT... |
{==============================================================================|
| Project : Delphree - Synapse | 001.000.000 |
|==============================================================================|
| Content: SysLog client ... |
unit itfUploadVioToJcpt;
interface
uses
System.SysUtils, Classes, uCommon, IdCustomHTTPServer, StrUtils, uGlobal,
idHttp, Vcl.Imaging.GIFImg, Vcl.Imaging.jpeg, Vcl.ExtCtrls,
Vcl.Imaging.pngimage, Vcl.Graphics, uTmri, IdFtp, IdFTPCommon, IdGlobal,
ADODB, uTokenManager, System.NetEncoding, uRmInf;
type
TVio ... |
{
******************************************++***********************************
* *
* LGPL with linking exception (like Lazarus). See the file license.md, *
* included in this distribution, for details about the copyright. ... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.6.3.7.1-4, FILE=LEV1F13... |
unit CadCfop;
{*************************************************************************}
{* *}
{* Author : Alcindo Schleder *}
{* Copyright: © 2003 by Alcindo Schleder. All rights reserved. ... |
unit soGrainStretchSubOsc;
interface
uses
Lucidity.Interfaces,
SysUtils, VamLib.MoreTypes,
Lucidity.SampleMap, soGateEnvelope,
uConstants, eeSampleFloat,
eeDsp,
Math, SampleOscUtils;
type
TOscState = (osInactive, osPlayForward, osLoopForward, osLoopBackward, osPlayForwardFadeOut, osPlayBac... |
unit OMSReader;
interface
uses
Windows, Classes, Types, SysUtils, Controls, Contnrs,
PCSCRaw, PcscDef, Reader,
DateUtils;
type
// Данные владельца карты
TOwnerInfo = record
MedicalInsuranceNumber: String; // Номер полиса
RegistrationDate: TDate; // Дата создания карточки?
MedicalInsuranceDate... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.6.3.1-7, FILE=CONF104, CLAS... |
unit SpeedMiddlewareU;
interface
uses
MVCFramework;
type
TMVCSpeedMiddleware = class(TInterfacedObject, IMVCMiddleware)
public
procedure OnBeforeRouting(Context: TWebContext; var Handled: Boolean);
procedure OnAfterControllerAction(Context: TWebContext; const AActionNAme: string; const Handl... |
unit WebModuleMain;
interface
uses
System.SysUtils, System.IOUtils, System.Classes, FireDAC.Comp.Client, FireDAC.Comp.DataSet, FireDAC.DApt, System.DateUtils,
FireDAC.DApt.Intf, FireDAC.DatS, FireDAC.Phys, FireDAC.Phys.Intf, FireDAC.Phys.MySQL, FireDAC.Phys.MySQLDef,
FireDAC.Stan.Async, FireDAC.Stan.Def, FireDA... |
unit Unit2;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
type
TForm2 = class(TForm)
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form2: TForm2;
implementation
{$R *.dfm}
{$OPTIMIZATION ON}
{$RANGECHECKS OFF}
{... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.4.5-16, FILE=DEV097, CL... |
(*-----------------------------------------------------------------------------
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/MPL-1.1... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ PRETEST 6.4.3.3-11, FILE=ERR03... |
unit unt_SQLTreeAnalyzer;
interface
uses
unt_ISQLTreeNode, _DGL_SQLElement,
DGL_String;
type
EResultType = (ertNone, ertFields, ertTables);
TSQLTreeAnalyzer = class
private
F_TableNames: ISQLElementDGLSet;
F_FieldNames: ISQLElementDGLSet;
function L_GetTablesNode(I_QueryNode: ISQLTreeNode): I... |
unit soSineOsc;
interface
type
TWaveData = array of single;
TSineOsc = class
private
fSampleRate: single;
fFreq: single;
fWaveData: TWaveData;
procedure SetFreq(const Value: single);
protected
CurPhase : single;
StepSize : single;
procedure FillTableWithSineWave; /... |
unit ob_analyzer;
{**
* This file is part of the Obfuscator for PascalScript.
* Simba Obfuscator. 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 3 of the License, or
* (at your option) any late... |
const N = 20;
type arr = array[1..N+1] of integer;
var
a: arr;
i: integer;
key, res: integer;
function BarrierSearch(var dat: arr; key: integer): integer; //This is the Barrier Search Algorithm.
var
i: integer;
begin
dat[N+1] := key;
i := 1;
while (dat[i] <> key) do
if i <> N+1 then i+=1;
... |
unit VamLib.EnumHelper;
interface
type
TEnumHelper = class
public
class function EnumToStr<TEnum>(const Value : TEnum):string;
class function GetEnumTypeCount<TEnum>: integer; static;
end;
EnumHelper = TEnumHelper;
implementation
uses
RTTI,
TypInfo;
{ EnumHelper }
class function TEnumHelper.G... |
unit ClientFullRequest;
interface
uses ClientRequest, Web.HTTPApp, System.Generics.Collections, Attachment;
type
/// An immutable abstract data type that represents a client request. It contains
/// data that the client provides directly, the IP from which the client connects
/// to this service and files that... |
unit uLucidityVoiceAmp;
interface
uses
VamLib.Utils,
VamLib.MoreTypes, eeFunctions;
type
TVoiceAmpModPoints = record
ModInput_Gain : single;
ModInput_Pan : single;
end;
TLucidityVoiceAmp = class
private
fPan : single;
fPanScaled : single;
fGain: single;
... |
unit CadModelMulti;
{*************************************************************************}
{* *}
{* Author : Alcindo Schleder *}
{* Copyright: © 2007 by Alcindo Schleder. All rights reserved. ... |
(* Code generator for MiniPascal/MidiPascal compiler. *)
{GHO, 2.5.2011}
UNIT CodeGen;
INTERFACE
USES CodeDef;
(* Resets code generator. *)
PROCEDURE ResetCodeGenerator;
(* Emits op code. *)
(* IN opC: Op code to emit. *)
PROCEDURE Emit1(opC: OpCode);
(* Emits op code with single argument. *)
(* IN opC: Op code to... |
unit List;
{$I Compiler.inc}
interface
const MaxListSize=2147483647 div sizeof(pointer);
type PPointers=^TPointers;
TPointers=array[0..MaxListSize-1] of pointer;
TList=class
private
FList:PPointers;
FCount,FSize:longint;
function GetItem(index:longint):pointer;
... |
unit AudioEffect;
{
The goal of this "Audio Effect" code is to provide selfcontained implementations
of audio effects such as distortion, waveshaping, delay, filters etc. The
Audio Effects will be used in other applications.
- Each Audio Effect should be as self-contained as possible.
- Audio Effects shoul... |
unit eeHashes;
interface
// Function Murmur2()
// Source: http://stackoverflow.com/a/3690639/395461
// Notes:
// - Currently untested (19-March-2013)
function Murmur2(const S: AnsiString; const Seed: LongWord=$9747b28c): LongWord;
function Md5(const Value: AnsiString): string; overload;
function Md5(c... |
unit Test.Model.Produto;
interface
uses System.SysUtils, Model.Atributos, Model.Atributos.Tipos, Model.IModelBase, Model.IObserve, Model.ModelBase,
Types.Nullable;
type
[Tabela('PRODUTO')]
TProduto = class(TModelBase)
private
FCODIGO: string;
FBARRAS: string;
FDESCRICAO: string;
FUND: string... |
unit Dado;
{*************************************************************************}
{* *}
{* Author : Alcindo Schleder *}
{* Copyright: © 2003 by Alcindo Schleder. All rights reserved. *}... |
unit untFilemanager;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.ComCtrls,
System.ImageList, Vcl.ImgList, Vcl.StdCtrls, untUtils, untClientObject,
Vcl.Menus;
type
TForm2 = class(TForm... |
unit uRESTConnection;
interface
uses
System.Classes,
System.SysUtils,
IdSSLOpenSSL,
REST.OpenSSL, // dll header import
IdHTTP;
type
EHTTPError = class(Exception)
private
FErrorCode: Integer;
FErrorMessage: string;
public
constructor Create(const AMsg, AErrorMessage: string; const AErrorC... |
{
* -----------------------------------------------------------------------------
* Delphi DUnit test cases for the PJFractions unit.
*
* These test cases were created with Delphi 2010 and haven't been checked with
* any other compiler.
*
* Any copyright in this file is dedicated to the Public Domain.
* http://... |
unit u3DTypes;
interface
uses OpenGL;
{$A8}
type
// een vector
TVector = packed record
case Boolean of
TRUE: (X,Y,Z: Single;); // 3x single
FALSE: (XYZ: array[0..2] of Single;);
end;
TVector4f = packed record
X,Y,Z,W: Single; // 4x single
end;
TVect... |
{
Provides various utility functions useful in scripts.
}
Unit UrbanCMCUtility;
// Copies the VMAD record of from the source to the target element
Function CopyVMADRecord(e: IInterface; plugin: IInterface; sourceRecordID: Integer): Integer;
Var
sourceRecord: IInterface;
Begin
sourceRecord := RecordByFormID(plugi... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.4.5-9, FILE=DEV091, CLA... |
unit Venda.Actions.Totalizacao;
interface
uses
Venda.Interfaces;
type
TVendaActionsTotalizacao = class(TInterfacedObject, iVendaActions)
private
[weak]
FParent : iVenda;
public
constructor Create(Parent : iVenda);
destructor Destroy; override;
class function New(Parent : iVe... |
unit Stopwatches;
interface
uses
Types, SysUtils, Classes, TypInfo, Graphics, Contnrs, Controls,
Dialogs, ScUtils, GR32, FunLabyUtils, FunLabyCoreConsts,
FunLabyToolsConsts, Generics, GraphicsTools, MapTools,
GaugeDisplay;
const
msgStopwatchExpiration = $72;
type
TStopwatchPlugin = class;
... |
Unit ESoft.Launcher.UI.ClipboardBrowser;
Interface
Uses
Winapi.Windows,
Winapi.Messages,
System.SysUtils,
System.Variants,
System.Classes,
System.UITypes,
Vcl.Graphics,
Vcl.Controls,
Vcl.Forms,
Vcl.Dialogs,
Vcl.StdCtrls,
Vcl.ExtCtrls,
Vcl.DBCtrls,
Vcl.Grids,... |
program volume_cilindro;
var
volume, pi, raio, altura : real;
begin
pi := 3.14159;
write('Informe o raio: ');
readln(raio);
write('Informe o altura: ');
readln(altura);
volume := pi * (raio*raio) * altura;
writeln('O volume da lata de óleo é de ', volume:0:2);
end.
|
unit Data.Cloud.AmazonAPI.China.S3;
//AWS China API S3 接口
//参考 Data.Cloud.AmazonAPI
//有兴趣可以自行测试
//Bug:371889755@qq.com
interface
uses
System.Classes,
System.JSON,
System.SysUtils,
System.Generics.Collections,
Data.Cloud.CloudAPI, Data.Cloud.AmazonAPI.LifeCycle,
Xml.XMLIntf,
Data.Cloud.Am... |
unit UdtmPessoa;
interface
uses
System.SysUtils, System.Classes, Data.DB, Datasnap.DBClient,
Datasnap.DSConnect, data.DBXJSON, Data.FMTBcd, Datasnap.Provider, Data.SqlExpr;
type
TDtmPessoa = class(TDataModule)
CDS_SP_PESSOA_EMAIL_SE: TClientDataSet;
CDS_CADASTRO: TClientDataSet;
CDS_SP_... |
unit uMaquinaDinheiro;
interface
uses
System.Classes, System.SysUtils;
type
IMaquina = interface
function MontarTroco(Troco: Double): String;
end;
TMaquinaDinheiro = class(TInterfacedObject, IMaquina)
function MontarTroco(Troco: Double): String;
end;
implementation
{ TMaquinaDinheiro }
function... |
{***********************************************************************}
{ TAdvFancyLabel component }
{ for Delphi & C++Builder }
{ }
{ written by ... |
unit Data.Cloud.AmazonAPI.China;
//AWS China API 接口
//参考 Data.Cloud.AmazonAPI
//重新完成了 在查询字符串中使用 GET 的身份验证
//目前实现了 S3、SQS、SNS 服务
//测试了部分接口
//有兴趣可以自行测试
//Bug:371889755@qq.com
interface
uses System.Classes,
System.JSON,
System.SysUtils,
System.Generics.Collections,
Data.Cloud.CloudAPI, Data.Cl... |
unit Unit1;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
Label1: TLabel;
procedure Button1Click(Sender: TObject);
private
{ Priva... |
unit NetRegistry;
interface
uses
Classes, SysUtils, AppBean;
type
TNetRegistry = class
private
FSession: TServiceSession;
public
function ReadString(const Section, Key, Default: String): String;
function ReadInit(const Section, Key: String;
Default: Integer = 0): Integer;
function ReadS... |
unit ClientInserter;
interface
uses
MySQLAccessor, Client, ClientGmat, ClientToefl;
type TClientInserter = class
private
Accessor: TMySQLAccessor;
function GetNewClientId: Int64;
function IsValid(CGmat: TClientGmat): Boolean; overload;
function IsValid(CToefl: TClientToefl): Boolean; overload;
... |
unit frmExtSearchItem;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs,
// Auto Generate
frmUniPosition, Menus, cxLookAndFeelPainters, cxStyles, cxCustomData,
cxGraphics, cxFilter, cxData, cxDataStorage, cxEdit, DB, cxDBData, MemDS,
DBAccess, U... |
unit Oz.Pb.Options;
interface
uses
System.SysUtils, System.Classes;
type
{$Region 'TOptions: Compilation settings'}
TOptions = class
const
Version = '1.0 (for Delphi)';
ReleaseDate = '11 August 2020';
private
FSrcName: string;
FSrcDir: string;
FOutPath: string;
FListing: TStrings;
... |
unit eeFilters;
interface
type
// TMoogLP is based on code from MusicDSP
// http://www.musicdsp.org/showone.php?id=253
//
// Which in turn is based on:
// "Analyzing the Moog VCF with Considerations for Digital Implementation"
// by Tim Stilson and Julius Smith
// https://ccrma.stanford... |
{
Showy Task Runner v.0.2 alfa
@author: scribe
@date: 15.09.2015
Delphi 2010
Description: программа для управления заданиями на работе (по сути будильник)
Юнит для создания/редактирования задачи
}
unit uEvent;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
... |
unit UfrmInformacoes;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.Mask, Vcl.DBCtrls, Vcl.StdCtrls,
Vcl.Buttons, Vcl.Samples.Spin, Vcl.ComCtrls, Vcl.ExtCtrls, data.DBXJSON,
Vcl.Imaging.pngimage, Vcl.Gr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.