text stringlengths 14 6.51M |
|---|
unit IWDBExtCtrls;
{PUBDIST}
interface
uses
{$IFDEF Linux} QGraphics, {$ELSE}Graphics,{$ENDIF}
{$IFDEF Linux} IWJpeg, {$ELSE}Jpeg,{$ENDIF}
Classes, DB,
IWExtCtrls, IWHTMLTag;
type
TIWDBImage = class(TIWDynamicImage)
protected
FDataField: string;
FDataSource: TDataSource;
//
procedure Noti... |
unit DropSource3;
// -----------------------------------------------------------------------------
//
// *** NOT FOR RELEASE ***
//
// -----------------------------------------------------------------------------
// Project: Drag and Drop Component Suite
// Module: DropSource3
// Descriptio... |
{*******************************************************}
{ }
{ CodeGear Delphi Runtime Library }
{ Copyright(c) 2014-2018 Embarcadero Technologies, Inc. }
{ All rights reserved }
{ ... |
{ ****************************************************************************** }
{ Fast KDTree Int64 type support }
{ ****************************************************************************** }
{ * https://zpascal.net ... |
unit uCompilador;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Fgl
,SynLCHighlighter
,SynEditHighlighter;
type
TLCTypeOfProcess = (tpLCAttrName, tpLCComment, tpLCString, tpLCUnknown);
TLCTypesProcessing = set of TLCTypeOfProcess;
TLCDefParametro = record
Name:String;
IsEnd:Boolean;
e... |
unit uROR_TreeGrid;
interface
{$IFNDEF NOVTREE}
uses
SysUtils, Classes, Controls, Windows, uROR_GridView, OvcFiler, VirtualTrees,
uROR_Utilities, Graphics;
type
TCCRTreeGridColumn = class;
TCCRTreeGrid = class;
TCCRTreeGridSortEvent = procedure(aSender: TCCRTreeGrid;
var aColumn: TColumnIndex; var aDi... |
unit UAFDefs;
interface
{------------------------type defintions-----------------------}
Type
UAF_FILE_TYPE =
(UAF_TYPE_UNKNOWN, { Invalid or Unknow File }
UAF_TYPE_ADF, { Bliss Audio Data Files }
UAF_TYPE_WAV, { Microsoft RIFF wav ... |
{*******************************************************}
{ }
{ CodeGear Delphi Runtime Library }
{ Copyright(c) 2014-2019 Embarcadero Technologies, Inc. }
{ All rights reserved }
{ ... |
{***********************************<_INFO>************************************}
{ <Проект> Компоненты медиа-преобразования }
{ }
{ <Область> Мультимедиа ... |
unit uMaquina;
interface
uses
uIMaquina, Classes, uTroco, System.Generics.Collections, System.Math;
type
TMaquinaDinheiro = class(TInterfacedObject, IMaquina)
public
function MontarTroco(aTroco: Double): TList;
end;
implementation
function TMaquinaDinheiro.MontarTroco(aTroco: Double): T... |
unit Functions;
interface
uses
Values, Variables, Codes, Strings;
const
STR_RETURN = 'ret';
type
TFunctions = class;
TFunction = class
private
FFunctions: TFunctions;
FID: TID;
FType_: TType_;
FArguments: TArguments;
FCode: TCode;
function GetIndex(): Integer;
public
const... |
unit JSON;
interface
uses SysUtils;
function getJsonStr(key, str: string):string;
function getJsonInt(key, str: string):integer;
function getJsonBool(key, str: string):boolean;
function getJsonArray(key, str: string):string;
implementation
function getJsonStr(key, str: string):string;
var
keypos: ... |
//
// This unit is part of the GLScene Project, http://glscene.org
//
{: GLFilePLY<p>
PLY (Stanford Triangle Format) vector file format implementation.<p>
<b>History :</b><font size=-1><ul>
<li>16/10/08 - UweR - Compatibility fix for Delphi 2009
<li>31/03/07 - DaStr - Added $I GLScene.inc
... |
{********************************************}
{ TeeChart Pro Charting Library }
{ Copyright (c) 1995-2004 by David Berneda }
{ All Rights Reserved }
{********************************************}
unit TeeSmoothFuncEdit;
{$I TeeDefs.inc}
interface
uses
{$IFNDEF LINUX}
Windows... |
program sort;
const
count = 500;
type
pair = record first : integer; second : integer end;
pair_array = array [1 .. count] of pair;
var
tab : ^pair_array;
tab_sorted : ^pair_array;
a : integer;
function mod(a : integer; b : integer) : integer;
var
c : integer;
begin
c := a div b;
mod := a - (b * c)
end;
procedu... |
unit DelphiGenerics;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils;
type
{ TQueue }
generic TQueue<T> = class
Items: array of T;
{: Положить в очередь}
procedure Enqueue(Value: T);
{: Взять из очереди}
function Dequeue: T;
{: Количество элементов}
function Count: integer;
... |
unit YahtzeeServer;
{$IFDEF FPC}
{$MODE DELPHI}
{$ENDIF}
interface
uses
SyncObjs, Generics.Collections, Classes, IdGlobal, IdTCPConnection,
YahtzeeClasses;
type
TConnectMessage = class(TObject)
public
Connection: TIdTCPConnection;
Msg: TMessage;
end;
{$IFNDEF FPC}
TConnectMessages = TThreadedQueue<TConn... |
unit SettingsTestFieldsUnit;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, fpcunit, testutils, testregistry, LKSL_Settings_Fields;
type
{ TSettingsTestFields }
TSettingsTestFields= class(TTestCase)
private
FFields: TLKSettingsFields;
protected
procedure SetUp; override;
procedure Tea... |
{-------------------------------------------------------------------------------
Сохранение видео/аудио потока на диск
-------------------------------------------------------------------------------}
unit MediaStream.Writer.Tsm;
{$ALIGN ON}
{$MINENUMSIZE 4}
{$WARN SYMBOL_PLATFORM OFF}
interface
uses Windows, ... |
unit BaseEventsQuery;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BaseQuery,
FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param,
FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf, FireDAC.DApt.I... |
(*****************************************************************************
* Pascal Solution to "Rot13 Encryption" from the *
* *
* Seventh Annual UCF ACM UPE High School Programming Tournament *
... |
Unit CustomDirOutline;
// This is a small enhancement of the sample TDirectoryOutline
// Changes are:
// 1) Leaf/open/close bitmaps are used as inherited from TOutline
// instead of being specially loaded. THerefore they can be changed
// 2) Fix to Click method to make root directory selectable
// 3) Added Reload m... |
{*******************************************************}
{ }
{ Borland Delphi Visual Component Library }
{ }
{ Copyright (c) 1997,99 Inprise Corporation }
{ ... |
unit Fonetiza.Consts;
interface
const
PREPOSICOES: TArray<string> = ['DEL', 'DA', 'DE', 'DI', 'DO', 'DU', 'DAS', 'DOS', 'DEU', 'DER', 'E', 'LA', 'LE', 'LES', 'LOS',
'VAN', 'VON', 'EL'];
TITULOS: TArray<string> = ['BEL', 'CEL', 'ENG', 'MAJ', 'PROF', 'MIN', 'TEN', 'CAP', 'DR', 'DRA', 'GAL', 'GEN', 'MED', 'PE',... |
unit SearchStat;
interface
uses SysUtils, Variants, Classes, MSHTML, ActiveX, WinInet, Forms, Controls,
Windows, Messages, Graphics, Dialogs, StdCtrls, InetThread;
const
Yandex = 1;
Google = 2;
YahooLink = 3;
Yahoo = 4;
Bing = 5;
Rambler = 6;
Alexa = 7;
YaLinksPattern = '*Inlinks (*... |
{*******************************************************}
{ }
{ Delphi DataSnap Framework }
{ }
{ Copyright(c) 1995-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
{*******************************************************}
{ }
{ Delphi Visual Component Library }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
{*******************************************************}
{ }
{ Delphi Runtime Library }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
unit RemoveReturnsAfterBegin;
{(*}
(*------------------------------------------------------------------------------
Delphi Code formatter source code
The Original Code is RemoveReturnsAfterBegin, released May 2003.
The Initial Developer of the Original Code is Anthony Steele.
Portions created by Anthony St... |
unit uDataGridView;
{$WARN SYMBOL_PLATFORM OFF}
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,
{$ELSE}
Windows, Messages, SysUtils, Variants, Classes, Graph... |
(*****************************************************************************
* Pascal Solution to "Bart Stays After School" from the *
* *
* Seventh Annual UCF ACM UPE High School Programming Tournament *
... |
unit MediaStorage.Transport.FileServer;
interface
uses SysUtils,Classes, Windows, dInterfacesFileAgent,dInterfacesObjectFileStorage,MediaStorage.Transport;
type
//Транспорт через собственный FileServer
TRecordObjectTransport_FileServer =class (TRecordObjectTransportBase,IRecordObjectTransport)
private
FCo... |
//Code Owner: https://stackoverflow.com/a/43591761
unit AESencdec;
interface
uses DCPcrypt2, DCPsha256, DCPblockciphers, DCPrijndael, System.SysUtils;
type
TChainingMode = (cmCBC, cmCFB8bit, cmCFBblock, cmOFB, cmCTR, cmECB);
TPaddingMode = (pmZeroPadding, pmANSIX923, pmISO10126, pmISO7816, pmPKCS7,
... |
{ *************************************************************************** }
{ }
{ Delphi and Kylix Cross-Platform Visual Component Library }
{ }
... |
program queue2;
type
TQueue = record
data: array of integer;
head: integer;
tail: integer;
size: integer;
len: integer;
end;
procedure queue_init(var queue: TQueue; len: integer);
begin
SetLength(queue.data, len);
queue.len := len;
queue.head := 0;
queu... |
unit uMainForm;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Objects,
FMX.Ani, FMX.Edit, FMX.Filter.Effects, FMX.Layouts, FMX.Effects, FMX.StdCtrls,
FMX.Controls.Presentation, FMX.ListView.Type... |
unit fMyLib;
interface
uses
Variants, SysUtils, DBTables, Classes, Forms;
const
LuniScurte: array[1..12] of string[3] =
('Ian', 'Feb', 'Mar', 'Apr', 'Mai', 'Iun', 'Iul', 'Aug', 'Sep', 'Oct', 'Noi', 'Dec');
Luni: array[1..12] of string =
('Ianuarie', 'Februarie', 'Martie', 'Aprilie', 'Mai', 'Iunie', 'Iu... |
{ ---------------------------------------------------------------------------- }
{ HeightMapGenerator MB3D }
{ Copyright (C) 2017 Andreas Maschke }
{ ---------------------------------------------------------------------------... |
{ Pascal function that tests if a number is a palindrome }
{ A palindrome is a number that is equal to its reverse (if you spell it backwards it remains the same number).
The function that that does the testing is is_palindrome(). This function uses the auxiliary function reverse_digits(). }
function reverse_dig... |
{*******************************************************}
{ }
{ Delphi FireMonkey Platform }
{ }
{ Copyright(c) 2011 Embarcadero Technologies, Inc. }
{ ... |
unit pCons;
interface
const
{ General constants used by most OAuth2 architectural styles for various purposes. }
ExCode = 'code';
ExClientID = 'client_id';
ExClientSecret = 'client_secret';
ExRedirectURI = 'redirect_uri';
ExGrantType = 'gr... |
unit GroupBoxImpl1;
interface
uses
Windows, ActiveX, Classes, Controls, Graphics, Menus, Forms, StdCtrls,
ComServ, StdVCL, AXCtrls, DelCtrls_TLB;
type
TGroupBoxX = class(TActiveXControl, IGroupBoxX)
private
{ Private declarations }
FDelphiControl: TGroupBox;
FEvents: IGroupBoxXEvents;
procedu... |
unit Xml.Internal.UriUtils;
// UriUtils 1.0.3
// Delphi 4 to 2009 and Kylix 3 Implementation
// September 2008
//
//
// LICENSE
//
// 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 ... |
namespace RemObjects.SDK.CodeGen4;
interface
type
ParamFlags = public enum (
&In,
&Out,
&InOut,
&Result
);
RodlEntity = public abstract class
private
fOriginalName: String;
method getOriginalName: String;
fCustomAttributes: Dictionary<String,String> := new Diction... |
//
// Copyright (c) 2009-2010 Mikko Mononen memon@inside.org
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
// Permission is granted to anyone to use this software for any purpose... |
{$A+,B-,D+,E-,F-,G+,I+,L+,N+,O-,P-,Q-,R-,S-,T-,V+,X+,Y+}
{$M 1024,0,0}
{
by Behdad Esfahbod
Algorithmic Problems Book
April '2000
Problem 112 O(N2) Greedy Method
}
program
RoadsDirection;
var
N : Integer;
I, J : Integer;
procedure ReadInput;
begin
Readln(N);
end;
procedure WriteEdge (I, J : Integer);
begin... |
unit World;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Voxel, Economy, GL, Entities;
type
spatial = longword;
{ tWorld }
tWorld = class
RootVoxel: tVoxel;
VoxelCount: longword;
Hubs: tEconomicHub;
WorldSeed: longword;
Wireframe: boolean;
j: longword;
CameraPosition,... |
unit UFrmGoodsInfoEdit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, uFrmModal, cxGraphics, cxLookAndFeels, cxLookAndFeelPainters, Menus,
ActnList, StdCtrls, cxButtons, ExtCtrls, cxControls, cxContainer, cxEdit,
dxSkinsCore, dxSkinsDefaultPainters,... |
unit TAudioInputDemo;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, AudioIO, ExtCtrls, Buttons, ComCtrls, MMSYSTEM, FFTReal, Math;
type
TForm1 = class(TForm)
StartButton: TButton;
Timer1: TTimer;
StopButton: TButton;
RunStatusLabel: TLabel;
... |
unit AProspects;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, formularios,
BotaoCadastro, StdCtrls, Buttons, Grids, DBGrids, Tabela, DBKeyViolation,
Componentes1, ExtCtrls, PainelGradiente, Db, DBTables, ComCtrls, Graficos,
Localizacao, Mask, numericos, Menu... |
program Julia;
{from: THE BEAUTY OF FRACTALS by Peitgen & Richter }
{ pp 189,190. Experiment 1: Basins of Attraction and Julia Sets }
{ Turbo Pascal 4.0 implementation by Art Steinmetz }
(* {$DEFINE MATH} *)
{$IFDEF MATH}
{$N+}
{$ELSE}
{$N-}
{$ENDIF}
{$S-} {no stack checking}
{$R-} {no range checking}
uses ... |
Unit myIntegerList;
Interface
Type oList = record
info:integer;
next:^oList;
end;
oPoint = ^oList;
nonNegativeNumber = 0..Integer.MaxValue;//множество неотрицательных целых чисел
Var pHead,pTail:oPoint;//глобальные переменные - указатели начала и конца
i:integer;
x:integer;
Procedur... |
{*******************************************************}
{ }
{ Delphi Visual Component Library }
{ Copyright(c) 2012-2018 Embarcadero Technologies, Inc. }
{ All rights reserved }
{ ... |
unit TestDelphiNetOperatorOverload;
{ This unit compiles but is not semantically meaningfull
it is test cases for the code formatting utility
test operator overloads in Delphi.NET }
interface
type
TMyClass = class
private
FData: Integer;
public
class operator Add(A,B: TMyClass): TMyCl... |
unit ncaFrmPeriodo;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, cxGraphics, cxControls, cxLookAndFeels,
cxLookAndFeelPainters, cxContainer, cxEdit, Vcl.ComCtrls, dxCore, cxDateUtils,
Vcl.Menus, Vcl.StdCtr... |
{
DStun
Description:
A delphi librry for stun(rfc3489).
License:
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/
Conta... |
unit MainUnit;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls;
type
TNotifyStringEvent = procedure (Sender: TObject; const aString: string) of object;
TfrmMain = class(TForm)
edtFilename:... |
{-----------------------------------------------------------------------------
TrendFollowert Name:
Author: Roman
Purpose:
АЛГОРИТМ:
Все действия производим по закрытию указанного дня. Внутри дня ничего не делаем.
Открытие - закрытие позиции только ордерами.
Сигнальная линия - экспоненциальная средняя,... |
{
ID: a2peter1
PROG: frac1
LANG: PASCAL
}
{$B-,I-,Q-,R-,S-}
const
problem = 'frac1';
var
N : longint;
procedure print(a,b,c,d: longint);
begin
if (a + c > N) or (b + d > N) then exit;
print(a,b,a + c,b + d);
writeln(a + c,'/',b + d);
print(a + c,b + d,c,d);
end;... |
PROGRAM Fibonacci;
var calls: longint;
FUNCTION Fib(n: integer): longint;
BEGIN
Inc(calls);
if n <= 2 then Fib := 1 else Fib := Fib(n-1) + Fib(n-2);
END; (* Fib *)
FUNCTION FibRec(n: integer; fn2, fn1: longint): longint;
BEGIN
if n <= 2 then
FibRec := fn1
else
... |
unit AddNewTable;
interface
uses
SysUtils, Types, Classes, Variants, QGraphics, QControls, QForms, QDialogs,
QStdCtrls, DB, DBClient, QButtons, QComCtrls, QGrids, QDBGrids;
type
TForm2 = class(TForm)
ComboDataType: TComboBox;
ClientDataSet1: TClientDataSet;
EditFieldName: TEdit;
EditFieldSize: ... |
unit FizzBuzz.GameLogic;
interface
type
TFizzBuzzGame = class
public const
FizzText = 'Fizz';
BuzzText = 'Buzz';
private const
defFizzValue = 3;
defBuzzValue = 5;
private
fFizz:Integer;
fBuzz:Integer;
protected
function IsMultiple(const x, y:Integer):Boolean;
public
constr... |
unit Test_FIToolkit.Commons.Utils;
{
Delphi DUnit Test Case
----------------------
This unit contains a skeleton test case class generated by the Test Case Wizard.
Modify the generated code to correctly setup and call the methods from the unit
being tested.
}
interface
uses
System.SysUtils,
TestFram... |
unit loginFrame;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, StdCtrls, LCLintf,
LCLtype, Base64, Dialogs,
constants, httpsend, ssl_openssl, jsonparser, fpjson;
type
Tlogin = class(TFrame)
loginButton: TButton;
userEdit: TEdit;
passwordEdit... |
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
Buttons;
type
{ TfrmfindName }
TfrmfindName = class(TForm)
bmbReset: TBitBtn;
btnSave: TButton;
btnLoad: TButton;
btnDelete: TButton;
gbpNames: TGroupBox;
lblNa... |
unit BodiesQuery;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BaseQuery, FireDAC.Stan.Intf,
FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS,
FireDAC.Phys.Intf, FireDAC.DApt.Int... |
unit ASDOpenGL;
{<|Модуль библиотеки ASDEngine|>}
{<|Дата создания 31.05.07|>}
{<|Автор Adler3D|>}
{<|e-mail : Adler3D@Mail.ru|>}
{<|Дата последнего изменения 31.05.07|>}
interface
uses
Windows, OpenGL,
ASDUtils, ASDInterface, ASDType, ASDLog, ASDClasses;
type
PFontData = ^TFontData;
TFontData = record
Fo... |
unit FindFile;
// FindFile version 1.0.1
//
// Copyright (C) September 1997 Walter Dorawa
//
// Everyone is free to use this code as they wish, but
// if you use it commercially then I wouldn't mind a
// little something.
//
// Please submit suggestions, bugs, or any improvements to
// walterd@gte.net
//... |
unit SourceLocation;
interface
uses
Classes,
SysUtils,
StrUtils;
type
TLocation = record
Offset: Integer;
EndOffset: Integer;
Line: Integer;
Column: Integer;
end;
PLocation = ^TLocation;
function DescribeLocation(const Location: TLocation): String;
function BeyondLocation(const Location:... |
unit Web.HTTPS;
interface
uses
SysUtils, Classes, IdSSLOpenSSL,
Web.HTTP;
type
THTTPSWeb = class(THTTPWeb)
private
SSLIoHandler: TIdSSLIOHandlerSocketOpenSSL;
procedure SetSSLIoHandler;
public
constructor Create;
destructor Destroy; override;
function GetToStringList(const PathToGet: St... |
unit Finance;
interface
uses
Finance.interfaces;
type
TFinance = class(TInterfacedObject, iFinance)
private
FCurrencies : iFinanceCurrencies;
FStocks : iFinanceStocks;
FTaxes : iFinanceTaxes;
FKey : string;
public
constructor Create;
destructor Destro... |
unit Users;
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, RzDBEdit, Vcl.D... |
object fmOptions: TfmOptions
Left = 192
Top = 107
BorderStyle = bsDialog
Caption = 'Options'
ClientHeight = 147
ClientWidth = 273
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder... |
////////////////////////////////////////////////////////////////////////////////
//
//
// FileName : SUIResDef.pas
// Creator : Shen Min
// Date : 2002-5-15
// Comment :
//
// Copyright (c) 2002-2003 Sunisoft
// http://www.sunisoft.com
// Email: support@sunisoft.com
//
///////////////////... |
program letterFrequency(input, output, stdErr);
var
chart: array[char] of integer;
c: char;
begin
for c := low(chart) to high(chart) do
begin
chart[c] := 0;
end;
// parameter-less EOF() checks for EOF(input)
while not EOF() do
begin
read(c);
inc(chart[c]);
end;
// now, chart[someLetter] gives you th... |
unit CloseGateState;
interface
uses
System.SysUtils, GateInterface, GateClass;
type
TCloseGate = class(TInterfacedObject, IGate)
private
Gate: TGate;
Paid: Boolean;
public
constructor Create(Gate: TGate);
procedure Enter;
procedure Pay;
procedure PayOk;
end;
implementation
uses
... |
unit ASDVector;
{<|Модуль библиотеки ASDEngine|>}
{<|Дата создания 08.07.07|>}
{<|Автор Adler3D|>}
{<|e-mail : Adler3D@Mail.ru|>}
{<|Дата последнего изменения 08.07.07|>}
interface
{$D-}
Uses Windows;
type
PVector = ^TVector;
TVector = record
X, Y: Real;
end;
PVectorAngle = ^TVectorAngle;
TVectorAngle =... |
{*******************************************************}
{ }
{ Delphi DBX Framework }
{ }
{ Copyright(c) 1995-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
unit Router4D.Interfaces;
{$I Router4D.inc}
interface
uses
System.Classes,
System.Generics.Collections,
System.UITypes,
SysUtils,
{$IFDEF HAS_FMX}
FMX.Types,
{$ELSE}
Vcl.ExtCtrls,
Vcl.Forms,
{$ENDIF}
Router4D.Props;
type
iRouter4D = interface
['{56BF88E9-25AB-49C7-... |
unit Module.DataSet.ConfigMemento.Filter;
interface
uses
FireDac.Comp.Client, Module.DataSet.ConfigMemento;
type
TConfigFilter = class(TInterfacedObject, IInterface)
private
FDataSet: TFDMemTable;
FFilter: string;
FFiltered: boolean;
public
constructor Create(const ADataSet: TFDMemTable);
... |
{*------------------------------------------------------------------------------
*ModuleInit_u
* The actual Apache API routines are assigned in the ApacheInit.pas unit.
* When working with the Apache API you should try to put the assignments
* in a seperate unit so that your WebModule is Portable.
*
*About thi... |
unit Mock.CommandSets;
interface
uses
Windows, SysUtils, Dialogs,
Mock.OSFile.IoControl, CommandSet, BufferInterpreter, Device.SMART.List;
type
TMockCommandSet = class abstract(TCommandSet)
public
function IsExternal: Boolean; override;
end;
TIntelNVMeCommandSet = class sealed(TMockCommandSet)
publ... |
{*******************************************************}
{ }
{ Delphi FireDAC Framework }
{ }
{ Copyright(c) 2004-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
unit u_xml_globals;
{$mode objfpc}{$H+}
interface
uses Classes, SysUtils, DOM,u_xml;
type
{ TXMLglobalType }
TXMLglobalType = class(TDOMElement)
private
function Get_Comment: AnsiString;
function Get_CreateTS: TDateTime;
function Get_Expires: Boolean;
funct... |
unit u_xpl_message_GUI;
{==============================================================================
UnitName = u_xpl_message_GUI
UnitVersion = 0.91
UnitDesc = xPL Message GUI management object and function
UnitCopyright = GPL by Clinique / xPL Project
=====================================... |
unit uMainForm;
interface
uses
System.SysUtils, System.Classes,
Vcl.Graphics, Vcl.Controls,
Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, ExtCtrls,
//GLScene
GLScene, GLObjects, GLCadencer, GLWin32Viewer, GLBaseClasses,
GLCrossPlatform, GLTexture, GLBitmapFont, GLWindowsFont,
GLBehaviours, GLCons... |
unit ReportCashBook;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, Grids, DBGridEh, ComCtrls, ToolWin;
type
TReportCashBookForm = class(TForm)
Panel1: TPanel;
ToolBar1: TToolBar;
ToolButton1: TToolButton;
Inse... |
{$mode objfpc}
program serialportnames;
uses Objects, Classes, SysUtils, BaseUnix;
function GetSerialPortNames: string;
type
TSerialStruct = packed record
typ: Integer;
line: Integer;
port: Cardinal;
irq: Integer;
flags: Integer;
xmit_fifo_size: Integer;
custom_divisor: Integer;
baud_base: Integer;
... |
{*******************************************************}
{ }
{ Delphi FireDAC Framework }
{ FireDAC monitor TCP/IP based implementation }
{ }
{ Copyright(c) 2004-2018 Embar... |
{ *********************************************************************** }
{ }
{ SdCadMath unit }
{ }
{ Copyright (c) ... |
PROGRAM RosettaIsaac;
USES
StrUtils;
TYPE
iMode = (iEncrypt, iDecrypt);
// TASK globals
VAR
msg : String = 'a Top Secret secret';
key : String = 'this is my secret key';
xctx: String = ''; // XOR ciphertext
mctx: String = ''; // MOD ciphertext
xptx: String = ''; // XOR decryption (plaintext)
mptx: Str... |
unit IdIMAP4Server;
interface
uses
Classes,
IdGlobal,
IdTCPServer;
const
IMAPCommands: array[1..25] of string =
({ Client Commands - Any State}
'CAPABILITY',
'NOOP',
'LOGOUT',
{ Client Commands - Non Authenticated State}
'AUTHENTICATE',
'LOGIN',
{ Client Commands - Authenticated S... |
unit range_expr_5;
interface
implementation
var
G1, G2: Boolean;
function InRange(Value: Int32; LoBound, HiBound: Int32): Boolean;
begin
Result := Value in LoBound..HiBound;
end;
procedure Test;
begin
G1 := InRange(6, 0, 5);
G1 := InRange(2, 1, 6);
end;
initialization
Test();
finalization
Assert... |
Unit BaseObject_f_MeasuringSystem;
Interface
Uses
BaseObject_c;
//
Function BaseObjectMeasuringSystemAngleToInternalUnit(Angle: Double): TBaseObjectDataContainerS;
Function BaseObjectMeasuringSystemMilliMeterToInternalUnit(MilliMeter: Double): TBaseObjectDataContainerS;
Function BaseObjectMeasuringSystemO... |
{-------------------------------------------------------------------------------
// EasyComponents For Delphi 7
// 一轩软研第三方开发包
// @Copyright 2010 hehf
// ----------------------------... |
PROGRAM UnitTest;
USES StringSetUnit;
FUNCTION IntToString(x: INTEGER): STRING;
VAR s: STRING;
BEGIN (* IntToString *)
Str(x, s);
IntToString := s;
END; (* IntToString *)
VAR s1, t: StringSet;
s2: StringSetObj;
i: INTEGER;
BEGIN (* UnitTest *)
New(s1, Init(5));
s2.Init(5);... |
unit IdLogBase;
interface
uses
Classes,
IdIntercept,
IdSocketHandle;
const
ID_LOGBASE_Active = False;
ID_LOGBASE_LogTime = True;
type
TIdLogBase = class(TIdConnectionIntercept)
protected
FActive: Boolean;
FLogTime: Boolean;
procedure Log(AText: string); virtual; abstract;
procedure Se... |
unit TrazMedLib_TLB;
// ************************************************************************ //
// WARNING
// -------
// The types declared in this file were generated from data read from a
// Type Library. If this type library is explicitly or indirectly (via
// another type library referring to this type library... |
unit NtUtils.Tokens.Impersonate;
interface
{ NOTE: All functions here support pseudo-handles on input on all OS versions }
uses
NtUtils.Exceptions, NtUtils.Objects;
// Save current impersonation token before operations that can alter it
function NtxBackupImpersonation(hThread: THandle): IHandle;
procedure NtxRest... |
{*******************************************************}
{ }
{ Borland Delphi Visual Component Library }
{ SOAP client-side invoker }
{ }
{ Copyright (c) 2000 Inp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.