Unit PasDoc_Types

Description

Basic types.

Uses

  • SysUtils

Overview

Classes, Interfaces, Objects and Records

Name Description
Class EPasDoc  

Functions and Procedures

function SplitNameParts(S: string; out NameParts: TNameParts): Boolean;
function OneNamePart(S: string): TNameParts;
function GlueNameParts(const NameParts: TNameParts): string;

Types

TBytes = array of Byte;
UnicodeString = WideString;
RawByteString = AnsiString;
TPasDocMessageType = (...);
TPasDocMessageEvent = procedure(const MessageType: TPasDocMessageType; const AMessage: string; const AVerbosity: Cardinal) of object;
TCharSet = set of AnsiChar;
TNameParts = array of string;
TImplicitVisibility = (...);

Constants

MaxNameParts = 3;
CP_UTF16 = 1200;
CP_UTF16Be = 1201;
CP_UTF32 = 12000;
CP_UTF32Be = 12001;

Description

Functions and Procedures

function SplitNameParts(S: string; out NameParts: TNameParts): Boolean;

Splits S, which can be made of up to three parts, separated by dots. If S is not a valid identifier or if it has more than three parts, false is returned, otherwise true is returned and splitted name is returned as NameParts.

function OneNamePart(S: string): TNameParts;

Simply returns an array with Length = 1 and one item = S.

function GlueNameParts(const NameParts: TNameParts): string;

Simply concatenates all NameParts with dot.

Types

TBytes = array of Byte;
 
UnicodeString = WideString;
 
RawByteString = AnsiString;
 
TPasDocMessageType = (...);
 
Values
  • pmtPlainText
  • pmtInformation
  • pmtWarning
  • pmtError
TPasDocMessageEvent = procedure(const MessageType: TPasDocMessageType; const AMessage: string; const AVerbosity: Cardinal) of object;
 
TCharSet = set of AnsiChar;
 
TNameParts = array of string;

This represents parts of a qualified name of some item.

User supplies such name by separating each part with dot, e.g. 'UnitName.ClassName.ProcedureName', then SplitNameParts converts it to TNameParts like ['UnitName', 'ClassName', 'ProcedureName']. Length must be always between 1 and MaxNameParts.

TImplicitVisibility = (...);

See command-line option --implicit-visibility documentation at [https://github.com/pasdoc/pasdoc/wiki/ImplicitVisibilityOption]

Values
  • ivPublic
  • ivPublished
  • ivImplicit

Constants

MaxNameParts = 3;
 
CP_UTF16 = 1200;

Windows Unicode code page ID

CP_UTF16Be = 1201;
 
CP_UTF32 = 12000;
 
CP_UTF32Be = 12001;
 

Authors


Generated by PasDoc 0.15.0.