text stringlengths 14 6.51M |
|---|
unit fMyPeriod;
interface
uses
SysUtils, DateUtils;
const
psStart = 0;
psEnd = 1;
type
TMyPeriod = class(TObject)
strict private
fsDay: byte;
fsMonth: byte;
fsYear: smallInt;
feDay: byte;
feMonth: byte;
feYear: smallInt;
fcDay: byte;
fcMonth: byte;
fcYear: smallInt;... |
unit LoanData;
interface
uses
System.SysUtils, System.Classes, Data.DB, Data.Win.ADODB, System.Rtti, StrUtils,
System.Variants;
type
TdmLoan = class(TDataModule)
dstLoan: TADODataSet;
dscLoan: TDataSource;
dstLoanClass: TADODataSet;
dscLoanClass: TDataSource;
dstClients: TADODataSet;
ds... |
unit UnProdutoRegistroView;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Buttons, ExtCtrls, DB, ImgList, Menus, StdCtrls, Mask, DBCtrls,
JvExControls, JvButton, JvTransparentButton, DBClient, Grids, DBGrids,
JvExDBGrids, JvDBGrid, JvDBUltimGrid,
{ helson... |
unit untConfiguracao;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Buttons, Vcl.ExtCtrls,
Vcl.Mask, Vcl.DBCtrls;
type
TfrmConfiguracao = class(TForm)
pnlRodape: TPanel;
btnGravar... |
unit ServerMethodsUnit1;
interface
uses System.SysUtils, System.Classes, System.Json,
Datasnap.DSServer, Datasnap.DSAuth, FireDAC.Stan.Intf, FireDAC.Stan.Option,
FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf,
FireDAC.DApt.Intf, FireDAC.Stan.StorageBin, Data.DB, FireDAC.Comp.DataSet,
... |
unit User;
interface
uses
StrUtils, SysUtils, System.Rtti, Classes, Right;
type
TSuperUser = class
strict private
FName: string;
FPasskey: string;
public
property Name: string read FName write FName;
property Passkey: string read FPasskey write FPasskey;
end;
TUser = class
private
... |
program t_hmack1;
{-HMAC-Keccak known answer tests, WE Nov.2012}
{$i std.inc}
{$ifdef APPCONS}
{$apptype console}
{$endif}
uses
{$ifdef WINCRT} WinCRT, {$endif}
BTypes, mem_util, keccak_n, hmackecc;
var
ctx: THMACKec_Context;
mac: TKeccakMaxDigest;
{Vectors from http://www.di-mgt... |
program EARTHSHAKERMODE;
const
arrayLength = 16;
var
inputArray : array [1..arrayLength] of char;
i: integer;
firstIndex, lastIndex : integer;
tempValue: char;
begin
randomize;
writeln ('Исходный массив: ');
for i := 1 to arrayLength do
begin
inputArray[i] := chr(random(100));
... |
unit UnitFormWorkLogRecords;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.Grids, Vcl.ExtCtrls;
type
TFormWorkLogRecords = class(TForm)
StringGrid1: TStringGrid;
Panel1: TPanel;... |
// /////////////////////////////////////////////////////////////////////////////
//
// NetCom7 Package
//
// This unit implements a TncLine, which is all the WinSock API commands for a
// socket, organised in an object which contains the handle of the socket,
// and also makes sure it checks every API command for... |
unit UHref;
interface
uses
SysUtils, Windows, Messages, Classes, Graphics, Controls, Forms, Dialogs;
type
THrefParam = class(TObject)
public
name: string;
value: string;
end;
THref = class(TObject)
private
fList: TList;
function getCount: Integer;
functi... |
unit ini_util;
interface
uses
SysUtils, Classes, Windows, IniFiles, Menus, StdCtrls, forms;
type
TIniList = class; //前方宣言
TIniVarType = class
protected
ini: TIniList;
public
Section,
Ident: string;
constructor Create(ini: TIniList; sec, ide: string);
procedure Read; virt... |
unit ADAPT.UnitTests.Generics.Common;
interface
{$I ADAPT.inc}
uses
{$IFDEF ADAPT_USE_EXPLICIT_UNIT_NAMES}
System.Classes, System.SysUtils,
{$ELSE}
Classes, SysUtils,
{$ENDIF ADAPT_USE_EXPLICIT_UNIT_NAMES}
DUnitX.TestFramework;
type
TDummyObject = class(TObject)
private
FFoo: String;
publi... |
(**
This module contains a class ewhich represents a form for editing the font styles and
colours used in the messages that are output by the expert.
@Author David Hoyle
@Version 1.0
@Date 05 Jan 2018
**)
Unit ITHelper.FontDialogue;
Interface
Uses
Windows,
Messages,
SysUtils,
Variants,
Clas... |
unit SourceToken;
interface
uses
SourceLocation;
type
TTokenKind = (tkIdentifier, tkSymbol, tkNumber, tkString, tkCharacter, tkComment, tkError, tkEof);
TToken = record
Position: TLocation;
Data: String;
Kind: TTokenKind;
end;
PToken = ^TToken;
function DescribeToken(const Token: TToken): S... |
unit uMonster;
interface
uses
SysUtils, Dialogs, uCommon;
type
TMonster = class
private
fId: integer;
//monData: string;
fName: string;
fAwareness:integer;
fMovBorder: integer;
fDimention: integer;
fHorrorRate: integer;
fHorrorDmg: integer;
fToughness: int... |
{$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
September '1999
Problem 26 O(2^N) Recursive Method
}
program
CubicGraph;
const
MaxN = 20;
var
N : Integer;
S : string [MaxN];
I, J : Integer;
F : Text;
procedure Cube (K : Integer; Rev :... |
{$R-}
{$Q-}
unit ncEncCast128;
// To disable as much of RTTI as possible (Delphi 2009/2010),
// Note: There is a bug if $RTTI is used before the "unit <unitname>;" section of a unit, hence the position
{$IF CompilerVersion >= 21.0}
{$WEAKLINKRTTI ON}
{$RTTI EXPLICIT METHODS([]) PROPERTIES([]) FIELDS([])}
{$EN... |
{$i deltics.unicode.inc}
unit Deltics.Unicode.Escape.Index;
interface
uses
Deltics.Unicode.Types;
type
UnicodeIndex = class (UnicodeEscapeBase)
class function EscapedLength(const aChar: WideChar): Integer; override;
class function EscapedLength(const aCodepoint: Codepoint): Integer; ove... |
{-----------------------------------------------------------------------------
Author: Roman Fadeyev
Purpose: Коллекция событий (календарь)
History:
-----------------------------------------------------------------------------}
unit FC.StockData.StockCalendar;
{$I Compiler.inc}
interface
uses Classes, Wind... |
unit Finance.Stock;
interface
uses
Finance.interfaces,
System.JSON;
type
TFinanceStock = class(TInterfacedObject, iFinanceStock)
private
FParent : iFinanceStocks;
FCode : string;
FName : string;
FLocation : string;
FPoints : string;
FVariation : string;
... |
{*******************************************************}
{ }
{ Borland Delphi Visual Component Library }
{ SOAP Attachment }
{ }
{ Copyright (c) 2001 Inp... |
{*******************************************************}
{ }
{ Borland Delphi Visual Component Library }
{ }
{ Copyright (c) 1997,99 Inprise Corporation }
{ ... |
unit GrievanceComplaintSubreasonDialogUnit;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Buttons, wwdblook, Db, DBTables, Wwkeycb, Grids, Wwdbigrd,
Wwdbgrid, ComCtrls, wwriched, wwrichedspell;
type
TGrievanceComplaintSubreasonDialog = class(TForm)
OKB... |
{$A+,B-,D+,E-,F-,G+,I+,L+,N+,O-,P-,Q-,R-,S-,T-,V+,X+,Y+}
{$M 65520,0,0}
{
by Behdad Esfahbod
Algorithmic Problems Book
September '1999
Problem 43 O(FE) Ford-Folkerson Algorithm
}
program
MaximumFlow;
const
MaxN = 100;
MaxE = 10000;
var
N, M, S, T : Integer;
G, H : array [1 .. MaxN, 1 .. MaxN] of Integer;
... |
PROGRAM SumOfDigits(INPUT, OUTPUT);
VAR
Digit, Sum: INTEGER;
PROCEDURE ReadDigit(VAR FromFile: TEXT; VAR Digit: INTEGER);
{Считывает текущий символ из файла, если он - цифра, возвращает его
преобразуя в значение типа INTEGER. Если считанный символ не цифра
возвращает -1}
VAR
Ch: CHAR;
BEGIN
Digit := -1;
IF N... |
{*******************************************************}
{ }
{ Delphi DBX Framework }
{ Copyright(c) 2012-2018 Embarcadero Technologies, Inc. }
{ All rights reserved }
{ ... |
unit MediaStorage.Transport;
interface
uses SysUtils,Classes, Windows;
//{$DEFINE STATIC_LINK_FILEAGENT}
type
IRecordObjectReader = interface
['{26EFF231-E972-4197-95A9-F88191C2A421}']
function GetStream: TStream;
function GetWholeFile: string;
//Подготовка к загрузке сначала файла
procedure Pr... |
{-----------------------------------------------------------------------------
Unit Name: fRenameSetting
This software and source code are distributed on an as is basis, without
warranty of any kind, either express or implied.
This file can be redistributed, modified if you keep this header.
Copyright ©... |
unit Test_FIToolkit.ProjectGroupParser.Parser;
{
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
TestFramework,
... |
unit Annotation.Action;
interface
uses
SuperObject, Vcl.Graphics, System.Types, Settings;
type
IAnnotationAction = interface
function ToJSON(): ISuperObject;
procedure AddToJSONArray(var JSON: ISuperObject; const ArrayName: string);
procedure RenderOnMask(var MaskBitmap: TBitmap);
procedu... |
unit PIA1070B_4_1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
OnEditStdCtrl, OnEditCombo, ExtCtrls, OnShapeLabel, OnEditBaseCtrl,
OnEditBtnCtrl, OnTmaxCodeEdit, OnScheme, StdCtrls, OnFocusButton, Db,
Tmax_DataSetText;
type
TFM_SubForm4_1 = class(TFor... |
unit BodyVariationsQuery;
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.... |
unit Security.ChangePassword.Interfaces;
interface
Type
TChangePasswordNotifyEvent = procedure(const aID: Int64; const aNewPassword: string; var aError: string; var aChanged: boolean) of Object;
TResultNotifyEvent = procedure(const aResult: boolean = false) of Object;
Type
iPrivateChangePasswordEven... |
unit LoanTypeList;
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, Vcl.DBCt... |
unit caMutex;
{$INCLUDE ca.inc}
interface
uses
// Standard delphi units
Windows,
SysUtils,
Classes,
// ca units
caClasses,
caUtils;
type
TcaMutexActivation = (maOpen, maCreate);
TcaMutexState = (msClosed, msOpenNew, msOpenExisting);
TcaWaitResult = (wrAbandoned, wrSignaledObject, wrTimedO... |
{*******************************************************}
{ }
{ CodeGear Delphi Runtime Library }
{ Copyright(c) 2014-2018 Embarcadero Technologies, Inc. }
{ All rights reserved }
{ ... |
unit Initializer.SSDLabelListRefresh;
interface
uses
Classes, Forms, SysUtils, Generics.Collections, Windows, ShellAPI,
Global.LanguageString, OS.EnvironmentVariable, Form.Alert,
Device.PhysicalDrive, Getter.PhysicalDrive.ListChange, Component.SSDLabel,
Component.SSDLabel.List;
type
TSSDLabelListRefresher ... |
unit SingleFPBenchmark2Unit;
interface
uses Windows, BenchmarkClassUnit, Classes, Math;
type
TSingleFPThreads2 = class(TFastcodeMMBenchmark)
public
procedure RunBenchmark; override;
class function GetBenchmarkName: string; override;
class function GetBenchmarkDescription: string; override;
class... |
program SplitEnv;
uses
SysUtils;
const
MAX_SIZE = 1024;
END_OF_STRING = CHR(0);
type
String1024 = array [1..MAX_SIZE] of Char; (* Terminated by chr 0 in FreePascal *)
StringArray = array [1..MAX_SIZE] of String1024; (* Terminated by an empty string *)
var
path : String1024;
i : Integer;
function split(toSpli... |
{**
* @Author: Du xinming
* @Contact: QQ<36511179>; Email<lndxm1979@163.com>
* @Version: 0.0
* @Date: 2018.10
* @Brief:
* @References: Introduction to Algorithms, Second Edition
*}
unit org.algorithms.tree;
interface
uses
WinApi.Windows,
org.algorithms
{$IfDef TEST_ALGORITHMS}
, Vcl.Graphics;
{$Else}
... |
//
// 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... |
unit LuaStringGrid;
interface
Uses Classes, Types, Controls, Contnrs, LuaPas, LuaControl, Forms, Grids, StdCtrls, TypInfo, LuaCanvas,
Graphics; ///QVCL
function CreateStringGrid(L: Plua_State): Integer; cdecl;
type
PLuaStringGridCellAttr = ^TLuaStringGridCellAttr;
TLuaStringGridCellAttr = record
Co... |
unit k03_kel3_utils;
{Berisi fungsi-fungsi perantara yang vital untuk membantu unit-unit lain}
{REFERENSI : https://stackoverflow.com/questions/27708404/crt-library-changes-console-encoding-pascal (clearscreen in windows)
https://stackoverflow.com/questions/6320003/how-do-i-check-whether-a-string-exists-in-an-a... |
{*******************************************************}
{ }
{ CodeGear Delphi Runtime Library }
{ }
{ Copyright(c) 1995-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
unit SuperSocketUtils;
interface
uses
DebugTools, DynamicQueue,
SysUtils, Classes, WinSock2;
const
/// Packet size limitation including header.
PACKET_SIZE = 1024 * 32;
/// Concurrent connection limitation
CONNECTION_POOL_SIZE = 4096;
/// Buffer size of TPacketReader
PACKETREADER_PAGE_SIZE = PACKET... |
unit MediaStream.Filer.Wave;
interface
uses SysUtils,Classes, Windows, SyncObjs, MediaStream.Filer, MediaProcessing.Definitions,MediaStream.Writer.Wave;
type
TStreamFilerWave = class (TStreamFiler)
private
FWriter: TMediaStreamWriter_Wave;
protected
procedure DoWriteData(const aFormat: TMediaStreamDat... |
PROGRAM FBS;
PROCEDURE BruteSearch(s, p : STRING;
VAR pos : INTEGER);
VAR
sLen, pLen, i, j : INTEGER;
wrongChar : BOOLEAN;
BEGIN
sLen := Length(s); pLen := Length(p);
i := 1; j := 1;
wrongChar := false;
REPEAT
IF s[i] = p[j] THEN BEGIN
Inc(i);
Inc(j);
END ELSE BEGI... |
{
Этот файл является частью библиотеки CryptEngine\CryptoChat
Copyright (c) 2015-2015 by Anton Rodin
Работа с базой данных
Назначение таблиц:
- USERS - Список пользователей системы
- FRIENDS - Список друзей пользователя
- MESSAGES - Список сообщений
- TRANSPORT - Настрой... |
unit ReportQuery;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs,
FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param,
FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf, FireDAC.DApt.Intf,
FireDAC.... |
unit Main;
interface
uses
// Delphi/Windows
Windows, Menus, Forms, Classes, Controls, SysUtils,
// (J)VCL
JvMenus, JvComponentBase, JvTrayIcon, JvAppInst,
// SysTool
Global
;
type
TFormMain = class(TForm)
JvTrayIcon: TJvTrayIcon;
JvPopupMenuTray: TJvPopupMenu;
TrayMenuI... |
unit Plugin_events;
interface
uses CoolQSDK,iconv;
Function code_eventStartup:longint;
Function code_eventExit:longint;
Function code_eventEnable:longint;
Function code_eventDisable:longint;
Function code_eventPrivateMsg(subType,MsgID:longint;fromQQ:int64;const msg:ansistring;font:longint):longint;
Function code_even... |
unit ObservableImplTests;
interface
uses Classes, TestFramework, Rx, Generics.Collections, SysUtils;
type
TSmartVariableTests = class(TTestCase)
strict private
FLog: TList<string>;
FStream: TList<string>;
protected
procedure SetUp; override;
procedure TearDown; override;
publi... |
unit Model.Interfaces;
interface
uses
FMX.Graphics, System.Generics.Collections, Model.PhoneNumber;
type
IPizza = interface
['{17F036A2-FE50-4834-887B-4358B068EA05}']
function GetID: Integer;
function GetName: String;
function GetPhoto: TBitMap;
function GetPrice: Currency;
procedure Set... |
unit Unit_Barras;
interface
uses
SysUtils, Classes;
type
TBarras = Class
Private
ListaBarras: TStringList; // Objeto que ha de guardar la lista de las barras
IntCuentaBarras: Integer; // Indicador de número de barras creadas
IntPosicionClick: Integer; // 1 - Se toma la barra de lado ... |
unit UFuncaoCalculadora;
interface
type
TFuncaoCalculadora = class
private
public
class function soma(valor1, valor2: Double): Double;
class function subtrair(valor1, valor2: Double): Double;
class function dividir(valor1, valor2:Double): Double;
class function multiplicar(valor1, valor2: Dou... |
unit MyData;
{
MyData: thin LibMySQL wrapper to connect to a MySQL/MariaDB server.
https://github.com/stijnsanders/DataLank
ATTENTION:
Include following files in the folder that contains the executable,
or in a folder included in the default DLL search path.
They are provided with the Windows MySQL/MariaDB serv... |
unit ProgressBarImpl1;
interface
uses
Windows, ActiveX, Classes, Controls, Graphics, Menus, Forms, StdCtrls,
ComServ, StdVCL, AXCtrls, DelCtrls_TLB, ComCtrls;
type
TProgressBarX = class(TActiveXControl, IProgressBarX)
private
{ Private declarations }
FDelphiControl: TProgressBar;
FEvents: IProgre... |
{********************************************}
{ TeeChart Extended Series Editors }
{ Copyright (c) 1996-2004 by David Berneda }
{********************************************}
unit TeeEditPro;
{$I TeeDefs.inc}
interface
Uses {$IFNDEF LINUX}
Windows,
{$ENDIF}
{$IFDEF CLX}
QControls, QGr... |
{*********************************************}
{ TeeBI Software Library }
{ TChart Geographic Maps }
{ Copyright (c) 2015-2016 by Steema Software }
{ All Rights Reserved }
{*********************************************}
unit VCLBI.Chart.Geo;
{.$DEFINE... |
unit adot.Win.HookFormMethods;
interface
uses
adot.Win.HookClassMethods,
Vcl.Forms,
System.Classes,
System.Generics.Collections,
System.Generics.Defaults,
System.SysUtils;
type
{
High level API to catch TForm.DnCreate/TForm.DoShow/TFrame.Create.
1. It is NOT thread-safe.
2. It is safe to use it fr... |
UNIT myColors;
INTERFACE
USES math,myGenerics;
TYPE
T_colorChannel =(cc_red, cc_green, cc_blue, cc_alpha);
RGB_CHANNELS =cc_red..cc_blue;
T_rgbColor =array[RGB_CHANNELS ] of byte;
T_rgbaColor =array[T_colorChannel] of byte;
T_rgbFloatColor =array[RGB_CHANNELS ] of single;
T_rgba... |
unit CacheProp;
interface
uses
sysutils,
classes,
DB,
Variants,
TypInfo;
type
IntPtr = ^Longint;
CharPtr = ^Char;
FloatPtr = ^Extended;
VariantPtr = ^Variant;
StringPtr = ^String;
Int64Ptr = ^Int64;
PCachePropItem = ^TCachePropItem;
TCachePropItem = record
pcPropInfo : PP... |
PROGRAM Encryption(INPUT, OUTPUT);
{Переводит символы из INPUT в код согласно Chiper
и печатает новые символы в OUTPUT}
CONST
Len = 20;
PermissibleValues = [' ', 'A'..'Z'];
ValidEncryption = [' ' .. 'Z'];
TYPE
Str = ARRAY [1 .. Len] OF ' ' .. 'Z';
Chiper = ARRAY [' ' .. 'Z'] OF CHAR;
VAR
Msg: Str;
Code... |
{$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 77 Simulating
}
program
Eating;
const
MaxN = 100;
type
TMan = record
P : Integer;
S : Integer;
T : Longint;
D : Integer;
R : Integer;
G : Integer;
... |
unit u_xpl_console_app;
{$i xpl.inc}
interface
uses CustApp;
type // TxPLConsoleApp ========================================================
TxPLConsoleApp = class(TCustomApplication)
protected
procedure DoRun; override;
public
destructor Destroy; override;
proc... |
unit Card;
interface
uses
System.SysUtils, System.Classes, FMX.Types, FMX.Controls, System.Types,
FMX.Objects, System.UITypes, FMX.Graphics, FMX.Dialogs, System.Math,
System.Math.Vectors, FMX.Edit, FMX.Layouts, FMX.Effects, SolidInput;
type
TCard = class(TControl)
private
{ Private declarations }
pro... |
unit const_sarray_1;
interface
implementation
const A: array [4] of Int32 = (1, 2, 3, 4);
var G1, G2: Int32;
procedure Test;
begin
G1 := A[0];
G2 := A[3];
end;
initialization
Test();
finalization
Assert(G1 = 1);
Assert(G2 = 4);
end.
|
unit cUserReg;
interface
uses System.Classes, Vcl.Controls, Vcl.ExtCtrls,Vcl.Dialogs,System.SysUtils,
FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error,
FireDAC.DatS, FireDAC.Phys.Intf, FireDAC.DApt.Intf, FireDAC.Stan.Async,
FireDAC.DApt, FireDAC.Comp.DataSet, FireDAC.Comp.... |
unit MatchChecker;
interface
uses
MetroBase, MetroVisCom;
//----------------------------------------------------------------------------
// TMatchChecker is a class that determines if a map and a network match.
// Matching maps and networks contain exactly the same stations and lines.
//-----------------... |
{*******************************************************}
{ }
{ CodeGear Delphi Runtime Library }
{ Copyright(c) 2014-2018 Embarcadero Technologies, Inc. }
{ All rights reserved }
{ ... |
Unit controllers;
uses crypto;
var
mtx: System.Threading.Mutex;
function GetUser(login: string): string;
begin
Result := nil;
foreach var s in ReadLines('data/users.txt') do
begin
var ss := s.ToWords;
if (ss[0] = login) then begin
Result := ss[1];
end;
end;
end;
function GetLastUsers(n: integer): str... |
unit DelphiUtils.Strings;
interface
uses
Winapi.WinNt, System.TypInfo;
type
THintSection = record
Title: String;
Enabled: Boolean;
Content: String;
end;
// Boolean state to string
function EnabledDisabledToString(Value: LongBool): String;
function YesNoToString(Value: LongBool): String;
function ... |
{ Module of GUI library routines that manipulate the RENDlib event state.
}
module gui_events;
define gui_events_init_key;
%include 'gui2.ins.pas';
{
*************************************************************************
*
* Subroutine GUI_EVENTS_INIT_KEY
*
* Initialize the RENDlib key events state to that ass... |
unit uUpdateYZBH;
interface
uses
FireDAC.Comp.Client, uLogger, System.Generics.Collections, SysUtils, Classes,
uSQLHelper;
type
TUpdateYZBH = Class
private
class var FConn: TSQLHelper;
class var FDicYzbh: TDictionary<string, TDictionary<string, string>>;
class function LoadDicmail()
: TDic... |
unit UHandleObject;
{
封包分发对象基类
用户继承后可以扩展为对单一协议的解析
}
interface
uses
Windows,UPacketManager,UProtocol;
type
THandleObjct = class
private
mHandleName:String;
protected
Function GetProtocol(pBuffer:Pointer):Integer;
public
constructor Create(_HandleName:String);
Procedure OnRe... |
unit IdHostnameServer;
interface
uses
Classes,
IdTCPServer;
const
KnownCommands: array[1..9] of string =
(
'HNAME',
'HADDR',
'ALL',
'HELP',
'VERSION',
'ALL-OLD',
'DOMAINS',
'ALL-DOM',
'ALL-INGWAY'
);
type
THostNameGetEvent = procedure(Thread: TIdPeerThread) of objec... |
unit caControls;
{$INCLUDE ca.inc}
interface
uses
// Standard Delphi units
Windows,
Classes,
Messages,
Controls,
Sysutils,
Graphics,
Forms,
StdCtrls,
ExtCtrls,
Dialogs,
// ca units
caUtils,
caTypes,
caClasses,
caFrame;
type
TcaPaintEvent = procedure(Sender: TObject; ACanvas: T... |
{
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;
{$I ADAPT.inc}
interface
uses
{$IFDEF A... |
unit RecursoDataUn;
interface
uses
SysUtils, Classes, FMTBcd, Provider, osSQLDataSetProvider, DB, SqlExpr,
osCustomDataSetProvider, osUtils, osSQLDataSet;
type
TRecursoData = class(TDataModule)
MasterDataSet: TosSQLDataset;
MasterProvider: TosSQLDataSetProvider;
MasterDataSetIDRECURSO: ... |
{ CRT (Crt Replacement Tool)
Portable BP compatible CRT unit for GPC with many extensions
This unit is aware of terminal types. This means programs using
this unit will work whether run locally or while being logged in
remotely from a system with a completely different terminal type
(as long as the appropria... |
unit ParameterPosQuery;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs,
FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param,
FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf, FireDAC.DApt.Intf,
Fi... |
unit UEditsStatic;
{$mode objfpc}{$H+}
interface
uses
Classes, Controls, Graphics, ExtCtrls, StdCtrls, Spin, Dialogs, sysutils;
type
PointerArray = array of Pointer;
type
TMainEditNewStatic = Class
Prop__Pointer: PointerArray;
class function Tagis: Integer; virtual; abstract;
constructor Create(A... |
unit fAllgyFind;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
fAutoSz, StdCtrls, ORFn, ORCtrls, ComCtrls, ImgList, VA508AccessibilityManager,
VA508ImageListLabeler, ExtCtrls, System.ImageList;
type
TfrmAllgyFind = class(TfrmAutoSz)
txtSearch: TCaptionEdit;
... |
unit FNovo2;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Buttons, ComCtrls, AthFindFile, jpeg, ExtCtrls, FileCtrl;
const
EXT_ARQUIVO = '.fxd';
EXT_IMAGEM = '.bmp';
type
TFormNovo2 = class(TForm)
PageControl1: TPageControl;
TabS... |
unit SplashScreen;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, StdCtrls, ExtCtrls,
ResourceStrings, LCLIntf;
type
{ TSplash }
TSplash = class(TFrame)
BackgroundImage: TImage;
BeCreativeLabel: TLabel;
BuildDateLabel: TLabel;
CompilerVersionLabel: TLabel;
Descr... |
{$A+,B-,D-,E-,F-,G-,I-,L-,N-,O+,R-,S-,V-,X+}
{ graph -- module om snel vga-toeren uit te halen}
unit UGraph;
interface {=================================================================}
uses dos,crt;
{
This is a stand-alone unit :
graph is NOT needed,
it is even recommended that you don't use it.
}
type
... |
unit caTranslate;
{$INCLUDE ca.inc}
interface
uses
// standard delphi units...
Sysutils,
Windows,
Classes,
Forms,
TypInfo,
IniFiles,
FileCtrl,
// ca units...
caConsts,
caUtils,
caForms,
caLog,
caIni;
type
TcaLanguage = (laEnglish, laFrench, laGerman, laAmerican);
//--------------... |
namespace Importer;
interface
uses
System.Collections.Generic,
System.Linq,
System.Reflection,
System.Runtime.InteropServices,
System.Text,
System.IO,
Mono.Cecil,
Mono.Cecil.Cil,
RemObjects.CodeGen4;
type
Importer = public class(IAssemblyResolver)
private
method GetTypeNa... |
unit Downloader.Firmware;
interface
uses
Windows, SysUtils, IdURI, Dialogs, ShellApi,
Form.Alert, Global.LanguageString, OS.EnvironmentVariable, Global.Constant,
OS.ProcessOpener, Device.PhysicalDrive, Thread.Download,
OS.DeleteDirectory, Getter.WebPath, Getter.LatestFirmware,
Getter.CodesignVerifier, Thre... |
{
Maximum Netword Flow
Ford Fulkerson Alg. O(N.E2) Implemantation O(N5)
Input:
N: Number of vertices
C: Capacities (No restrictions)
S, T: Source, Target(Sink)
Output:
F: Flow (SkewSymmetric: F[i, j] = - F[j, i])
Flow: Maximum Flow
Reference:
CLR
By Behdad
}
program
MaximumFlow;
const
MaxN =... |
{*******************************************************}
{ }
{ CodeGear Delphi Runtime Library }
{ Copyright(c) 2014-2018 Embarcadero Technologies, Inc. }
{ All rights reserved }
{ ... |
unit Ths.Erp.Database.Table.AyarEFaturaIletisimKanali;
interface
{$I ThsERP.inc}
uses
SysUtils, Classes, Dialogs, Forms, Windows, Controls, Types, DateUtils,
FireDAC.Stan.Param, System.Variants, Data.DB,
Ths.Erp.Database,
Ths.Erp.Database.Table;
type
TAyarEFaturaIletisimKanali = class(TTable)
private
... |
unit BCEditor.Editor.CompletionProposal.Columns;
interface
uses
System.Classes, Vcl.Graphics, System.SysUtils;
type
TBCEditorProposalColumn = class(TCollectionItem)
strict private
FAutoWidth: Boolean;
FItemList: TStrings;
FWidth: Integer;
procedure SetItemList(const AValue: TString... |
UNIT myGenerics;
INTERFACE
USES sysutils;
{$MACRO ON}
TYPE
T_arrayOfString =array of ansistring;
T_arrayOfPointer=array of pointer ;
T_arrayOfDouble =array of double ;
T_arrayOfLongint=array of longint ;
T_arrayOfInt64 =array of int64 ;
{$define arrayOp:=OPERATOR :=(x:M_VALUE_TYPE):M... |
unit Kafka.FMX.Form.Consumer;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
System.Generics.Collections,System.Rtti,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Memo.Types,
FMX.Edit, FMX.StdCtrls, FMX.ScrollBox, FMX.Memo, FMX.Controls.Pr... |
unit NvConst;
interface
const
INIT_KEY = '\Software\NetUtils\NetView\';
NN_KEY = '\CLSID\{208D2C60-3AEA-1069-A2D7-08002B30309D}\shell\Scan with NetView\';
MRU_KEY = 'FindResourceMRU\';
SDefExt = '.txt';
SFilter = 'Text Documents (*' + SDefExt + ')|*' + SDefExt + '|';
SPosition = 'Position... |
unit About;
interface
uses Windows, Classes, Graphics, Forms, Controls, StdCtrls,
Buttons, ExtCtrls, SysUtils;
type
TAboutBox = class(TForm)
OKButton: TButton;
Panel1: TPanel;
ProgramIcon: TImage;
ProgramName: TLabel;
Copyright: TLabel;
procedure FormCreate(Sender: TObject);
private
... |
// Ported CrystalDiskInfo (The MIT License, http://crystalmark.info)
unit SMARTSupport.Fallback;
interface
uses
BufferInterpreter, Device.SMART.List, SMARTSupport,
Support;
type
TFallbackSMARTSupport = class(TSMARTSupport)
public
function IsThisStorageMine(
const IdentifyDevice: TIdentifyDeviceResu... |
{$i deltics.inc}
unit Test.TypedExchanges;
interface
uses
Deltics.Smoketest,
Deltics.StringTypes;
type
TTypedExchangeTests = class(TTest)
private
procedure TestExchangeBytesWithData(a, b: Byte);
procedure TestExchangeWordsWithData(a, b: Word);
procedure TestExchangeLongWor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.