stdlib.dll
Classes:
Functions:
- Abs(any)
- Acos(any)
- AddPathName
- Asin(any)
- Atg(any)
- BesselJ0(any)
- BesselJ1(any)
- BesselJn(int, any)
- BesselY0(any)
- BesselY1(any)
- BesselYn(int, any)
- Beta_P(number, number, number)
- CharToWChar(char)
- Clock(void)
- ComparePath
- Conjugate(any)
- CorrectFuncNames
- Cos(any)
- DefaultExtension
- Dir::GetLogicalDriveList
- Errf(number)
- Errf1(number)
- Exp(any)
- ForceExtension
- Gamma_P(number, number)
- GetDim(refer any)
- GetTempFileName(refer object String, refer object String)
- GetTempPath(void)
- IntPart(number)
- IntPartEx(number)
- IsAbsPath
- IsAlNum(char)
- IsAlpha(char)
- IsDigit(char)
- IsHexDigit(char)
- IsNumber(any)
- IsPrint(char)
- IsSpace(char)
- IsStrFunc(any)
- JustDirName
- JustExtension
- JustFileName
- JustName
- Lg(any)
- Ln(any)
- LnGamma(any)
- Log(number, any)
- Max
- Min
- PCom::ErrorMessage
- Print(refer ...)
- PrintString(object String)
- Printf(object BaseString, refer ...)
- ProbChi2(number, number)
- Rand(number)
- RandBinominal(number, int)
- RandGaus(number, number)
- RandGauss(number, number)
- RandPoisson(number)
- ScanString(refer object String)
- SeedRand(int)
- Sgn
- Sign(any)
- Sin(any)
- Sinc(any)
- Sqrt(any)
- Swap(refer any, refer any)
- Tg(any)
- ToDirName
- ToLower(char)
- ToPtr
- ToRef
- ToUpper(char)
- VectorDif::CompareSets
- VectorDif::CompareVectors
- WCharToChar(int)
- assert
Methods:
#rus Вернет len символов с начала строки. В отличии
#rus от String::Left не возбуждает ошибку, если строка
#rus имеет длину меньшую, чем запрошенная длина, а просто
#rus вернет строку целиком.
#rus Вернет len символов с позиции offset строки. В отличии
#rus от String::Mid не возбуждает ошибку, если строка
#rus не имеет len символов от заданной позиции, а просто
#rus вернет все симаолы от этой позиции. Тот же
#rus результат будет если len отрицательное число.
#rus Вернет len символов с конца строки. В отличии
#rus от String::Right не возбуждает ошибку, если строка
#rus имеет длину меньшую, чем запрошенная длина, а просто
#rus вернет строку целиком.
#module root.baseclasses
#rus Временная метка, не ограниченная сутками как в классе Time.
#rus В классе определены следующие глобальные поля:
#rus PrintMod24H Режим печати времени по модулю, равному продолжительности
#rus суток. Например, 26:10:20 печатается в виде:
#rus 26:10:20, если поле равно 0;
#rus 2:10:20, если поле равно 1;
#rus 2:10:20+1d, если поле равно 2.
Methods:
param time;
#rus Создает временную метку.
#rus time Количество секунд. Может быть отрицательным числом.
param time;
#rus Создает временную метку.
#rus time См. комментарии.
#rus Комментарии
#rus В параметре time задается:
#rus 1) количество часов в виде плавающего числа и символа H/h;
#rus 2) количество минут в виде плавающего числа и символа M/m;
#rus 3) количество секунд в виде плавающего числа и символа S/s;
#rus 4) количество секунд в виде плавающего числа;
#rus 5) количество минут в виде плавающего числа, символа : и
#rus количество секунд в виде плавающего числа;
#rus 6) количество часов в виде плавающего числа, символа :,
#rus количество минут в виде плавающего числа, символа : и
#rus количество секунд в виде плавающего числа.
#rus В начале параметра time может быть задан минус, который
#rus определяет отрицательное значение времени.
#rus В конце параметра time может быть задан +nd, где n -
#rus количество суток, которое надо добавить к времени.
#rus Получает количество сотых долей секунд во
#rus временной метке (не считая сотые в полных секундах).
#rus Получает количество часов во временной метке.
#rus Получает знак временной метки.
#rus Возвращает FALSE - метка положительная, TRUE - отрицательная.
#rus Получает количество минут во временной метке (не считая
#rus минуты в полных часах).
#rus Печатает временную метку в виде строки.
#rus Получает количество секунд во временной метке (не считая
#rus секунды в полных минутах).
#rus Получает количество секунд во временной метке. Может быть
#rus отрицательным числом.
#module root.baseclasses
The Buffer class is designed for storing large-scale arrays of binary
information shared between processes.
Buffer can be created independently (the Buffer::Buffer(int)
constructor). At that, after the creation the ShareName field contains
the name which can be used to open the buffer that shares common
memory (the Buffer::Buffer(refer object String) constructor).
Methods:
- Buffer(copy)
- Buffer(int)
- Buffer(int, boolean)
- Buffer(refer object String)
- Buffer(refer object String, boolean)
- Buffer(refer object String, refer object String, boolean)
- ClearBuffer(void)
- ConnectBuffer(boolean)
- ConnectBuffer(void)
- Copy(refer object Buffer, int, int, int)
- Copy(refer object String, int)
- Copy(refer object String, int, int, int)
- DisconnectBuffer(boolean)
- Find(char, number)
- Find(refer object Buffer, number)
- Find(refer object String, number)
- GetByte(number)
- GetString(int, int)
- IsBufferConnected(void)
- Len(void)
- PutByte(number, number)
- SetBuffer(number)
- ~Buffer(void)
Creates buffer copy in the separate memory space;
param Size;
Creates new Buffer with the size specified via the Size parameter;
param Size, NoCache;
Creates new Buffer with the size specified via the Size parameter;
The NoCache flag indicates whether to use operation cashing for file
access.
param ShareName;
Creates Buffer that shares information with the buffer whose name is
specified via the ShareName;
param ShareName, NoCache;
Creates Buffer that shares information with the buffer whose name is
specified via the ShareName;
The NoCache flag indicates whether to use operation cashing for file
access.
Nulls buffer.
param NoCache;
Restores the object connection with the shared memory and maps it to
the process address space.
The NoCache flag indicates whether to use operation cashing for file
access.
Restores the object connection with the shared memory and maps it to
the process address space.
param Src, dstOffset, srcOffset, Size;
Copies the number of bytes determined via the Size parameter from the
buffer specified via the Src parameter beginning with the offset
specified via the srcOffset parameter to the self buffer with the
offset specified via the dstOffset parameter.
param Src, dstOffset;
Copies the string specified via the Src parameter to the self buffer
with the offset specified via the dstOffset parameter.
param Src, dstOffset, srcOffset, Size;
Copies the number of bytes determined via the Size parameter from the
string specified via the Src parameter beginning with the offset
specified via the srcOffset parameter to the self buffer with the
offset specified via the dstOffset parameter.
param FlushLazy;
Disconnects shared memory from the object. (It is not realized for
Windows 3.xx).
It is used to optimize the virtual memory manager performance by
temporary excluding the unnecessary memory from the process address
space.
If the FlushLazy parameter == TRUE then the unconnected block is
written to disk in the lazy mode, otherwise recording is performed
immediately.
param ch, offset;
Searches the character specified via the ch parameter in the initial
buffer beginning with the position specified via the offset parameter.
Returns the character specified via the ch parameter offset in the
initial buffer if succeeded; Otherwise - returns -1.
param pattern, offset;
Searches the sub-string specified via the pattern parameter in the
initial buffer beginning with the position specified via the offset
parameter.
Returns the sub-string specified via the pattern parameter offset in
the initial buffer if succeeded; Otherwise - returns -1.
param pattern, offset;
Searches the sub-string specified via the pattern parameter in the
initial buffer beginning with the position specified via the offset
parameter.
Returns the sub-string specified via the pattern parameter offset in
the initial buffer if succeeded; Otherwise - returns -1.
param offset;
Returns a byte from the position specified via the offset parameter.
param srcOffset, Size;
Returns string that contains the number of bytes determined via the
Size parameter from the buffer beginning with the offset specified via
the srcOffset parameter.
Returns TRUE if the buffer is connected (mapped to the process address
space), otherwise - FALSE.
Returns buffer length.
param offset, ch;
Writes the byte specified via the ch parameter to the buffer for which
the method was called to the position specified via the offset parameter.
param Char;
Fills buffer with the character specified via the Char parameter.
The destructor destroys buffer and releases resources.
#module root.system
Element of the group collected according to the class membership.
Comments
If an application derives its own class from the current class,
then it is possible to call an arbitrary method with the help
of the Pluk::SendMessageToClassGroup method for all the objects
of the class (or derived from it).
The Pluk::SendMessageToClassGroup method is faster than the
Pluk::SendMessageToAllObjects system method because it uses group
information (as the internal list of the identifiers of group objects)
in contrast to the Pluk::SendMessageToAllObjects which searches all
the application objects that takes significant time even for a hundred
of objects.
Methods:
Adds an object identifier to the internal list.
Comments
It is useless to call this method if the
ClassGroupItem::ClassGroupItem constructor
which performs the same action was previously
called.
Creates an object by adding its identifier to the internal list.
Creates an object by adding its identifier to the internal list.
Deletes an object identifier from the internal list.
Comments
Identifier is deleted automatically on
the ClassGroupItem::~ClassGroupItem destructor call.
Deletes an object by removing its identifier from the internal list.
#module root.communication.clipboard
A cell in the clipboard for exchange between different applications on
a single computer. Supports data communications and storing protocol
which is different from the system clipboard.
Methods:
param slot;
Creates an access object for a clipboard cell.
slot Cell name.
Comments
Applications that work on a single computer can create
objects of this class with the same value of the slot parameter.
At that data written to the cell with the help of one
object can be read with the help of others.
You also can create several access objects for one
cell within a single application.
Reads data from a cell.
Returns data that was stored in the cell by one
of the access objects of the current cell.
param messageName, [messagePars];
Calls a method for all access objects of the current cell.
messageName Method name.
messagePars Method parameters.
Comments
The method specified via the messageName parameter can also
be called for the current object.
param data;
Writes data to a cell.
data Data.
Comments
Data should meet the serialization capability.
#module root.baseclasses
The Date class is included in the set of standard Pluk classes. It
allows to determine the current date.
class Date {
julian;// Julian date (the number of days since the World creation)
};
Methods:
patam days;
Returns an object of the Date class which is some days in the future
relatively to the object for which the method was called. The number
of days specified via the days parameter
patam Days;
Shifts date to the future on the number of days specified via the Days
parameter. Returns the pointer to self.
patam days;
Returns an object of the Date class which is some days in the past
relatively to the object for which the method was called. The number
of days specified via the days parameter
patam anotherDate;
Returns the number of days between the date of the object for which
the method was called and the date specified via the anotherDate
parameter.
patam Days;
Shifts date to the past on the number of days specified via the Days
parameter. Returns the pointer to self.
param JulianeDate;
This is the Constructor which creates the Date object initiated by the
passed Julian date that is it is initiated by the number of days since
the World creation.
param day, month, year;
This is the Constructor which creates the Date object initiated by the
passed parameters.
param date;
This is the Constructor which creates the Date object initiated by the
date specified via the Date parameter.
param date;
This is the Constructor which creates the Date object initiated by the
date specified via the Date parameter.
The Date parameter should contain date in the following format: "dd:mm:yyyy".
This is the Constructor which creates the Date object initiated by the
current date.
Returns day of month
Returns day of week
Returns ordinal day of year
Returns the vector which consists of three - <<year, month, day>>.
Returns date conversion to the Julian date that is to the number of
days since the World creation.
#rus Получает возраст данной даты (в годах).
#rus Получает возраст данной даты (в месяцах).
Returns month
Returns String which contains date and time in text representation in
the following format: "DD/MM/YYYY".
Returns String which contains date and time in text representation in
the following format: "DD/MM/YYYY".
#rus Печатает возраст данной даты:
#rus 1) в годах, если больше либо равно одному году;
#rus 2) в месяцах, если больше либо равно одному месяцу;
#rus 3) в днях.
Returns String which contains date and time in text representation in
the following format: "MM/DD/YYYY".
param day, month, year;
Initiates date according to the day, month, year parameters.
If fails the ERR_WRONG_FORMAT error is raised.
param Str;
Initiates date from the string specified via the Str parameter, which
contains date in one of the following formats:
"dd/mm/yy" or "dd.mm.yy" or "dd:mm:yy" or "dd mm yy".
param Str;
Initiates date from the string specified via the Str parameter, which
contains date in one of the following formats:
"mm/dd/yy" or "mm.dd.yy" or "mm:dd:yy" or "mm dd yy".
param JulianeDate;
Updates the object contents by the passed Julian date that is by the
number of days since the World creation. The day of week and the day
of year are calculated.
Updates the object contents by the current time/date value.
Returns year (A.D.)
Methods:
- DateInterval(refer any, refer any)
The Dictionary base class is designed for storing
and quick search of named (without duplicate names) elements.
Two descendants are produced from it: DictionaryInt and DictionaryStr.
#module root.baseclasses
Methods:
Initiates an empty table.
Finds the current (in terms of GetFirst/GetNext iterator)
element in a dictionary.
Returns a pointer to the found element or EMPTY
if the iterator is not activated.
Finds the first nonempty element in a dictionary.
Returns a pointer to the found element or EMPTY
if the dictionary is empty.
Finds the next nonempty element in a dictionary.
Returns a pointer to the found element or EMPTY
if the dictionary does not have more elements.
#rus Возвращает количество записей в словаре.
#rus Удаляет текущий (в смысле итератора GetFirst/GetNext)
#rus элемент в словаре.
#rus Текущий элемент становится не определен,
#rus но GetNext возвратит следующий элемент за удаленным.
#rus Очищает таблицу.
The DictionaryAny class is designed for storing and
quick search of named (without duplicate names) elements.
Names are arbitrary objects with the specified order
(comparison operations).
#module root.baseclasses
Methods:
param ItemName, Item;
Adds (transfers) an element to a dictionary.
Returns a pointer to the added element.
param ItemName;
Searches an element in a dictionary,
returns TRUE if it is found; otherwise FALSE.
Initiates an empty table.
param ItemName;
Searches an element in a dictionary, returns
a pointer to the found element if it is found;
otherwise EMPTY.
param ItemName;
Deletes an element from a dictionary,
returns TRUE if the element is deleted;
otherwise FALSE.
#rus Класс DictionaryAnyObj предназначен для хранения и быстрого
#rus поиска именнованых (без дубликатов имен) элементов.
#rus Имена - произвольные объекты с заданным порядком (операциями сравнения).
#rus Хранимые элементы являются объектами языка Pluk, т.е.
#rus не относятся к примитивным типам (char, int, float, double, boolean)
#module root.baseclasses
Methods:
#rus Инициирует пустую таблицу.
param ItemName;
#rus Ищет эленент в словаре, возвращает указатель на найденый
#rus элемент, если он найден, иначе - EMPTY.
The DictionaryInt class is designed for storing and
quick search of named (without duplicate names) elements.
Names are integer numbers.
#module root.baseclasses
Methods:
param ItemName, Item;
Adds (transfers) an element to a dictionary.
Returns a pointer to the added element.
param ItemName;
Searches an element in a dictionary,
returns TRUE if it is found; otherwise FALSE.
Initiates an empty table.
param ItemName;
Searches an element in a dictionary, returns
a pointer to the found element if it is found;
otherwise EMPTY.
param ItemName;
Deletes an element from a dictionary,
returns TRUE if the element is deleted;
otherwise FALSE.
#rus Класс DictionaryIntObj предназначен для хранения и быстрого
#rus поиска именнованых (без дубликатов имен) элементов.
#rus Имена - целые числа. Хранимые элементы являются объектами
#rus языка Pluk, т.е. не относятся к примитивным типам (char, int, float, double, boolean)
#module root.baseclasses
Methods:
#rus Инициирует пустую таблицу.
param ItemName;
#rus Ищет эленент в словаре, возвращает указатель на найденый
#rus элемент, если он найден, иначе - EMPTY.
Element of a table of the Dictionary class
#module root.baseclasses.helper
Methods:
Comparison of a dictionary element by name.
#rus Сравнение элемента словаря по имени.
Comparison of two dictionary elements by name.
Comparison of a dictionary element by name.
param ItemName;
#rus Создает именованный элемент
param ItemName;
Creates the named element
param ItemName;
Creates the named element
#rus Класс DictionaryPtr предназначен для хранения и быстрого
#rus поиска именованых (без дубликатов имен) элементов.
#rus Имена - указатели.
#module root.baseclasses
Methods:
param ItemName, Item;
#rus Добавляет (переносит) элемент в словарь. Возвращает
#rus ссылку на добавленный элемент.
param ItemName;
#rus Ищет элемент в словаре, возвращает TRUE, если он найден,
#rus иначе - FALSE.
#rus Инициирует пустую таблицу.
param ItemName;
#rus Ищет элемент в словаре, возвращает ссылку на найденый
#rus элемент, если он найден, иначе - EMPTY.
param ItemName;
#rus Ищет эленент в словаре, возвращает указатель на найденый
#rus элемент, если он найден, иначе - EMPTY.
param ItemName;
#rus Удаляет элемент из словаря, возвращает TRUE
#rus если элемент удален, иначе - FALSE.
The DictionaryStr class is designed for storing and
quick search of named (without duplicate names) elements.
Names are strings.
#module root.baseclasses
Methods:
param ItemName, Item;
Adds (transfers) an element to a dictionary.
Returns a pointer to the added element.
param ItemName;
Searches an element in a dictionary,
returns TRUE if it is found; otherwise FALSE.
Initiates an empty table.
param ItemName;
Searches an element in a dictionary, returns
a pointer to the found element if it is found;
otherwise EMPTY.
param ItemName;
#rus Ищет эленент в словаре, возвращает указатель на найденый
#rus элемент, если он найден, иначе - EMPTY.
param ItemName;
Deletes an element from a dictionary,
returns TRUE if the element is deleted;
otherwise FALSE.
#module root.system.filesystem
The Dir class is included in the set of standard Pluk libraries which
provides the interaction with file system folders. Its function is to
isolate an application from the peculiarities of file system which is
applied to the current platform. The FD constant is defined within
this library. It determines the symbol that separates folder names.
This class is specified in the following manner:
class Dir {
DirName;
Files;
SubDirs;
};
Methods:
param mode;
Returns TRUE if the folder has the access mode specified via the mode
parameter;
Otherwise - FALSE.
The following mode parameter values are available:
ACCESS_EXIST - checks whether the folder exists,
ACCESS_WRITE - checks write rights,
ACCESS_READ - checks read rights,
ACCESS_READ_WRITE - check read-write rights.
param CheckSubDirs;
#rus Метод считает занимаемый объем. Если CheckSubDirs == TRUE, то включая поддиректории.
param Name;
Changes the working (current) folder to the folder whose name is
contained in the DirName field of the Dir object.
Returns TRUE and changes the contents of the DirName field if succeeded;
Otherwise - FALSE.
Changes the working (current) folder to the folder whose name is
contained in the DirName field of the Dir object.
Returns TRUE if succeeded; Otherwise - FALSE.
#rus Удаляет все поддиректории и файлы в данной директории.
#rus Возвращает TRUE, если все поддиректории и файлы удалось удалить.
#rus FALSE - иначе.
param dstName, [callbackFunc, callbackParams]
Copies a folder to another folder.
dstName Folder name to which all files (including sub-
folders) of the current folder must be copied.
callbackFunc Function which is called after copying of each
file. This function receives a reference to the
copied folder (current or its sub-folder), file
number in it (this number coincides with the file
access number of the Dir class methods: for
instance, Dir::FileName)and parameters specified
via the callbackParams parameter.
callbackParams Parameter passed to the function specified via the
callbackFunc parameter.
param DirName;
#rus Метод создает директорию по имени DirName.
#rus В отличие от метода Create(void),
#rus если отсутсвуют промежуточные родительские директории
#rus то они тоже создаются.
Cretes the folder which name is contained in the DirName field of the
Dir object. Returns TRUE if succeeded; Otherwise - FALSE.
Constructor of the object that points to the working folder at the
specified disk, the folder's name is written down to the DirName field
(for UNIX the created object coincide with the object created by the
Dir::Dir(void) constructor).
param Name;
Constructor of the object that points to the folder which may not
exist. The Name parameter represents the folder name and is written
down to the DirName field.
Constructor of the object that points to the working (current) folder,
the folder's name is written down to the DirName field.
param n;
Returns the attribute of the file that has the number specified via
the n parameter from the list of folder files.
param n;
Returns modification date and time of the file that has the number
specified via the n parameter from the list of folder files (object of
the TimeDate class).
param n;
Returns the name of the file that has the number specified via the n
parameter from the list of folder files.
param n;
Returns the size of the file that has the number specified via the n
parameter from the list of folder files.
Returns modification time of the folder (object of
the TimeDate class).
Returns the number of files in the folder (the folder should be
written beforehand, for more information see the Dir::Read method).
Returns the number of subfolders in the folder (the folder should be
written beforehand, for more information see the Dir::Read method).
Returns the size of the folder.
param Mask;
Reads the contents of the folder which name is contained in the
DirName field of the Dir object. At that the name of the files that
correspond to the mask specified by the Mask parameter are read out.
Returns TRUE if succeeded; Otherwise - FALSE.
Reads the contents of the folder which name is contained in the
DirName field of the Dir object.
Returns TRUE if succeeded; Otherwise - FALSE.
Deletes the folder whose name is contained in the DirName field of the
Dir object. Returns TRUE if succeeded; Otherwise - FALSE.
param FileIndex, ReadPermition, WritePermition;
Sets file access mode.
param FileIndex, Attribute;
Sets file attributes.
param n;
Returns modification time of the subfolder that has the number specified
via the n parameter from the list of folder subfolders (object of
the TimeDate class).
param n;
Returns the name of the subfolder that has the number specified via
the n parameter from the list of folder subfolders.
param n;
Returns the size of the subfolder that has the number specified via
the n parameter from the list of folder subfolders.
Methods:
- Close(void)
- DirectFile(refer object BaseString)
- Open(void)
- Write(refer object String)
- ~DirectFile(void)
#module root.system
It is designed for substitution of destroyed ones for the objects for
which pointers exist.
#module root.baseclasses
The FBuffer class is designed for storing large-scale arrays of binary
information shared between processes.
This class replicates the interface of the Buffer class but in contrast
to the Buffer class the FBuffer class is a string which is read from a
file and is written to a file. This class I srealised on basis of a common
file which can not be shared between the processes.
The following fields are defined in this class:
FileName File name.
The following global fields are defined in this class:
ToConnectOnCreate TRUE - immediately after creating an object
data is located in memory, FALSE - immediately
after creating an object data is located in
a file.
The default value is TRUE.
Methods:
Clears a buffer with zero.
Places buffer data in memory.
param src, dstOffset, srcOffset, size;
Copies a buffer part to a buffer.
src Initial buffer.
dstOffset Offset in the destination buffer beginning
with which the part of the initial buffer is
inserted.
srcOffset Offset of the copied part in the initial
buffer.
size Size of the copied part.
param src, dstOffset;
Copies a string to a buffer.
src Initial string.
dstOffset Offset in the destination buffer beginning
with which the initial string is inserted.
param src, dstOffset, srcOffset, size;
Copies a string part to a buffer.
src Initial string.
dstOffset Offset in the destination buffer beginning
with which the part of the initial string is
inserted.
srcOffset Offset of the copied part in the initial
string.
size Size of the copied part.
param isLazy;
Places buffer data in a file and releases memory.
isLazy Specifies whether memory releasing
will be held in the "idle" mode.
Comments
The isLazy parameter is not in effect and implemented for
the compatibility with the Buffer class where the
Buffer::DisconnectBuffer method supports such a parameter.
After calling this method the object is a string
(as it was before) but its size equals to 0.
Places buffer data in a file and releases memory.
Comments
After calling this method the object is a string
(as it was before) but its size equals to 0.
param s;
Creates a buffer.
s Object of the current class whose
copy is being created.
param len;
Creates a buffer.
len Buffer length.
param srcOffset, size;
Gets a sub-string from a buffer.
srcOffset Offset of the obtained string in the buffer.
size Size the obtained string.
Checks whether buffer data is located in memory.
Returns TRUE if data is located in memory,
FALSE if data is located in a file.
param ch;
Sets all buffer bytes to a specific value.
ch Specified value.
Deletes a buffer.
#module root.system.filesystem
The File class includes all the file manipulation functions supported
by Pluk.
class File {
FileName;
IsLocked;
LockOffset;
LockSize;
};
Methods:
param type;
Returns file access rights: TRUE - access enabled, FALSE - access
denied. The type parameter specifies access type. Available values of
the type parameter include:
ACCESS_EXIST - file existence checking,
ACCESS_WRITE - write access checking,
ACCESS_READ - read access checking,
ACCESS_READ_WRITE - read/write access checking.
Closes file in terms of operating system. Returns operating system response
code or -1 if this file was not opened.
param NewFileName;
Copies file whose name is contained in the FileName field to file
whose name is passed via the NewFileName parameter.
param Name;
Constructor which creates the File object with the name specified via
the Name parameter. The File object creation does not mean file
creation or opening in terms operating system. Just the control
structure in terms of Pluk is created. The name form the Name
parameter is copied to the FileName field of the File object.
Returns the time of the last access to file.
Reads file attributes.
Available attribute values are obtained via OR merging of the following
constants:
FILE_ATTRIBUTE_READONLY
FILE_ATTRIBUTE_HIDDEN
FILE_ATTRIBUTE_SYSTEM
FILE_ATTRIBUTE_ARCHIVE
FILE_ATTRIBUTE_NORMAL
Returns file creation time.
Returns file length.
Returns the time of the last file modification.
Return file version as four numbers.
If version resource are absent in file return EMPTY.
If file not exist rise error ERR_FILE_OPEN_ERROR.
Reads a string from text file. The end of line character is truncated.
Reads arbitrary object in terms of Pluk from file. Unserialization is
performed automatically (for more information see the
Pluk::Unserialize method). Raises the "Unserialize Error" error in
case of error.
param offset, size;
Forbids (locks) part of the file for access from other processes.
The offset parameter determines offset within the file, the size
parameter determines the number of protected bytes.
param Destination, DelayUntilReboot;
Same as File::Move( object String, FALSE )
param Destination, DelayUntilReboot;
Destination - новый путь и имя для файла;
DelayUntilReboot - если установлен, то перемещение будет отложено до перезагрузки системы;
Move file to Destination despite file is locked by system.
If DelayUntilReboot is true than Destination can be emplty string.
In this case file will be deleted after system reboot.
param type;
Opens (or creates) file in terms of operating system, its name is
acquired from the FileName field of the File object. The type
parameter indicates in which manner the file is opened. Available
values include:
"wt" - open (create) text file for writing. If this file already
exists then old content is destroyed. If opening
(creation) fails, "File open error" error is raised.
"rt" - open text file for reading. If this file is missed then
"File open error" error is raised.
"at" - open (create) text file for writing. If this file already
exists then old content is saved. The pointer of writing
position is placed the end of file. If opening(creation)
fails, "File open error" error is raised.
"w+t" - open (create) text file for writing and reading. If this
file already exists then old content is destroyed. If
opening (creation) fails, "File open error" error is
raised.
"r+t" - open text file for writing and reading. If opening fails
(for instance, file is missed), "File open error" error is
raised.
"wb" - open (create) binary file for writing. If this file
already exists then old content is destroyed. If opening
(creation) fails, "File open error" error is raised.
"rb" - open binary file for reading. If such file is missed,
"File open error" error is raised.
"ab" - open (create) binary file for writing. If this file
already exists then old content is saved. The pointer of
writing position is placed the end of file. If opening
(creation) fails, "File open error" error is raised.
"w+b" - open (create) binary file for writing and reading. If
this file already exists then old content is destroyed. If
opening (creation) fails, "File open error" error is
raised.
"r+b" - open binary file for writing and reading. If opening
fails (for instance, file is missed), "File open error"
error is raised.
param format;
The File::Printf method writes the formatted text to file. The method
parameters are similar to the Printf global function parameters.
param line;
Writes the string specified via the line parameter to text file. If
the end of line character is missed, it is added automatically.
param var;
Writes the variable specified via the var parameter to file.
Variable serialization is performed automatically when writing.
(for more information see the Pluk::Serialize method).
param len;
Returns an object of the String class to which a certain number of
bytes specified via the len parameter was read out from the file. The
number of bytes is.
If file does not include the necessary number of bytes, then all bytes
to the end of file are read out. Returns String of 0 length at the end
of file.
Raises the "File read error" error in case of error.
Deletes file whose name is contained in the FileName field. Returns
TRUE if succeeded; Otherwise - FALSE.
param NewName;
Renames file to the value specified via the NewName parameter.
Returns TRUE if succeeded; Otherwise - FALSE.
param where, pos;
Positions the read/write pointer within the file. The where parameter
determines from which position the new one is counted, the pos parameter
determines the new position value.
Available values of the where parameter include:
"SEEK_SET" - position is counted from the beginning of the file,
"SEEK_END" - position is counted from the end of the file,
"SEEK_CUR" - position is counted from the current position within
the file.
param ReadPermition, WritePermition;
Sets file access mode.
param ModifTime;
Sets the time of the last access to file equal to the ModifTime
parameter value.
param Attribute;
Sets file attributes.
Available attribute values are obtained via OR merging of the following
constants:
FILE_ATTRIBUTE_READONLY
FILE_ATTRIBUTE_HIDDEN
FILE_ATTRIBUTE_SYSTEM
FILE_ATTRIBUTE_ARCHIVE
FILE_ATTRIBUTE_NORMAL
param ModifTime;
Sets the time of the last file modification equal to the ModifTime
parameter value.
Returns the position of the read/write pointer within the file.
Removes file protection that was set by the File::Lock method.
param buffer;
Writes the contents of the buffer specified via the buffer parameter
to file. Raises the "File write error" error in case of error.
param buffer, len;
Writes a certain number of bytes specified via the len parameter from
the buffer specified via the buffer parameter to file. Raises the
"File write error" error in case of error.
The File object destructor. When the object is destroyed, the file in
terms of operating system is closed (if it was opened).
#module root.system
The synonym of the func key word, it is designed for creation of
the classes which are function descendants.
#module root.system
The Idle class allows the activating/deactivating of the Idle
flag of the Pluk-machine together with restoring of the old
value after deleting of an object of the current class.
Methods:
param isIdle;
Creates a n object by activating/deactivating the Idle flag.
isIdle TRUE - activates flag,
FALSE - deactivates flag.
Creates a n object by activating the Idle flag.
Deletes an object by setting the Idle flag to
the value that were before the constructor call.
Methods:
#module root.system
International settings that depend on the language.
The following fields are defined in this class:
Code Language code in the form of several Latin letters.
The following global fields are defined in this class:
CodeToName Translation of the language code to the full
language name.
It is the vector of pairs: language code,
full language name.
Only supported languages are enumerated here.
Methods:
param Code;
Return localization name by localization code.
Creates international settings for the language whose code is written
in the Pluk.ini configuration file, in the Locale section, the Code key.
#module root.common
The Money class is designed for currency input/output.
The amount of money is stored with 4 digits after point precision.
Methods:
Returns an amount stored in an object.
Returns the amount of double type.
param amount;
Creates an object for the specified amount.
amount Amount.
param amount;
Creates an object for the specified amount in the text form.
amount Amount in the American notation
(for instance, 100,510,123.11).
param amount, isEuro;
Creates an object for the specified amount in the text form.
amount Amount.
isEuro FALSE - if the amount is in the American notation
(for instance, 100,510,123.11), TRUE - if the amount
is in the European notation (for instance,
100.510.123,11).
Creates an object for 0 amount.
param isEuro;
Prints an object.
Returns the string that represents the amount.
isEuro FALSE - if the amount is in the American notation
(for instance, 100,510,123.11), TRUE - if the amount
is in the European notation (for instance,
100.510.123,11).
Prints an object.
Returns the string that represents the amount in the American notation
(for instance, 100,510,123.11).
#module root.common
#rus Если объект имеет имя, то можно его сделать наследником этого класса.
#rus Многие методы других классов созданы с рассчетом на это.
#rus Например Vector::FindName, Vector::FindAllName.
#rus Поля объекта:
#rus name Имя.
Methods:
#rus Возвращает имя.
param nm;
#rus Создает объект.
#rus Параметры:
#rus nm Имя.
#rus Создает объект.
#rus Имя равно EMPTY.
param nm;
#rus Устанавливает имя.
#rus nm Имя.
#module root.system
The synonym of the number key word, it is designed for creation of the
classes which are number descendants.
Methods:
The interface designed for type conversion to char. It must
overwritten for the descendant.
The interface designed for type conversion to double. It must
overwritten for the descendant.
The interface designed for type conversion to float. It must
overwritten for the descendant.
The interface designed for type conversion to int. It must overwritten
for the descendant.
#module root.communication.network
This class is designed for the encapsulation of a network software-to-software
interaction in the manner of sockets stream connection. There are two types of
sockets in this scheme - servers and clients. Server "listens" to the network
and waits for a client's call.
When a client applies for a service, server creates a socket to connect
to a client and keeps listening to the network and waits for another client.
Server object "listens" to the network and waits for a connection. When
somebody tries to connect, it creates its duplicate which is placed in
the list of active server objects.
The OnConnect(int) method is called before the duplicate creation.
The duplicate is created if the OnConnect method returns TRUE; Otherwise
it is supposed that a user "manually" creates the object of server
connection using the client's connection identifier which is passed to
the OnConnect method as a parameter. This duplicate server or "manually"
created connection object supports the connection with the client.
When client's data or queries are received the following methods are called:
(OnReceive(void), OnRequest(any), OnDisconnect(void)). You can rewrite event
handlers to act in a certain way on different client's actions.
It should be mentioned that the established connection is duplex and queries
(just as data) can be send both from the client to the server and backward.
The server duplicate object is destroyed automatically when the connection
is lost. The initial server keeps record of established connections.
When the maximum number of connections is reached, any attempt to establish
connection (connect to the server) is rejected. When the object which "listens"
to the network is destroyed, all its duplicates are also destroyed,
all corresponding connections are broken and resources are released.
The listed properties (duplicates creation) are inherited when the descendants
of the PCom class are created. If you have made the descendant class
MyCom : PCom {}; and use it as a server, duplicate objects are of MyCom type.
Take into account that duplicate objects of the MyCom class are created by
the Constructor which refers to object MyCom and they receive the reference
to the "main server" as a parameter.
That is why you should write the appropriate Constructor.
Client object tries to establish connection and is used immediately for
interaction (without duplicates) if succeeded.
//---------------------------------------------
class PCom {
Service;
Topic;
Sync;
};
The contents of the Service and Topic fields determine service and topic
which the server object provides. It should be noted that these two fields
either contain strings (for server) or are not initiated for a client.
As a matter of fact the subdivision into the service and topic is very relative.
We just decided that two strings are enough to specify a server.
Methods:
- CheckContact(void)
- ConnectTo(object String, object String, object String, object String, object String)
- ConnectTo(object String, object String, object String, object String, object String, object String)
- Disconnect(void)
- ExecAtConnectAccount(object String, object String, boolean)
- ExecAtConnectAccount(object String, object String, boolean, boolean)
- GetConnectAccount(void)
- GetContact(number)
- GetInQueueLen(void)
- GetInVolume(void)
- GetMaxInTraffic(void)
- GetMaxOutTraffic(void)
- GetNumberOfConnections(void)
- GetNumberOfFreeConnections(void)
- GetOutQueueLen(void)
- GetOutVolume(void)
- GetRemoteHostName(void)
- GetTimeout(void)
- Listen(number)
- OnConnect(int)
- OnDisconnect(void)
- OnReceive(void)
- OnRequest(refer any)
- PCom(copy)
- PCom(int)
- PCom(refer object PCom)
- PCom(refer object String, refer object String)
- PCom(void)
- Receive(void)
- Request(refer any)
- Return(refer any)
- SetNumberOfFreeConnections(int)
- SetTimeout(number)
- StopWaiting(void)
- Transmit(refer any)
- ~PCom(void)
This method is called both for a client and a duplicate server.
This method returns TRUE if the connection is established; Otherwise - FALSE.
The purpose of this method is to check the connection activity, because
the situation, when the other side has closed the connection
(for instance, abnormal termination) but the notification about closing
was not sent, may occur.
If the connection is lost the duplicate server is destroyed.
param Address, Account, Password, Service, Topic;
This method is called for a client object. Client object tries to establish
connection with the server object when this method called.
The Address parameter contains the network (TCP/IP) address of
the computer with which the client tries to establish connection.
The Account parameter contains the user name,
the Password parameter contains the user password.
These strings may be empty when working on a single computer.
This method returns TRUE if succeeded; Otherwise - FALSE.
Calling of this method brakes the connection. If this method is called
from server, the duplicate object, for which it was called, is destroyed.
This method returns TRUE when the other side successfully notifies about
the release; Otherwise - FALSE.
param Application, Arguments, Hide;
Launches the application specified via the Application parameter with
parameters specified in the Arguments parameter using the name and password
of the connection partner. It is convenient when developing server application
which launches processes that service the client under his/her name and
password. Only server object has rights to call this method from the
OnConnect method.
The Hide parameter specifies visibility of the main window of the launched
application.
Returns the name of the connection partner account.
Only server object has rights to call this method from the OnConnect method.
param n;
This method is called for a server object. Returns a pointer to the server
duplicate object that serves the connection specified via the n parameter.
Returns the length of the buffered receive queue.
Measurement units are objects.
Returns the number of bites received via the transmission channel
per communication session
Returns input peak transfer rate (bite/sec).
Returns output peak transfer rate (bite/sec).
This method is called for a server object. Returns the number of
connections established with the server.
This method is called for a server object. Returns the number of
vacant (idle) server connections.
Returns the length of the buffered transfer queue.
Measurement units are objects.
Returns the number of bites transferred via the transmission channel
per communication session.
Returns the network name of thew remote host.
Returns specifed connection latency time (sec).
param nConnect;
This method is called for a server object to begin the network "listening".
The nConnect parameter determines the maximum number of connection for
this server.
param PeerID;
This method is called when the client's side sends the connection request
to the server. If you are not satisfied with the creation of the connection
object within the server object list, you can rewrite this method. In the
rewritten method create the connection object using the PCom(PeerID)
Constructor and return FALSE in order to prevent creation of the connection
object within the server object list.
This method is called when the connection partner calls the Disconnect method,
that is when the connection is broken. Rewrite this method in the descendant
class if you want to perform any actions on the connection closing.
This method is called when receiving data. Data is zeroised by default.
In order to use data the OnReceive method should be rewritten in the PCom
class descendant.
(See PCom::Receive()).
param request;
This method is called when receiving request. The request parameter contains
data which was sent within the request (for more information see
the PCom::Request(any) method). The return value of this method is sent
back over the network as the request answer.
Rewrite this method in the descendant class in order to create server
which reacts on the inquiries.
Constructor which raises an error when an attempt of PCom object copying
is made.
param PeerID;
Constructor which creates an object which is linked to the client
whose connection identifier is equal to the PeerID parameter.
It is designed to create the object of server connection "manually".
To call this Constructor you should use the PeerID parameter which is
received as a parameter in the OnConnect(int)method. The object has
the established connection right after finishing the Constructor if succeeded.
param Src;
Constructor which creates an object with not initiated Service and Topic fields
(in general - client object or duplicate server).
The connection from the Src object is not inherited.
If the Constructor is called by the "main server" to create duplicate server,
the "main server" will link up the connection to the object AFTER finishing
the Constructor.
The Src parameter is a reference to the "main server" when creating a
duplicate server.
param aService, aTopic;
Constructor which creates an object with initiated Service and Topic
fields (in general - server object).
Constructor which creates an object with not initiated Service and Topic
fields (in general - client object or duplicate server).
Returns data which was either send by the PCom::Transmit(refer any) method or
received as a return from the OnRequest method in the out-of-sync state over
the network. In any case this method should be called in order to get data
after calling the OnReceive method.
param var;
This method is called both for a client and a duplicate server. Transfers
the var variable over the network in the self-containded (serialized) format.
If the Sync field is set to TRUE, this method works in the in-sync state
and waits for the end of transmission notification from the other side.
The PCom::Request(refer any) method returns answer from the other side.
If it is impossible to bring request message the OnDisconnect method is called.
If the Sync field is set to FALSE, this method works in the out-of-sync state
and immediately returns right after the var object is enqueued on transmission.
Returns TRUE if the connection exists; Otherwise - FALSE.
A user can destroy the var object right after returning from the function
because the serialized duplicate of the var object is stored in the
transmission queue. The request answer calls the OnReceive(void) method.
Data which is sent in such a way invokes the recipient's OnRequest(any)method.
param Data;
This method is called from the OnRequest method in order to
return the result to a client before (for more information see
the PCom::Request(any)method) processing the request. The Data parameter
is passed to the client as the return of the PCom::Request(any) method.
In this case the return from the OnRequest method is not performed.
param NumberFreeConnection;
This method is called for a server object. Sets (changes) the number of
vacant (idle) server connections.
param t;
Sets connection latency time t (sec).
Calling of this method results in the idle termination when in the
in-sync request (or when waiting for the network connection establishing).
When in idle mode Pluk passes messages from the window system. That is why
it is possible to set window timer and to stop waiting for the answer on
the in-sync request, when the message from the timer is received.
param var;
This method is called both for a client and a duplicate server. Transfers
the var variable over the network in the self-containded (serialized) format.
If the Sync field is set to TRUE, this method works in the in-sync state and
waits for the end of transmission. Returns TRUE if succeeded;
Otherwise - FALSE.
If the Sync field is set to FALSE, this method works in the out-of-sync
state and immediately returns right after the var object is enqueued on
transmission.
Returns TRUE if the connection exists; Otherwise - FALSE.
A user can destroy the var object right after returning from the function
because the serialized duplicate of the var object is stored in
the transmission queue. Data which is sent in such a way invokes
the recipient's OnReceive(void) method.
Destructor which closes connection (it notifies the other side about
closing and releases socket).
#module root.communication.network
The PDebCom class is a descendant of the PCom class and intended for
communication purposes between the debugger and the debugged program.
On launching the Pluk application with the /debug key an object of the
PDebCom class is automatically created. This object is linked to a Pluk
machine and is not accessible from the level of the executed Pluk program.
This object is a server and allows only one connection. The peculiarity of
this object is in the fact that it stops the current Pluk program execution
when receiving requests and execute this request. At the same time it has
access to all debug functions of the Pluk object.
The PDebCom client that connects to the PDebCom server of the debugged
program is created in the debug program in order to create a debugger.
The debugger can control the behavior of the debugged Pluk program and
get all the information about its status by sending appropriate
request/commands.
The PDebCom server interpret reports which are sent by
the PCom::Transmit(refer any) method in a particular way. These reports
contain vectors which consist of two numbers (command and parameter).
<<PCD_STOP, 0>> - Switches Pluk machine to the "stop" state,
and command idle.
<<PCD_CONTINUE, 0>> - Quits Pluk machine from the "stop" state. The
execution of the stopped program is continued.
<< PCD_STEP, 0>> - At this command Pluk machine which is in
the "stop" state executes code of one string
of the source program text and returns to the
"stop" state. If this string contains function
call then program stop is performed right after
entering this function.
<<PCD_BLOCK, 0>> - At this command Pluk machine which is in the
"stop" state executes code of one string of the
source program text and returns to the "stop" state.
If this string contains function call then this
function is executed without program stop.
<<PCD_BREAK, 0>> - At this command Pluk machine breaks the currently
executed function and returns to the invoking function.
<<PCD_END, 0>> - At this command the Pluk application is closed.
<<PCD_STOPONERROR, TRUE>> - At this command Pluk machine switches
to the "error stop " state, that is if an error
occurs then Pluk machine switches to the "stop"
state right after error information but before
jump to the error handle code.
<<PCD_STOPONERROR, FALSE>> - At this command Pluk machine toggles
off the "error stop" state.
class PDebCom : PCom {
};
Methods:
- Debug(object String, object String, object String, object String)
- Debug(object String, object String, object String, object String, object String)
- GetActiveThread(void)
- GetDebugThread(void)
- GetStatus(void)
- PDebCom(void)
- Run(refer object String)
- Run(refer object Vector)
- RunFile(refer object String)
- RunOnAbsLevel(refer object String, number)
- RunOnAbsLevelSys(refer object String, number)
- RunOnAbsLevelSysSafe(refer object String, number)
- RunOnAbsLevelSysSilent(refer object String, number)
- RunOnLevel(refer object String, number)
- RunOnLevelSys(refer object String, number)
- RunOnLevelSysSafe(refer object String, number)
- RunOnLevelSysSilent(refer object String, number)
- RunSys(refer object String)
- RunSys(refer object Vector)
- RunSysSafe(refer object String)
- RunSysSafe(refer object Vector)
- RunSysSilent(refer object String)
- RunSysSilent(refer object Vector)
- SetActiveThread(int)
- StartUp(object String, object String, object String, object String, object String, object String)
- StartUp(object String, object String, object String, object String, object String, object String, object String)
- Update(refer object String, int, refer object String)
- UpdateFile(refer object String)
param Address, Account, Password, Application;
Establishes connection with server object of the debugged application.
Returns TRUE if succeeded; Otherwise - FALSE.
Returns the number that represents the binary OR combination of all
status flags (fro more information see PCD_STATUS_... constants) of
the debugged program.
Constructor which creates an object with not initiated Service and Topic
fields (in general - client object or duplicate server).
param Program;
Called from the client object. Forces the debugged program to interrupt
the current work and execute function whose text is defined in the string
of the Program parameter.
If the Sync field is set to TRUE, this method works in the in-sync state
and waits for the end of the Program function. The return of the Program
function is sent back and is represented as the return
PDebCom::Run(refer object String) method. If it is impossible to bring
request message the OnDisconnect method is called.
If the Sync field is set to FALSE, this method works in the out-of-sync
state and immediately returns right after the Program function is enqueued
on transmission.
Returns TRUE if the connection exists; Otherwise - FALSE.
A user can destroy the Program parameter string right after returning from
the function because the serialized duplicate of the Program parameter string
is stored in the transmission queue. Getting of the Program execution result
leads to the call of the OnReceive method.
param ProgAndPar;
The PDebCom::Run(refer object Vector) method works similarly to
the PDebCom::Run(refer object String) method, at the same time it
is intended that the first vector element contains function body,
other elements contain parameters for calling this function.
param FileName;
The method results in execution of the file specified via the FileName
parameter by the debugged program.
param Program, level;
This method executes code of the function defined in the Program
parameter at the stack nesting level specified via the level parameter.
In that way the debugger has an opportunity to read and modify local
variables that belong to functions which lies deeper in the call stack.
It is the complete analog of
the PDebCom::RunOnLevel(refer object String, number) method,
only that before the execution the StopOnError flag is cleaned.
It is the complete analog of the PDebCom::Run(refer object String) method,
only that before the execution the StopOnError flag is cleaned.
It is the complete analog of the PDebCom::Run(refer object Vector) method,
only that before the execution the StopOnError flag is cleaned.
param Address, Account, Password, Application, Project, Arguments;
Called from the client object. Calling of this method results in breaking of
the current connection and launching the application specified via
the Application parameter with /debug and /pProject keys. The first key
forces the application to create the PDebCom server, the second one forces
the application to execute project from the file whose name is specified via
the Project parameter. When execution is performed on a single machine the
Address parameter string may be empty. If the Project parameter string is
empty, the application executes built-in project. If the built-in project
does not exist, the application executes the project defined in the pluk.ini
file. The Arguments parameter value is passed to the application as the
command line.
Returns "OK" string if succeeded.
param FileName, LineNumber, FuncBody;
Updates code which is defined in the FuncBody parameter,
it is assigned to the file specified via the FileName parameter
to the line specified via the LineNumber parameter. It means that
henceforward the debugged Pluk program will consider that the
appropriate code was successfully read from the file specified
via the FileName parameter beginning with the line specified via
the LineNumber parameter and was not received from the network.
param FileName;
This method calls the update of classes and methods specifications from
the file specified via the FileName parameter. The difference between
the update and execution is that if the class/method has been already defined,
an error is not raised but the specification is updated. Moreover, when
the class specification is updated, all existing class objects are not
destroyed but brought in accordance with the new specification. The same
operation is carried-out with all class descendants.
Methods:
- ConnectTo(object String, object String, object String, object String)
- ConnectTo(object String, object String, object String, object String, object String)
- GetClock(void)
- GetCommandLine(void)
- GetModuleName(void)
- GetProcID(void)
- GetStatus(void)
- PLogCom(void)
#module root.geometry
The POINT class represents a two-dimensional point and
is designed for work with planar images.
This class is specified as:
class POINT {
x;
y;
};
Methods:
param k;
This method multiplies a vector on the scalar specified via the k
parameter.
This method returns the scalar product of vectors.
param k;
This method multiplies a vector on the scalar specified via the k
parameter.
param n;
This method returns an object of the POINT class with the coordinates
obtained by shifting the point-recipient of '+' message on diagonal on
the value specified via the n parameter.
This method returns a point that represents the vector sum of two
points.
param n;
This method shifts the point-recipient of '+' message on diagonal on
the value specified via the n parameter. Returns a reference to the
recipient.
This method shifts the point-recipient of '+' message according to
vector sum with point-parameter. Returns a reference to the recipient.
param n;
This method returns an object of the POINT class with the coordinates
obtained by shifting the point-recipient of '-' message on diagonal on
the value specified via the -n parameter.
This method returns a point that represents the vector difference of
two points.
param n;
This method shifts the point-recipient of '-' message on diagonal on
the value specified via the -n parameter. Returns a reference to the
recipient.
This method shifts the point-recipient of '-' message according to
vector difference with point-parameter. Returns a reference to the
recipient.
param k;
This method divides a vector on the scalar specified via the k
parameter.
param k;
This method divides a vector on the scalar specified via the k
parameter.
This method gets the vector orientation angle relatively to the origin
of coordinates. The angle range is between 0 and 2 * PI.
This method gets the vector obtained from the current vector as its
mirror image relatively the straight line which passes the p1, p2
points.
#rus Возвращает вестор << a, b, c >> коэффициентов уравнения прямой, проходящей
#rus через эти точки ( a*x + b*y + c = 0 ).
This method gets the scalar of a vector.
This method gets the scalar of a vector.
param x, y;
Constructor of the point with (x, y) coordinates.
Constructor of the point with (0,0) coordinates.
This method gets the vector obtained from the current vector by its
rotation around the (0, 0) point on the a angle.
This method gets the vector obtained from the current vector by its
rotation around the o point on the a angle.
This method gets the vector obtained from the current vector using the
homothety relatively the o point with the ratio of similitude which is
equal to k.
#module root.geometry
The POINT3 class represents a three-dimensional point and
is designed for work with 3D graphic presentation.
This class I specified as:
class POINT3 : POINT {
z;
};
Methods:
param k;
This method multiplies a vector on the scalar specified via the k
parameter.
This method returns the scalar product of vectors.
param k;
This method multiplies a vector on the scalar specified via the k
parameter.
#rus Метод возвращает точку, являющуюся векторной суммой двух точек.
This method shifts the point-recipient of '+' message according to
vector sum with point-parameter. Returns a reference to the recipient.
This method returns a point that represents the vector difference of
two points.
#rus Унарный минус
This method shifts the point-recipient of '-' message according to
vector difference with point-parameter. Returns a reference to the
recipient.
param k;
This method divides a vector on the scalar specified via the k
parameter.
param k;
This method divides a vector on the scalar specified via the k
parameter.
This method gets the scalar of a vector.
This method gets the scalar of a vector.
Returns vector product.
#module root.system
The ParseTree class is designed for connecting to the Pluk-machine
semantic analyzer. The semantic tree of syntactically correct
construction (according to the Pluk language) can be obtained with its
help.
This class has the following fields that are accessible from Pluk
Type - contains the integer number from the group of constants:
TRST_CODE - "operator" node type
TRST_NAME - "name" node type
TRST_VALUE - "constant" node type
Name - variable name or code name ( in case of constant
it is EMPTY).
Value - constant value or input representation of code
(in case of name it is EMPTY).
Childs - vector that consists of ParseTree type objects
which are child relatively to the current one.
In case of terminal element it is an empty vector.
Methods:
param Dst, Offset;
Synthesizes the source code on basis of the parsed sub-tree.
Dst - string for the result creation
Offset - general code offset
Synthesizes the source code on basis of the parsed tree
Returns the synthesized text.
param Dst, Offset;
Synthesizes the source code of the block on basis of the parsed tree.
Dst - string for the result creation
Offset - offset for text formatting.
param Dst, Offset;
Synthesizes the source code on basis of the parsed sub-tree.
Dst - string for the result creation
Offset - offset for text formatting.
param Dst;
Synthesizes the source code of the sub-expression on basis of the
parsed sub-tree.
Dst - string for the result creation
param Func;
The method that builds the semantic tree of the function
specified via the Func parameter.
param Func;
The method that builds the semantic tree of the function
specified via the Func parameter.
param Func;
The method that builds the semantic tree of the function
specified via the Func parameter.
param Func;
The constructor that builds the semantic tree of the function
specified via the Func parameter.
param Func;
The constructor that builds the semantic tree of the function
specified via the Func parameter.
param Func;
The constructor that builds the semantic tree of the function
specified via the Func parameter.
Empty constructor.
Returns String that contains text representation of the tree. <EndComment>
This operator provides access to the N child node of the first level
#module root.system
One global Pluk object of the Pluk class always exists in Pluk. The
Pliuk class does not have class members and its methods provides
access to the set of special and general-duty functions which can be
called system functions.
Methods:
- *(number, refer object BigTime)
- *(number, refer object POINT)
- *(number, refer object POINT3)
- AddClassMembers(object String, object Vector)
- AddMembers(object String, object Vector)
- AddParents(object String, object Vector)
- AllowIdle(boolean)
- CGetError(void)
- CGetErrorEx(void)
- CRegError(refer object String)
- CRegError(refer object String, refer object String)
- CSetError(refer object String)
- CSetError(refer object String, refer any)
- CheckFunc(refer rfunc)
- CheckFunc(refer sfunc)
- CheckLogin(object BaseString, object BaseString, object BaseString)
- ClearBreakPoints(void)
- ClearCode(void)
- ClearLastErrorCode(void)
- CodePassword(object String)
- Compress(refer any)
- CopyResource(object String, object String)
- Decode(refer object String, refer object String)
- Decompress(refer object String)
- Delay(number)
- Encode(refer any, refer object String)
- Exec(object BaseString, boolean, boolean, ...)
- ExecAsUser(object BaseString, boolean, object BaseString, refer object BaseString, object BaseString, ...)
- FileOf(refer func)
- FlushIdle(void)
- FormatCode(refer object String)
- FormatCode(refer object String, int)
- FormatCode(refer rfunc)
- FormatCode(refer sfunc)
- Free(object String)
- FreeResourceDLL(void)
- GetBreakPointsList(refer rfunc)
- GetBreakPointsList(refer sfunc)
- GetBreakPointsListIP(refer rfunc)
- GetBreakPointsListIP(refer sfunc)
- GetClassComment(refer object String)
- GetClassFileName(refer object String)
- GetClassLineNumb(refer object String)
- GetClassList(boolean)
- GetClassList(refer object String, boolean)
- GetClassList(void)
- GetClassMemberList(refer object String)
- GetCodeLen(refer rfunc)
- GetCodeLen(refer sfunc)
- GetCodeName(int)
- GetCodeStat(refer rfunc)
- GetCodeStat(refer sfunc)
- GetComment(refer func)
- GetConstList(void)
- GetCurLineOnAbsLevel(int)
- GetCurLineOnLevel(int)
- GetCurrentProcessData(void)
- GetDLLList(void)
- GetDLLMethodsSpec(object String)
- GetDiskFreeSpace(object String)
- GetEnvVar(object BaseString)
- GetEnvironment(void)
- GetError(void)
- GetErrorText(int)
- GetFrameSize(int)
- GetFreeMem(void)
- GetFuncList(number)
- GetFuncOnAbsLevel(int)
- GetFuncOnLevel(int)
- GetHomePath(void)
- GetIDName(int)
- GetIPOnAbsLevel(int)
- GetIPOnLevel(int)
- GetMemberList(refer object String)
- GetMemoryUsage(void)
- GetMethodList(refer object String)
- GetMethodList(refer object String, boolean)
- GetModuleList(void)
- GetModuleName(object String)
- GetNameID(object String)
- GetNameOfLoadingDLL(void)
- GetNumbParents(refer object String)
- GetNumbPointers(refer any)
- GetNumbThreads(void)
- GetNumberActiveObjects(void)
- GetNumberInactiveObjects(void)
- GetOSVersion(void)
- GetObjectByID(int)
- GetObjectID(refer any)
- GetParentName(refer object String, int)
- GetParentsList(refer object String)
- GetPlukAllocatorStat(void)
- GetPriority(void)
- GetProcessID(void)
- GetProcessList(void)
- GetProjectName(void)
- GetRCodeLen(refer rfunc)
- GetReferList(refer func)
- GetResDLLName(void)
- GetSerializedSize(refer any)
- GetStackDepth(void)
- GetStackList(int)
- GetStackList(void)
- GetStackVarFromFrame(int, int)
- GetStackVarFromFrame(int, int, int)
- GetThreadID(void)
- GetThreadList(void)
- GetThreadName(int)
- GetThreadName(void)
- GetThreadNameList(void)
- GetUUID(void)
- GetUserName(void)
- GetVarList(int)
- GetVarListOnAbsLevel(int)
- GetVersion(void)
- HasClassMember(refer object String, refer object String)
- HasMember(refer object String, refer object String)
- HideMainWindow(boolean)
- Idle(void)
- InitPlukAllocator(int, int, int)
- InitPlukObjAllocator(int, int)
- IsClass(refer object String)
- IsClassInheritFrom(refer object String, refer object String)
- IsCompressed(refer object String)
- IsConst(refer object String)
- IsGlobalFunc(refer object String)
- IsGlobalVar(refer object String)
- IsInheritFrom(refer any, refer object String)
- IsMethod(refer object String, refer object String)
- IsMethod(refer object String, refer object String, boolean)
- IsRealCodeUsed(void)
- IsRefer(refer any)
- IsSerialized(refer object String)
- KillProcess(int)
- KillThread(int)
- LineOf(refer func)
- Load(object String)
- LoadCDLLMethods(object String)
- LoadResDir(object String)
- LoadResourceDLL(object String)
- MyName(void)
- MyPointer(void)
- MySource(void)
- NameOf(refer any)
- OnClose(void)
- OpenDoc(object String)
- OpenThread(func, object Vector)
- OpenThread(object String, func, object Vector)
- PrintBCode(refer rfunc)
- PrintBCode(refer sfunc)
- PrintVersion(void)
- ReLoad(object String, object String)
- RemoveClassMembers(object String, object Vector)
- RemoveMembers(object String, object Vector)
- RemoveParent(object String, object String)
- RemoveParents(object String, object Vector)
- RunFile(object String)
- RunNonPlukFile(object String, object String)
- RunOnOtherThread(int, refer object Function, refer object Vector)
- SaveCode(refer rfunc, refer object String)
- SaveCode(refer sfunc, refer object String)
- SaveRCode(refer rfunc, refer object String)
- SaveTree(refer rfunc, refer object String)
- SaveTree(refer sfunc, refer object String)
- SendMessageToAllObjects(refer object String, refer object String, refer ...)
- SendMessageToClassGroup(object String, object String, refer ...)
- Serialize(refer any)
- SerializeToFile(refer any, refer object BaseString)
- SetBreakPointsList(refer rfunc, refer object Vector)
- SetBreakPointsList(refer sfunc, refer object Vector)
- SetBreakPointsListIP(refer rfunc, refer object Vector)
- SetBreakPointsListIP(refer sfunc, refer object Vector)
- SetClassComment(refer object String, refer object String)
- SetComment(refer func, refer object String)
- SetError(number)
- SetError(number, refer any)
- SetExclusiveCriticalSectionUsage(boolean)
- SetExitCode(int)
- SetModuleName(object String, object String)
- SetPriority(int)
- SetReferList(refer func, refer object Vector)
- SetTempBreakPoint(refer rfunc, int)
- SetTempBreakPoint(refer sfunc, int)
- SetTempBreakPointIP(refer rfunc, int)
- SetTempBreakPointIP(refer sfunc, int)
- SetThreadFinalizeProc(func)
- ToggleBreakPoint(refer rfunc, int)
- ToggleBreakPoint(refer sfunc, int)
- ToggleBreakPointIP(refer rfunc, int)
- ToggleBreakPointIP(refer sfunc, int)
- UUIDFromText(object String)
- UUIDToText(object String)
- UnSerialize(refer object String)
- UnSerializeFromFile(refer object BaseString)
- UnSerializeFromFile(refer object BaseString, boolean)
- Update(object String)
- UpdateFile(object String)
- UsePlukAllocator(boolean)
- UseRealCode(boolean)
- VarFromResource(refer object String, refer object String, refer object String)
- WaitEvent(void)
param k;
This method multiplies the scalar specified via the k
parameter on the p vector.
param k;
This method multiplies the scalar specified via the k
parameter on the p vector.
param name, members;
Adds new global fields to the class specification.
name Class name.
members Vector of global field names which are to be added.
param name, members;
Adds new fields to the class specification.
name Class name.
members Vector of field names which are to be added.
param name, parents;
Adds new parents to the class specification.
name Class name.
parents Vector of parent class names which are to be added.
param BoolFlg;
Sets the Idle flag value according to the BoolFlg parameter.
If the Idle flag is set to TRUE then propagation of Windows messages
to the application during execution of Pluk-functions is allowed.
Returns the previous value of the Idle flag.
Note 1:
When the Idle flag is set the message queue is inquired between each
pair of Pluk-processor commands. If messages are encountered in a
queue, they are executed as interrupts that is the current state is
placed to the stack, the Idle flag is set to FALSE and the message
handler is called. When the message handler operations are completed,
the Pluk-machine state is restored from the stack, the Idle flag is
set to TRUE and the execution of the interrupted code continues.
Node 2:
In the completely compiled code the Idle flag does not work. If it is
necessary to allow propagation of Windows messages in the completely
compiled code the Pluk::Idle(void) method should be called.
Note 3:
In Windows 3.xx messages are propagated not only to the current
application but also to other applications that realizes preemptive
multitasking.
Returns the string (text) of the last raised error in the system.
The method is designed to obtain the error string from the onerror
block of errors interception (for more information see the description
of the Pluk language).
Returns the additional string (text) delivered with the last raised
error in the system.
The method is designed to obtain the error string from the onerror
block of errors interception (for more information see the description
of the Pluk language).
param ErrStr;
Registers a user's error with text specified via the ErrStr parameter
in the system.
The function returns the error number (code).
param ErrStr, ConstName;
Registers a user's error with text specified via the ErrStr parameter
in the system.
The function returns the error number (code). The constant with the
name specified via the ConstName parameter and whose value is equal to
the error code is registered in the system.
param ErrStr;
Initiates the error with text specified via the ErrStr parameter and
consequent rollback with errors intercepting. The list of possible
standard errors texts can be found in the error.dat file.
param ErrStr, AdditionalString;
Initiates the error with text specified via the ErrStr parameter,
extension text specified via the AdditionalString parameter and
consequent rollback with errors intercepting. The list of possible
standard errors texts can be found in the error.dat file.
param Func;
Checks the method for syntax errors, unknown global variables and
class members presence.
param Func;
Checks the method for syntax errors, unknown global variables and
class members presence.
param UserName, DomainName, Password;
This method returns TRUE if a user is authorized to logon, otherwise
it returns FALSE.
If an empty string is passed as a domain then all available domains
are scanned during checking.
Switches all breakpoints to the "Off" state in all Pluk-processor
functions and methods.
This method deletes all compiled Pluk-code (both B-code and completed
compiled code). The compilation is performed repeatedly upon calling
any method (function). This method is useful for abnormal memory
release from the unused Pluk-code.
param Password;
Returns the coded value of the string specified via the Password parameter.
param var;
This method serializes the variable specified via the var parameter
(if it is not the serialized string) and compresses using the LZW
method that is transforms it into the string which can be written to a
file or transferred via the network. The reverse transforming is performed
by the Pluk::Decompress(refer object String) method.
The outstanding peculiarity of this method is that the created string
is cross-platform (system), in other words the reverse transforming
can be correctly performed on any machine and under any operating
system, not depending on the platform where the serialized string was
created.
This method returns string.
Note.
If the serialized object specified via the var parameter
contains a pointer to outside of the serialized object then the
"Can't serialize pointer" error is raised.
param ExeFile, ResFile.
Copies a resource from the resource object file specified via the
ResFile parameter to the executable module specified via the ExeFile
parameter.
param Src, Key;
The method decodes the object specified via the Src
parameter using the key specified via the Key parameter that was
previously encoded by the Encode method.
The method returns the restored object.
param SerStr;
This method performs operation which is reverse to the operation
performed by the Pluk::Compress(refer any) method.
This method returns reconstructed variable.
If the compressed object is the object of the class which is unknown
to Pluk-processor (for instance the compressed string was obtained via
the network) then if it is possible to reconstruct the class
specification, it will be reconstructed and Pluk-processor can use it
in the future. If the compressed object is the object of the class
which is known to Pluk-processor but its specification does not match
the specification which is already defined in Pluk-processor then the
object will be created according to the Pluk-processor specification
and the contents of the compressed object fields will be transferred
if possible (according to name compliance).
Note.
Constructor is not called when reconstructing an object of the
class. The fields' contents are filled according to the
information from the compressed string. In case of violations or
corrupted compressed string specified via the SerStr parameter
(for instance, the checksum does not match) one of the following
errors is raised:
"Unserialize error"
"Can't reconstruct object"
"It isn't compressed buffer"
"Decompress error"
param t;
The t seconds delay. During this delay all other applications can
work correctly under Windows 3.11.
param Src, Key;
This method serializes and encodes the object specified via the Src
parameter using the key specified via the Key parameter.
The symmetric RC-algorithm with 128-bit key is used for encoding.
The method returns the String object that contains the encoded object.
param CommandLine, wait, hide, Environment, Priority;
Launches a program as it is specified via the CommandLine string.
If the wait parameter == TRUE then it waits till the process is
finished if it is set to FALSE then the immediate return to function
is performed.
If the hide parameter == TRUE then the process window is hidden on
launching, if it is set to FALSE then the process window is visible on
launching.
The Environment parameter contains the vector of the following pairs:
<<VarName,VarValue>>
(for instance << <<"INCLUDE", "c:\pluk\\include;c:\\pluk\\loc\\eng>>, ...>>),
that describe addition environment variables.
The Priority parameter specifies the priority of the process.
Available values include:
PRIORITY_CLASS_IDLE
PRIORITY_CLASS_NORMAL
PRIORITY_CLASS_HIGH
PRIORITY_CLASS_REALTIME
Using the PRIORITY_CLASS_REALTIME process priority for long time may
cause the system failure because this priority exceeds the priority of
several operating system functions, for instance, disk cashing, mouse
messages processing etc.
If you need to create preemptive process it is recommended to use the
PRIORITY_CLASS_HIGH priority.
The PRIORITY_CLASS_IDLE priority is designed for background processes.
Possible errors include:
ERR_CANT_LOAD_MODULE - module loading error
param CommandLine, hide, UserName, Domain, Password, Environment, Priority;
Launches a program as it is specified via the CommandLine string under
the user name specified via the UserName parameter from the domain
specified via the DomainName parameter using the password specified
via the Password parameter.
If the hide parameter == TRUE then the process window is hidden on
launching, if it is set to FALSE then the process window is visible on
launching.
The Environment parameter contains the vector of the following pairs:
<<VarName,VarValue>>
(for instance << <<"INCLUDE", "c:\pluk\\include;c:\\pluk\\loc\\eng>>, ...>>),
that describe addition environment variables.
The Priority parameter specifies the priority of the process.
Available values include:
PRIORITY_CLASS_IDLE
PRIORITY_CLASS_NORMAL
PRIORITY_CLASS_HIGH
PRIORITY_CLASS_REALTIME
Using the PRIORITY_CLASS_REALTIME process priority for long time may
cause the system failure because this priority exceeds the priority of
several operating system functions, for instance, disk cashing, mouse
messages processing etc.
If you need to create preemptive process it is recommended to use the
PRIORITY_CLASS_HIGH priority.
The PRIORITY_CLASS_IDLE priority is designed for background processes.
Possible errors include:
ERR_PRIVILEGE_NOT_HELD - no privilege for launching process
under the current user account
ERR_LOGON_FAILED - Name/password are wrong
ERR_CANT_LOAD_MODULE - module loading error
Returns the file name from which the function was loaded (if it was
loaded from Pluk-file).
Explicitly transfers control to the Windows operating system by
calling selection/dispatching messages functions from the application
queue untill it becomes empty.
param code;
Parses the contents of the code parameter and synthesizes text with
formatting according to the obtained parsed semantic tree.
Returns formatted text.
param code, offset;
Parses the contents of the code parameter and synthesizes text with
formatting according to the obtained parsed semantic tree.
The offset parameter specifies the general offset of the formatted text.
Returns formatted text.
param code;
Parses the contents of the code parameter and synthesizes text with
formatting according to the obtained parsed semantic tree.
Returns formatted text.
param code;
Parses the contents of the code parameter and synthesizes text with
formatting according to the obtained parsed semantic tree.
Returns formatted text.
param DLLName;
This mrthod frees DLL.
WARNING:
In case of DLL free it is user responsibility to sutisfy inner program integrity.
He (she) must either reload this DLL again or delete/redefine classes and methods
stored in the DLL and does not use windows templates stored in the DLL.
If those conditions will be broken the GPF crash is inevitable.
param Func;
Returns the vector that consists of line numbers where breakpoints in
the function specified via the Func parameter are in the "On" state.
param Func;
Returns the vector that consists of code numbers where breakpoints in
the function specified via the Func parameter are in the "On" state.
param ClassName;
Returns the system comment of the class specified via the ClassName
parameter. If this comment is not defined then EMPTY is returned.
Returns the file name from which the class specification was loaded
(if it was loaded from Pluk-file).
Returns the number of the starting line of the class specification
within the file from which the specification was loaded (if it was
loaded from Pluk-file).
param WithPrivate;
Returns the vector that contains the class names defined in Pluk-
processor. If the WithPrivate parameter == TRUE then the list includes
classes that contains the key word "private" in their comments.
param ModuleName, WithPrivate;
Returns the vector that contains the class names defined in Pluk-
processor which belong to the module specified via the ModuleName
parameter. If the WithPrivate parameter == TRUE then the list includes
classes that contains the key word "private" in their comments.
Returns the vector that contains the class names defined in Pluk-processor.
param ClassName;
Returns vector that contains names of members (static class members)
of the class specified via the ClassName parameter.
param Func;
Returns the number of obtained b-operators when compiling the function
specified via the Func parameter.
param Func;
Returns the number of obtained b-operators when compiling the function
specified via the Func parameter.
param n;
Returns the code name which is executed within the stack at a depth
specified via the n parameter. If the code is indeterminate then the
"UNKNOWN" string is returned.
param Func;
Returns statistical information that is the vector of b-operator using
number in the function specified via the Func parameter.
param Func;
Returns statistical information that is the vector of b-operator using
number in the function specified via the Func parameter.
param Func;
Returns the system comment of the function/method specified via the
Func parameter. If this comment is not defined then EMPTY is returned.
Returns the vector that contains constant names defined in Pluk-
processor.
param FrameLevel;
#rus Возврашает номер выполняемой строки (если доступен) в функции
#rus находящейся в стэке на глубине FrameLevel от дна стэка.
param FrameLevel;
Returns the number of the executed line (if it is accessible) in the
function which is located at a stack depth specified via the
FrameLevel parameter.
This method returns the ProcessData object for the current process
Returns the vector that contains the dynamic library names loaded to
Pluk-processor.
param DLLName;
This method returns the vector which consists of full names of Pluk-
methods written on C++ and included in the DLLName dynamic library.
param DiskName;
Returns free disk space in bytes on the disk specified via the
DiskName parameter.
Returns EMPTY in case of missing the disk specified via the DiskName
parameter.
#rus Возвращает значение переменной из окружения если найдет;
#rus Для версии UNICODE результат будет иметь тип аргумента.
Returns the vector which consists of pairs: EnvironmentVariableName,
EnvironmentVariableValue.
<< <<VarName1, VarValue1>>, <<VarName2, VarValue2>>, ... >>
Returns the number (code) of the last raised error in the system.
The method is designed to obtain the error code from the onerror block
of errors interception (for more information see the description of
the Pluk language).
param Err;
Returns string (text) of the error with the number specified via
the Err parameter.
param FrameLevel;
Returns the number of local/temporary variables in the frame at a
depth specified via the FrameLevel parameter.
Returns free space amount.
Returns the vector that contains function names defined in Pluk-
processor at a stack depth specified via the n parameter. If n == -1
then the global functions are returned; if n == 0 then the functions
of the current stack level are returned; if n > 0 then the functions
of the appropriate deep into level are returned.
param FrameLevel;
#rus Возврашает ссылку на функцию находящуюся в стэке на глубине FrameLevel от дна стэка.
param FrameLevel;
Returns the pointer to the function which is located at a stack depth
specified via the FrameLevel parameter.
Returns the path to the folder from which the executable module was
launched.
param FrameLevel;
#rus Возврашает значение указателя инструкций (если доступен) в функции
#rus находящейся в стэке на глубине FrameLevel от дна стэка..
#rus Если IP не доступен, то возвращается -1.
param FrameLevel;
Returns the instruction pointer value (if it is accessible) in the
function which is located at a stack depth specified via the
FrameLevel parameter.
If the IP is not accessible then -1 is returned.
param ClassName;
Returns vector that contains names of object members of the class
specified via the ClassName parameter.
param ClassName;
Returns vector that contains method names of the class specified via
the ClassName parameter.
param ClassName, WithPrivate;
Returns vector that contains method names of the class specified via
the ClassName parameter. If the WithPrivate parameter == TRUE then the
list includes methods that contains the key word "private" in their comments.
Returns the vector that contains the module names defined in Pluk-processor.
param ClassName;
Returns the module name to which the class specified via the ClassName
parameter is assigned.
This method returns the DLL name being loaded. It may be necessary
when code loaded from DLL needs to be adjusted according to the DLL's
name. For instance, when it needs to know this name in the future for
loading resources.
param ClassName;
Returns the number of parents for the class specified via the
ClassName parameter. In case of single inheritance it is always
equal to 1.
param Object;
The method returns the number of pointers to the object specified via
the Object parameter.
Returns the number of active objects in Pluk-machine.
Returns the number of objects in Pluk-machine that are subject to be
destroyed but are not destroyed yet.
Returns string with the description of the operating system version.
param ID;
Returns the pointer to the object that has the identifier specified via
the ID parameter. If the object with the certain identifier is not found
then the ERR_UNKNOWN_ID error is raised.
param Obj;
Returns the identifier of the object specified via the Obj parameter.
If the Obj parameter represents an object without identifier then 0 is
returned.
param ClassName, ParentNumb;
Returns the name of the parent class whose number is specified via the
ParentNumb parameter for the class specified via the ClassName
parameter. The number specified via the ParentNumb parameter may have
\value that differs from 0 only in case of multiple inheritance.
param ClassName;
Returns vector that contains parent names of the class specified via
the ClassName parameter.
Returns process priority.
This method returns the process identifier.
Returns the list of ProcessData objects.
Returns the project name for the application that executes external
project (non-export version).
param Func;
Returns the number of bytes in the code which is obtained after the
completed compiling of the function specified via the Func parameter
up to the real processor codes.
param Func;
Returns the vector that indicates parameters which are passed to
the method specified via the Func parameter by pointer.
The vector consists of Boolean values,
TRUE - parameter is passed by pointer
FALSE - parameter is passed by value
Returns the name of resource DLL for the application that executes
external project (non-export version).
Returns the serialized variable size without taking into consideration
the header length and checksum.
Returns stack depth that is the number of function calls frames in the stack.
Returns the list of functions enumerated in the stack.
param FrameLevel, VarNumber;
Returns the pointer to the local/temporary variable that has the
offset specified via the VarNumber parameter in the frame at a depth
specified via the FrameLevel parameter.
Returns 16-byte UUID - global unique identifier.
This method returns the name of the user to whom the process belongs.
Returns the vector that contains variable names defined in Pluk-
processor at a stack depth specified via the n parameter. If n == -1
then the global variables are returned; if n == 0 then the variables
of the current stack level are returned; if n > 0 then the variables
of the appropriate deep into level are returned.
param FrameLevel;
#rus Возвращает вектор, содержащий имена переменных, определенных в Плюк-процессоре
#rus на уровне стека n от дна стэка. При этом, если n == -1, то возвращаются глобальные переменные;
Returns vector that consists of 6 elements.
The first - virtual Pluk-machine version,
The second - Pluk-object version (service facility)
The third - minor version number (bugs fixing etc.)
The fourth - processor type (I86)
The fifth - code capacity (16 or 32)
The sixth - release version (r) or debug version (d)
param className, memberName;
Returns TRUE if the member specified via the memberName parameter is
present in the specification of static part of the class specified via
the className parameter, otherwise - FALSE.
param className, memberName;
Returns TRUE if the member specified via the memberName parameter is
present in the specification of the class specified via the className
parameter, otherwise - FALSE.
param Hide;
If the Hide parameter == TRUE then the main application window becomes
invisible.
Explicitly transfers control to the Windows operating system by
calling selection/dispatching messages functions from the application
queue.
param ClassName;
Returns TRUE if the class specified via the ClassName parameter is
defined in Pluk-machine, otherwise FALSE.
param childName, parentName;
Returns TRUE if the class specified via the childName parameter is
inherited from the class specified via the parentName parameter,
otherwise - FALSE.
param SerStr;
This method returns TRUE if the SerStr parameter contains
the compressed variable, otherwise - FALSE.
param ConstName;
Returns TRUE if the constant specified via the ConstName parameter is
defined in Pluk-machine, otherwise FALSE.
param FuncName;
Returns TRUE if the global function specified via the FuncName
parameter is defined in Pluk-machine, otherwise FALSE.
param VarName;
Returns TRUE if the global variable specified via the VarName
parameter is defined in Pluk-machine, otherwise FALSE.
patam Object, parentName;
Returns TRUE if the object specified via the Object parameter is the
object of the descendant class from the class specified via the
parentName parameter, otherwise - FALSE.
param ClassName, MethodName;
Returns TRUE if the class specified via the ClassName parameter has
the method specified via the MethodName parameter, otherwise FALSE.
param ClassName, MethodName, CheckParents;
Checks whether the class specified via the ClassName parameter has the
method specified via the MethodName parameter. If the CheckParents
parameter == TRUE then presence of this method is checked for all
class parents.
Returns TRUE if the method is found, otherwise FALSE.
param SerStr;
This method returns TRUE if the SerStr parameter contains
the serialized variable, otherwise - FALSE.
param ProcessID;
This method the process specified via the ProcessID parameter.
Returns the number of the starting line of the function within the
file from which the function was loaded (if it was loaded from Pluk-
file).
param DLLName;
This method performs the DLLName dynamic library loading. This library
contains the specification of the Pluk class and methods written on C++.
Returns the name of the procedure being executed at the moment.
Returns the pointer to the variable that contains the procedure being
executed at the moment.
Returns the source code of the procedure being executed at the moment.
(If it is accessible)
param var;
Returns the name of the variable specified via the var parameter if it
is named.
param docName;
#rus Открывает файл справки docName.
param Func;
Returns text with BCocd listing of the function specified via
the Func parameter.
param Func;
Returns text with BCocd listing of the function specified via
the Func parameter.
Returns the Pluk version as a string
param DstDLLName, SrcDLLName;
This method releases the DstDLLName dynamic library that contains the
specification of Pluk class and methods written on C++ substitutes it
from the SrcDLLName and reloads. At that the specifications of classes
and methods defined in the dynamic library are updated according to
the contents of the last loaded version.
param name, members;
#rus Удаляет глобальные поля из спецификации класса.
#rus name Имя класса.
#rus members Вектор имен глобальных полей, которые требуется удалить.
param name, members;
#rus Удаляет поля из спецификации класса.
#rus name Имя класса.
#rus members Вектор имен полей, которые требуется удалить.
param ClassName, ParentName;
Deletes the parent specified via the ParentName parameter from the
class specified via the ClassName parameter
param name, parents;
#rus Удаляет из спецификации класса родителей.
#rus name Имя класса.
#rus parents Вектор имен классов-родителей, которые требуется удалить.
param FileName;
The method executes the Pluk-file specified via the FileName
parameter. This method is designed for creation of integrated shells
and debuggers.
param FileName, FileType;
Performs loading/execution of a non-Pluk file
Must return TRUE if succeeded; otherwise FALSE
param Func, FileName;
Writes the result of the second pass of the Pluk-compiler over the
function specified via the Func parameter to the file specified via
the FileName parameter in the text representation. The result of the
second pass represents the b-code. Generally, this method is designed
for Pluk-compiler debugging but it also can be used for the executed
Pluk-code analysis.
param Func, FileName;
Writes the result of the second pass of the Pluk-compiler over the
function specified via the Func parameter to the file specified via
the FileName parameter in the text representation. The result of the
second pass represents the b-code. Generally, this method is designed
for Pluk-compiler debugging but it also can be used for the executed
Pluk-code analysis.
param Func, FileName;
Writes the result of the completed compiling of the function specified
via the Func parameter by the Pluk-compiler up to the real processor
codes to the file specified via the FileName parameter in the binary
representation. Generally, this method is designed for Pluk-compiler
debugging but it also can be used for the executed Pluk-code analysis.
param Func, FileName;
Writes the result of the first pass of the Pluk-compiler over the
function specified via the Func parameter to the file specified via
the FileName parameter in the text representation. The result of the
first pass represents the semantic tree. Generally, this method is
designed for Pluk-compiler debugging but it also can be used for the
executed Pluk-code analysis.
param Func, FileName;
Writes the result of the first pass of the Pluk-compiler over the
function specified via the Func parameter to the file specified via
the FileName parameter in the text representation. The result of the
first pass represents the semantic tree. Generally, this method is
designed for Pluk-compiler debugging but it also can be used for the
executed Pluk-code analysis.
param ClassName, MethodName;
parest Params;
This method sends the message specified via the MethodName parameter
with the parameters contained in the Params to all objects of the
ClassName class. For instance, let we have the defined MyClass class
and it has the defined MyClass::MyMethod(int, int) method.
Then calling the following method
Pluk->SendMessageToAllObjects("MyClass", "MyMethod", 1, 2);
results in calling the MyMethod method with 1 and 2 parameters for all
instances of the MyClass class and for all instances of the descendant
classes of the MyClass class.
param type, methodName, [pars];
Sends the specified method for all objects of the given class (and
classes derived from it).
type Class name for which objects the method is to be sent.
methodName Method name.
pars Method parameters.
Comments
The Pluk::SendMessageToClassGroup method is faster than the
Pluk::SendMessageToAllObjects system method because it uses group
information (as the internal list of the identifiers of group objects)
in contrast to the Pluk::SendMessageToAllObjects which searches all
the application objects that takes significant time even for a hundred
of objects.
param var;
This method serializes the variable specified via the var parameter
that is transforms it into the string which can be written to a file
or transferred via the network. The reverse transforming is performed
by the Pluk::UnSerialize(refer object String) method.
The outstanding peculiarity of this method is that the created string
is cross-platform (system), in other words the reverse transforming
can be correctly performed on any machine and under any operating
system, not depending on the platform where the serialized string was
created.
This method returns string.
If the serialized object has the associated C++ object then it has the
opportunity to serialize it. In order to do it Pluk checks the
existence of the GetCPPClassSize(void), SerializeCPPClass(void) and
calls them.
GetCPPClassSize(void) - this method should return the buffer
size necessary for serialization.
SerializeCPPClass(void) - this method should return the String
object which contains the serialized C++ object.
The string size which is returned by this method should be equal to the size returned by the GetCPPClassSize mrthod.
Note.
If the serialized object specified via the var parameter
contains a pointer to outside of the serialized object then the
"Can't serialize pointer" error is raised.
param Func, BreakPointList;
Sets breakpoints to the "On" state within the function specified via
the Func parameter in those lines whose numbers are enumerated in the
vector specified via the BreakPointList parameter.
param Func, BreakPointList;
Sets breakpoints to the "On" state within the function specified via
the Func parameter in B-code instructions whose numbers are enumerated
in the vector specified via the BreakPointList parameter.
param ClassName, Comment;
Sets the system comment specified via the Comment parameter to the
class specified via the ClassName parameter.
param Func, Comment;
Sets the system comment specified via the Comment parameter to the
function/method specified via the Func parameter.
param er;
Initiates the error whose number (code) is specified via the er
parameter and consequent rollback with errors intercepting. The list
of possible error numbers is described by the ERR_ group constants.
param er, AdditionalString;
Initiates the error whose number (code) is specified via the er
parameter, extension text is specified via the AdditionalString
parameter and consequent rollback with errors intercepting.
The list of possible error numbers is described by the ERR_ group constants.
param ClassName, ModuleName;
Assigns the class specified via the ClassName parameter to the module
specified via the ModuleName parameter.
param Priority;
Sets process priority.
Available values of the Priority parameter include:
PRIORITY_ABOVE_NORMAL
PRIORITY_BELOW_NORMAL
PRIORITY_HIGHEST
PRIORITY_IDLE
PRIORITY_LOWEST
PRIORITY_NORMAL
PRIORITY_TIME_CRITICAL
Returns TRUE if succeeded, otherwise FALSE.
param Func, ReferList;
Sets the parameters passed to the method specified via the
Func parameter by pointer according to the vector specified via
the ReferList parameter.
The ReferList vector consists of Boolean values,
TRUE - parameter is passed by pointer
FALSE - parameter is passed by value
param Func, LineNumber;
Sets temporary (till the first passing) breakpoint in the function
specified via the Func parameter at the line specified via the
LineNumber parameter.
param Func, IPNumber;
Sets temporary (till the first passing) breakpoint in the function
specified via the Func parameter in the code with number specified via
the IPNumber parameter.
param Func, LineNumber;
Switching of the breakpoint state (On/Off) in the function specified
via the Func parameter at the line specified via the LineNumber
parameter.
param Func, IPNumber;
Switching of the breakpoint state (On/Off) in the function specified
via the Func parameter in the code with number specified via the
IPNumber parameter.
Converts the following printable form:
3fad3020-16b7-11ce-80eb-00aa003d7352
to 16-byte UUID - global unique identifier to:
Converts 16-byte UUID - global unique identifier to the following
printable form:
3fad3020-16b7-11ce-80eb-00aa003d7352.
param SerStr;
This method performs operation which is reverse to the operation
performed by the Pluk::Serialize(refer any) method.
This method returns reconstructed variable.
If the serialized object is the object of the class which is unknown
to Pluk-processor (for instance the serialized string was obtained via
the network) then if it is possible to reconstruct the class
specification, it will be reconstructed and Pluk-processor can use it
in the future. If the serialized object is the object of the class
which is known to Pluk-processor but its specification does not match
the specification which is already defined in Pluk-processor then the
object will be created according to the Pluk-processor specification
and the contents of the serialized object fields will be transferred
if possible (according to name compliance).
If the serialized object had the associated C++ object then it has the
opportunity to reconstruct it. In order to do it Pluk checks the
existence of the UnSerializeCPPClass(refer object String) method and
calls it.
UnSerializeCPPClass(refer object String) - this method receives
the String object which was made by the
SerializeCPPClass(void) method as the
parameter.
The class is checked for the OnUnSerialize(void) method existence when
reconstructing an object. If method is found, it is called when the
object reconstruction is completed.
Note.
Constructor is not called when reconstructing an object of the
class. The fields' contents are filled according to the
information from the serialized string. In case of violations or
corrupted serialized string specified via the SerStr parameter
(for instance, the checksum does not match) one of the following
errors is raised:
"Unserialize error";
"Can't reconstruct object".
param DLLName;
This method performs the DLLName dynamic library loading. This library
contains the specification of the Pluk class and methods written on C++.
In case if library was loaded before, the specification and methods in memory
will be updated according to library contents.
param FileName;
The method updates the specifications of classes and methods from the
file specified via the FileName parameter. This method is designed for
creation of integrated shells and debuggers.
param Name, Type, Module;
This method allows to read out an object (of arbitrary type) from the
module that contains Windows resources. The Name parameter specifies
the resource name, the Type parameter specifies the resource type
name, the Module parameter specifies the name of the module (EXE or
DLL) which contains resources.
Sleep until message (event) appear in the queue. Dispatch message
and return. If there are messages in the queue, it process one message
and return.
#module root.common
Methods:
- PlukCriticalSection(void)
- ~PlukCriticalSection(void)
#module root.common
Methods:
- PlukThread(int)
- ~PlukThread(void)
#module root.system
The synonym of the pointer key word.
#module root.geometry
The RECT class represents a two-dimensional rectangular region and is
designed for work with planar images.
This class is specified as:
class RECT {
left; // left region boundary
top; // top region boundary
right; // right region boundary
bottom; // bottom region boundary
};
Methods:
param r;
Calculates the largest rectangle which contains all the points that
belong to the first and the second rectangles.
r - the second rectangle.
Returns a rectangle or EMPTY if intersection is empty.
param scale;
Scale rectangle by factor scale
param val;
Returns the absolute point position on the horizontal straight line
relatively to the left rectangular edge supposing that the rectangular
width is equal to 1.0.
param val;
Returns the absolute point position on the vertical straight line
relatively to the bottom rectangular edge supposing that the
rectangular height is equal to 1.0.
param p1, p2;
#rus Возвращает вектор точек пересечения
#rus прямой, проходящей через точки p1 и p2, с прямоугольником.
#rus Если точек пересечения нет, то возвращает EMPTY.
param p1, p2;
RECT::CrossSegment(refer object POINT, refer object POINT)
Checks the (p1, p2) section clipping by a rectangle according to the
Sazerlend-Cohen clipping algorithm.
Returns EMPTY if the section does not have common points with the
rectangle.
Otherwise returns a vector that consists of two points which are the
ends of the section that represents the clipping of the section by the
rectangle.
This method returns the rectangle height.
param x, y;
RECT::IsInRect(number, number)
Checks whether a point belongs to a rectangle.
x - x point coordinate.
y - y point coordinate.
Returns a Boolean value. TRUE if the point belongs
to a rectangle; otherwise FALSE.
param pt;
Checks whether a point belongs to a rectangle.
pt - Point.
Returns a Boolean value. TRUE if the point belongs
to a rectangle; otherwise FALSE.
param dx, dy;
This method shifts a rectangle on the (dx, dy) vector.
param p;
This method shifts a rectangle on the pt vector.
param x, y;
This method moves a rectangle to the (x, y) point.
param p;
This method moves a rectangle to the point specified via the p
parameter.
Orders rectangle boundaries according to the .left <= .right,
.top <= .bottom rule.
param left, top, right, bottom;
This constructor creates a rectangle with boundaries specified via the
passed parameters.
param p1, p2;
#rus Констрктор, создающий прямоугольник с границами определяемыми
#rus двумя точками - p1 и p2.
This constructor creates a zero-size rectangle with (0, 0, 0, 0)
boundaries.
param val;
Returns the relative point position on the horizontal straight line
relatively to the left rectangular edge supposing that the rectangular
width is equal to 1.0.
param val;
Returns the relative point position on the vertical straight line
relatively to the bottom rectangular edge supposing that the
rectangular height is equal to 1.0.
Convert boundaries of rectangle to integer grid
RECT::Width(void)
This method returns the rectangle width.
param r;
RECT::|(refer object RECT)
Calculates the smallest rectangle which contains all the points of the
first and the second rectangles.
r - the second rectangle.
Returns a rectangle.
#module root.system
The synonym of the sfunc key word, it is designed for creation of
the classes which are Pluk-function descendants.
#module root.system
Creation of an object of the Silent class suppresses the delivery of
Pluk-machine system messages.
While any object of the Silent class exists, Pluk-machine works "silently".
Methods:
Increases "silent" counter by one.
Decreases "silent" counter by one.
#module root.baseclasses
The String class that encapsulates major string operations is defined
in Pluk. This class does not have any visible fields from Pluk level
and its contents can be accessed only via the appropriate methods.
Methods:
- !=(refer object String)
- !=(refer object WString)
- &(refer object String)
- &=(refer object String)
- <(refer object String)
- <(refer object WString)
- <=(refer object String)
- <=(refer object WString)
- <>(refer object String)
- <>(refer object WString)
- ==(refer object String)
- ==(refer object WString)
- >(refer object String)
- >(refer object WString)
- >=(refer object String)
- >=(refer object WString)
- @(char)
- @(int)
- @(refer object String)
- @(refer object WString)
- @=(char)
- @=(int)
- @=(refer object String)
- @=(refer object WString)
- AppendNumbSubStr(number, refer object String)
- CharToLine(number)
- ClearString(void)
- ConvertToWindowsString(void)
- CopyString(refer object String)
- CopyString(refer object WString)
- CopyString(refer object WString, int)
- DosToWin1251(void)
- DoubleToString(int, number)
- Find(char)
- Find(char, number)
- Find(refer object String)
- Find(refer object String, number)
- FindMax(int)
- FindMin(int)
- FindNon(char)
- FindNon(char, number)
- FloatToString(int, number)
- FromSixBits(void)
- GetByte(number)
- GetCRC(void)
- GetHash(void)
- GetLastByte(void)
- GetWord(number)
- Getv(int)
- GetvAll(void)
- GetvSize(int)
- Insert(refer object String, number)
- Int16ToString(int, number)
- Int32ToString(int, number)
- IsAlNum(number)
- IsAlpha(number)
- IsDigit(number)
- IsDos866(void)
- IsGrayDIBits(number)
- IsHexDigit(number)
- IsNumber(void)
- IsPrint(number)
- IsSixBits(void)
- IsSpace(number)
- IsZero(void)
- Left(number)
- Len(void)
- LineToChar(number)
- Mid(number, number)
- PutByte(number, number)
- Remove(int, int)
- Replace(number, refer object String, number)
- ReplaceAll(refer object String, refer object String)
- ReplaceChar(number, number, number)
- Right(number)
- SetLen(number)
- SetString(number)
- String(char)
- String(copy)
- String(number)
- String(refer object String)
- String(refer object WString)
- String(refer object WString, int)
- String(refer rfunc)
- String(refer sfunc)
- StringToDouble(int, refer any)
- StringToFloat(int, refer any)
- StringToInt16(int, refer any)
- StringToInt32(int, refer any)
- StringToUInt16(int, refer any)
- Tail(number)
- ToCString(void)
- ToLower(void)
- ToSixBits(void)
- ToUpper(void)
- ToVolapuk(void)
- Tokenize(refer object String)
- TrimLead(refer object String)
- TrimLead(void)
- TrimTrail(refer object String)
- TrimTrail(void)
- Win1251ToDos(void)
- XLat(refer object String, refer object String)
- ^(refer object String)
- ^=(refer object String)
- |(refer object String)
- |=(refer object String)
param Str;
The '!=' operator compares the string for which it was called with the
string specified via the Str parameter. Returns TRUE if the string for
which the method was called is not equal to the string specified via
the Str parameter; Otherwise - FALSE.
param Str;
If the length of the string for which the method is called and the
length of the string specified via the Str parameter are equal then
bytewise AND operation is performed. The result is returned in the new
string. If lengths are not equal then the "Casting Error" error is
raised.
param Str;
If the length of the string for which the method (operator) is called
and the length of the string specified via the Str parameter are equal
then bytewise AND operation is performed. The string copy is not
created. The string for which the method was called is modified. The
pointer to this string is returned. If string lengths are not equal
then the "Casting Error" error is raised.
"Casting Error".
param Str;
The '<' operator compares the string for which it was called with the
string specified via the Str parameter. Returns TRUE if the string for
which the method was called is less than the string specified via the
Str parameter; Otherwise - FALSE.
param Str;
The '<=' operator compares the string for which it was called with the
string specified via the Str parameter. Returns TRUE if the string for
which the method was called is less or equal to the string specified
via the Str parameter; Otherwise - FALSE.
param Str;
Compares the string for which the method was called with the string
specified via the Str parameter.
Returns 0 if these strings are equal, returns number greater than zero
if the string for which the method was called contains character with
greater code than the string specified via the Str parameter in the
same position when using the character-oriented comparison; Otherwise
returns -1.
param Str;
The '==' operator compares the string for which it was called with the
string specified via the Str parameter. Returns TRUE if the string for
which the method was called is equal to the string specified via the
Str parameter; Otherwise - FALSE.
param Str;
The '>' operator compares the string for which it was called with the
string specified via the Str parameter. Returns TRUE if the string for
which the method was called is greater than the string specified via
the Str parameter; Otherwise - FALSE.
param Str;
The '>=' operator compares the string for which it was called with the
string specified via the Str parameter. Returns TRUE if the string for
which the method was called is greater or equal to the string
specified via the Str parameter; Otherwise - FALSE.
param Str;
The @ operator is the operator of two strings concatenation (merging).
A new string which consists of operands merging is the result of its
performing.
For instance, as a result of the following expression:
c = "Hello " @ "World!";
the c variable contains the following string:
"Hello World!".
param Str;
The @= operator is the operator of two strings concatenation
(merging). The second string is added to the first one as a result of
its performing.
The pointer to the first string is returned.
param nCopy, SubStr;
This method adds nCopy times the string specified via the SubStr
parameter to the end of the string for which this method was called.
This method returns nothing.
param offset;
If a string contains a set of carriage returns (a set of lines) then
this method returns the number of the line to which the character with
the offset specified via the offset parameter belongs. If the offset
is out of the string range then -1 is returned.
Cleares string (populates it with zeros) in the self object.
Returns nothing.
Substitutes all strings ending with \n
on strings ending with \r\n.
param Str;
Copies information from the string specified via the Str parameter to
the object from which class the method was called. The method is
designed to be used from descendant classes of the String class.
param Str;
Copies information from the Unicode-string specified via the Str
parameter to the object from which class the method was called. The
method is designed to be used from descendant classes of the String
class.
If a string contains Russian text in DOS encoding then
this method returns its code translation into Windows 1251.
param Offset, Number;
Copies the 64-bit number with floating point determined via the Number
parameter to self beginning with the position specified via the Offset
parameter.
Returns the number of bytes occupied in the buffer (self).
param ch;
Searches the character specified via the ch parameter in the initial
string beginning with the 0 position.
Returns the character specified via the ch parameter offset in the
initial string if succeeded; Otherwise - returns -1.
param ch, offset;
Searches the character specified via the ch parameter in the initial
string beginning with the position specified via the offset parameter.
Returns the character specified via the ch parameter offset in the
initial string if succeeded; Otherwise - returns -1.
param pattern;
Searches the sub-string specified via the pattern parameter in the
initial string beginning with the 0 position.
Returns the sub-string specified via the pattern parameter offset in
the initial string if succeeded; Otherwise - returns -1.
param pattern, offset;
Searches the sub-string specified via the pattern parameter in the
initial string beginning with the position specified via the offset
parameter.
Returns the sub-string specified via the pattern parameter offset in
the initial string if succeeded; Otherwise - returns -1.
param depth;
Finds the maximum image pixel value.
depth The number of bytes per pixel (can be equal to 1, 2).
Returns the maximum value of the int type.
Returns nothing in case of an empty string.
param depth;
Finds the minimum image pixel value.
depth The number of bytes per pixel (can be equal to 1, 2).
Returns the minimum value of the int type.
Returns nothing in case of an empty string.
param ch;
Searches the character which is not coincide with the character
specified via the ch parameter in the initial string beginning with
the 0 position.
Returns the character offset in the initial string if succeeded;
Otherwise - returns -1.
param ch, offset;
Searches the character which is not coincide with the character
specified via the ch parameter in the initial string beginning with
the position specified via the offset parameter.
Returns the character offset in the initial string if succeeded;
Otherwise - returns -1.
param Offset, Number;
Copies the 32-bit number with floating point determined via the Number
parameter to self beginning with the position specified via the Offset
parameter.
Returns the number of bytes occupied in the buffer (self).
Returns string that represents the restored string that was created by
the String::ToSixBits() method.
param offset;
Returns a byte from the position specified via the offset parameter.
Returns CRC-16 for its contents.
Returns hash-index for its contents.
Returns the contents of the last byte.
Complete equivalent of String->GetByte(String->Len() -1);
param offset;
This method returns string, which contains the word that consists of
numbers and letters and includes the position specified via the offset
parameter. If there is no any letter or number at the position
specified via the offset parameter then empty string is returned. for
instance, calling the "This is the example of using the
String::GetWord method"->GetWord(14) method returns the following
string: "example".
Если строка есть последовательность сериализованных объектов,
то вернет вектор этих объектов.
param Str, offset;
Inserts the string specified via the Str parameter into the string for
which the method is called. Insertion is performed from the position
specified via the offset parameter.
param Offset, Number;
Copies the 16-bit integer number determined via the Number parameter to
self beginning with the position specified via the Offset parameter using
the Little Endian format.
Returns the number of bytes occupied in the buffer (self).
param Offset, Number;
Copies the 32-bit integer number determined via the Number parameter to
self beginning with the position specified via the Offset parameter using
the Little Endian format.
Returns the number of bytes occupied in the buffer (self).
param offset;
This function returns TRUE if string contains letter or number at the
position specified via the offset parameter; Otherwise - FALSE.
param offset;
This function returns TRUE if string contains letter at the position
specified via the offset parameter; Otherwise - FALSE.
param offset;
This function returns TRUE if string contains number at the position
specified via the offset parameter; Otherwise - FALSE.
#rus Возвращает TRUE, если строка содержит русский текст в кодировке DOS,
#rus иначе - FALSE.
param allowedDiff;
Checks whether a triple-byte image is a gray one with some precision.
allowedDiff Maximum allowable deviation of the R, G and B
components from their average.
Returns TRUE if the image is gray, otherwise - FALSE.
This function returns TRUE if string contains number or a, b, c, d, e,
f letter at the position specified via the offset parameter; Otherwise
- FALSE.
Returns TRUE if string represents the string that contains number;
Otherwise - FALSE.
param offset;
This function returns TRUE if string contains printable character at
the position specified via the offset parameter; Otherwise - FALSE.
param offset;
This function returns TRUE if string contains blank, tabulation
character, carriage return character, line-feed character or form-feed
character at the position specified via the offset parameter;
Otherwise - FALSE.
Returns TRUE if String is entirely populated with zeros; Otherwise - FALSE.
param len;
Returns sub-string that consists of left string character whose number
is specified via the len parameter.
Returns string length.
patam n;
If a string contains a set of carriage returns (a set of lines) then
this method returns the offset of the line whose number is specified
via the n parameter. If there is no line with this number within the
string then -1 is returned.
param offset, len;
Returns the sub-string that has length specified via the len parameter
and begins with the position specified via the offset parameter from
the appropriate string.
param offset, ch;
Writes the byte specified via the ch parameter to the position
specified via the offset parameter within the string for which the
method was called.
param offset, len;
Deletes len bytes from the string beginning with the position
specified via the offset parameter.
param offset, Str, len;
Deletes len bytes from the initial string beginning with the position
specified via the offset parameter; then inserts the string specified
via the Str parameter to the position specified via the offset
parameter;
param a, b;
Substitutes in the current string all sub-strings specified via the a
parameter on the value of the string specified via the b parameter
a Replaceable sub-string.
b String that substitutes a sub-string.
param offset, oChar, nChar;
Replaces all the characters in the string specified via the oChar
parameter to the characters specified via the nChar parameter
beginning with the position specified via the offset parameter.
param len;
Returns sub-string that consists of right string character whose
number is specified via the len parameter.
param len;
Sets the string length to the value specified via the len parameter.
If string becomes longer then its end is cleared (added with zeros).
param c;
Populates string with the 'char(c)' characters.
param c;
Creates a string composed of one character.
Copy-constructor which is always called indirectly. (for more
information see the Pluk language description).
param len;
Constructor of an empty string whose length is determined via
the len parameter.
param Str;
Constructor that creates a copy of the string specified via the Str
parameter. As the assignment operator is applicable for string
copying, this constructor is designed for direct calling from
descendant classes of the String class.
param Str;
Constructor that creates a single byte version of the string specified
via the Str parameter.
param Func;
Constructor that creates a string by copying the contents of the
function specified via the Func parameter.
param Func;
Constructor that creates a string by copying the contents of the
function specified via the Func parameter.
param Offset, Value;
Reads the 64-bit number with floating point from the buffer position
specified via the Offset parameter to the value specified via the
Value parameter.
Returns the number of bytes occupied by value in the buffer (self).
param Offset, Value;
Reads the 32-bit number with floating point from the buffer position
specified via the Offset parameter to the value specified via the
Value parameter.
Returns the number of bytes occupied by value in the buffer (self).
param Offset, Value;
Reads the 16-bit integer number from the buffer position specified via
the Offset parameter using the Little Endian format to the value
specified via the Value parameter.
Returns the number of bytes occupied by value in the buffer (self).
param Offset, Value;
Reads the 32-bit integer number from the buffer position specified via
the Offset parameter using the Little Endian format to the value
specified via the Value parameter.
Returns the number of bytes occupied by value in the buffer (self).
param Offset, Value;
Reads the 16-bit unsignedinteger number from the buffer position
specified via the Offset parameter using the Little Endian format to
the value specified via the Value parameter.
Returns the number of bytes occupied by value in the buffer (self).
param offset;
Returns the sub-string that begins with the position specified via the
offset parameter and continued till the end of the string from which
the method was called.
This function converts string to the C-string that is cut of the
string at the first encountered zero.
This function returns string which represent the copy of the initial
string but all Latin letters are converted to small letters.
Returns string recoded to 6-bit representation with the offset to
print region. Initial string restoring is performed via the
String::FromSixBits() method.
This function returns string which represent the copy of the initial
string but all Latin letters are converted to capital letters.
#rus Преобразует русский текст в VOLAPUK
param sym;
This method returns vector which consists of strings that are obtained
via cutting the initial string in the positions where the characters
specified via the sym parameter are encountered. For instance, calling
the "This is the example of using the String::Tokenize method"-
>Tokenize(" :") method returns vector which consists of 10 elements:
<<"This", "is", "the", "example", "of", "using", "the", "String",
"Tokenize", "method">>.
param Space;
Deletes characters that are contained in the string specified via the
Space parameter in the beginning of the string for the self object.
Returns nothing.
Deletes blanks in the beginning of the string for the self object.
Returns nothing.
param Space;
Deletes characters that are contained in the string specified via the
Space parameter at the end of the string for the self object.
Returns nothing.
Deletes blanks at the end of the string for the self object.
Returns nothing.
#rus Если строка содержит русский текст в кодировке Windows 1251,
#rus то метод возвращает ее перекодировку в DOS.
param OldCode, newCode;
This method returns string obtained from the initial string via recoding
all characters from the table specified via the OldCode parameter to the
table specified via the newCode parameter.
param Str;
If the length of the string for which the method is called and the
length of the string specified via the Str parameter are equal then
bytewise EXCLUSIVE OR operation is performed. The result is returned
in the new string. If lengths are not equal then the "Casting Error"
error is raised.
param Str;
If the length of the string for which the method (operator) is called
and the length of the string specified via the Str parameter are equal
then bytewise EXCLUSIVE OR operation is performed. The string copy is
not created. The string for which the method was called is modified.
The pointer to this string is returned. If string lengths are not
equal then the "Casting Error" error is raised.
"Casting Error".
param Str;
If the length of the string for which the method (operator) is called
and the length of the string specified via the Str parameter are equal
then bytewise OR operation is performed. The result is returned in the
new string. If lengths are not equal then the "Casting Error" error is
raised.
param Str;
If the length of the string for which the method (operator) is called
and the length of the string specified via the Str parameter are equal
then bytewise OR operation is performed. The string copy is not
created. The string for which the method was called is modified. The
pointer to this string is returned. If string lengths are not equal
then the "Casting Error" error is raised.
"Casting Error".
#module root.baseclasses
The Time class is included in the set of standard Pluk classes. It
allows to determine the current time.
class Time {
time; //time from the beginning of day measured in milliseconds
};
Methods:
Returns milliseconds
Returns the number of milliseconds passed from the beginning of day.
Returns the vector which consists of four elements - << hour, min,
sec, fraction >>
Returns hour.
Returns minutes
Returns String which contains printed time in the following format: 'hh:mm:ss'.
Returns seconds
param hour, min, sec;
Initiates date according to the hour, min, sec parameters.
If fails the ERR_WRONG_FORMAT error is raised.
param Str;
Initiates date from the string specified via the Str parameter, which
contains time in one of the following formats:
"hh/mm/ss" or "hh.mm.ss" or "hh:mm:ss" or "hh mm ss".
param hour, min, sec, fraction;
This is the Constructor which creates the Time object initiated by the
passed parameters.
param sec;
This is the Constructor which creates the Time object initiated by the
number of seconds passed from the 0 moment.
param time;
This is the Constructor which creates the Time object initiated by the
time specified via the time parameter.
The time parameter should contain time in the following format: "hh:mm:ss".
param time;
This is the Constructor which creates the Time object initiated by the
time specified via the time parameter.
This is the Constructor which creates the Time object initiated by the
current time.
Updates the object contents by the current time value.
#module root.baseclasses
The TimeDate class is included in the set of standard Pluk classes.
It represents the combination of the Time and Date classes.
Methods:
Returns string which contains date and time in text representation.
Returns String which contains date and time in text representation.
param JulianDate;
This is the Constructor which creates the TimeDate object initiated by
the Julian date specified via the Juliandate parameter, at that time
is set to 12:00.
param day, month, year;
This is the Constructor which creates the TimeDate object initiated by
the passed parameters. Time is set to 12:00.
param hour, min, sec, fraction, day, month, year;
This is the Constructor which creates the TimeDate object initiated by
the passed parameters.
param date_time;
This is the Constructor which creates the TimeDate object initiated by
the time specified via the date_time parameter.
The date_time parameter should contain time in the following format:
"dd:mm:yyyy hh:mm:ss"
.
param date;
This is the Constructor which creates the TimeDate object initiated by
the date from the object specified via the date parameter, at that
time is set to 12:00.
This is the Constructor which creates the TimeDate object initiated by
the current time and date.
Updates the object contents by the current time/date value.
Methods:
- TimeDateInterval(refer any, refer any)
Methods:
- TimeInterval(refer any, refer any)
#module root.baseclasses
The Vector class which can not numbered among primitive type but it also
can not be defined via others types or structures. Therefore the Vector
class does not have any visible fields from Pluk level
and its data can be accessed only via the appropriate methods.
Methods:
- !=(refer object Vector)
- ,=(refer any)
- <(refer object Vector)
- <=(refer object Vector)
- <>(refer object Vector)
- ==(refer object Vector)
- >(refer object Vector)
- >=(refer object Vector)
- @(refer object Vector)
- @=(refer object Vector)
- AppendByMove(refer any)
- BFind(refer any)
- BFind(refer any, refer func)
- BFindInsertIndex(refer any)
- BFindInsertIndex(refer any, refer func)
- BFindName(refer any)
- BInsert(refer any)
- BInsert(refer any, refer func)
- BInsertName(refer any)
- CopyVector(refer object Vector)
- Find(refer any)
- Find(refer any, number)
- Find(refer any, number, refer func)
- FindAll(refer any, refer func)
- FindAllByField(refer any, object String)
- FindAllByFieldP(refer any, object String)
- FindAllName(refer any)
- FindByField(refer any, object String)
- FindByFieldP(refer any, object String)
- FindExtrem(refer func)
- FindMax(void)
- FindMin(void)
- FindName(refer any)
- For_Each(object String, refer ...)
- For_Each(refer object Function)
- For_Each(refer object Function, refer ...)
- For_Each_SkipError(object String, refer ...)
- For_Each_SkipError(refer object Function)
- For_Each_SkipError(refer object Function, refer ...)
- Fusion(refer object Vector, refer func, boolean)
- GetElement(number)
- Insert(refer any, number)
- InsertElem(refer any, number)
- Intersect(refer object Vector, refer func)
- Last(void)
- Left(number)
- Len(void)
- Mid(number, number)
- Module(void)
- Norm(void)
- PutElement(number, refer any)
- QRemove(refer object Vector, refer func)
- QSort(boolean)
- QSort(int, int, boolean)
- QSort(int, int, refer func)
- QSort(refer func)
- QSort(void)
- QSortByField(object String, boolean)
- QSortByName(boolean)
- Remove(int)
- Remove(int, int)
- Remove(object Vector)
- Remove(void)
- RemoveDups(refer func)
- RemoveDups(void)
- RemoveEMPTY(void)
- RemoveLast(void)
- RemoveSortableDups(refer func)
- RemoveSortableDups(void)
- Replace(number, refer object Vector)
- Right(number)
- Set(any)
- SetLen(number)
- Sum(refer object Function)
- Sum(void)
- SynStr(refer object BaseString)
- SynStrEx(refer object BaseString)
- SynStrEx(refer object BaseString, refer func)
- Tail(number)
- Vector(copy)
- Vector(number, ...)
- Vector(refer object Vector)
- [](number)
param Vect;
The '!=' operator compares the vector for which it was called with the
vector specified via the Vect parameter. Returns 1 if the vector for
which the method was called is not equal to the vector specified via
the Vect parameter; Otherwise - 0.
param var;
The ,= operator is the operator of adding an element to the vector for
which the method (operator) was called.
For instance:
new a = << b, c, d, e >>;
a ,= << f, g, h>>
After the ,= operator execution, the a variable contains the following vector:
<<b, c, d, e, << f, g, h>> >>
The reference to the vector is returned.
param Vect;
The '<' operator compares the vector for which it was called with the
vector specified via the Vect parameter. Returns 1 if the vector for
which the method was called is less than the vector specified via the
Vect parameter; Otherwise - 0.
param Vect;
The '<=' operator compares the vector for which it was called with the
vector specified via the Vect parameter. Returns 1 if the vector for
which the method was called is less or equal to the vector specified
via the Vect parameter; Otherwise - 0.
param Vect;
Compares the vector for which the method was called with the vector
specified via the Vect parameter.
Returns 0 if these vectors are equal. Returns 1 if the vector for
which the method was called is longer than the vector specified via
the Vect parameter, returns -1 if smaller.
If vectors have the same length the elementwise comparison of these
vectors is performed. Returns 1 if the vector for which the method was
called has the greater element at the appropriate position or returns
-1 if this element is smaller.
param Vect;
The '==' operator compares the vector for which it was called with the
vector specified via the Vect parameter. Returns 1 if the vector for
which the method was called is equal to the vector specified via the
Vect parameter; Otherwise - 0.
param Vect;
The '>' operator compares the vector for which it was called with the
vector specified via the Vect parameter. Returns 1 if the vector for
which the method was called is greater than the vector specified via
the Vect parameter; Otherwise - 0.
param Vect;
The '>=' operator compares the vector for which it was called with the
vector specified via the Vect parameter. Returns 1 if the vector for
which the method was called is greater or equal to the vector
specified via the Vect parameter; Otherwise - 0.
param Vect;
The @ operator is the operator of two vectors concatenation (merging).
A new vector which consists of operands merging is the result of its
performing.
For instance, as a result of the following expression:
c = << a, b, c, d >> @ <<e, f, g >>;
the c variable contains the following vector:
<< a, b, c, d, e, f, g >>;
param Vect;
The @= operator is the operator of two vectors concatenation
(merging). The second vector is added to the first one as a result of
its performing.
The reference to the first vector is returned.
param var;
The method AppendByMove adds an element to the vector for
which the method was called and move data from var to this element.
For instance:
new a = << b, c, d, e >>;
new v = << f, g, h>>;
a->AppendByMove(v)
After the method AppendByMove execution, the a variable contains the following vector:
<<b, c, d, e, << f, g, h>> >>
and v is EMPTY.
The reference to the vector is returned.
param key;
This method performs binary search within the sorted array according
to the key specified via the key parameter. Returns the element's
index if succeeded (the element is found); Otherwise returns -1.
param key, Func;
This method performs binary search within the sorted array according to
the key specified via the key parameter. The function specified via the
Func parameter is used for the elements' comparison. This function
is provided by a user and receives 3 parameters. As the first
parameter this functions receives the pointer to the key element, as
the second parameter this functions receives the pointer to the
vector's element which is compared to, as the third parameter this
functions receives the pointer to the vector for which this method is
called. The function specified via the Func parameter should return 1
if the key is greater than the element, -1 if the key is smaller than
the element or 0 if they are equal.
The method returns the element's index if succeeded (the element is
found); Otherwise returns -1.
#rus Метод производит бинарный поиск в сортированом массиве.
#rus Возвращает индекс элемента с именем name.
#rus Элементы вектора должны иметь метод GetName(void).
#rus Возвращает -1, если таких элементов нет.
#rus См. также класс Name.
param elem;
This method inserts the element determined via the elem parameter to
the sorted array.
Returns the index of the inserted element.
param elem, Func;
This method inserts the element determined via the elem parameter to
the sorted array. The function specified via the Func parameter is
used for the elements' comparison. This function is provided by a user
and receives 3 parameters. As the first parameter this functions
receives the pointer to the key element, as the second parameter this
functions receives the pointer to the vector's element which is
compared to, as the third parameter this functions receives the
pointer to the vector for which this method is called. The function
specified via the Func parameter should return 1 if the key is greater
than the element, -1 if the key is smaller than the element or 0 if
they are equal.
The method returns the index of the inserted element.
#rus Метод производит вставку элемента elem в сортированый массив
#rus по именам элементов.
#rus Возвращает индекс вставленного элемента.
#rus Элементы вектора должны иметь метод GetName(void).
#rus См. также класс Name.
param Vect;
Copies information from the vector specified via the Vect parameter to
the object from which class the method was called. The method is
designed to be used from descendant classes of the Vector class.
param pattern;
Searches the element specified via the pattern parameter in the
initial string beginning with the 0 position.
Returns the element specified via the pattern parameter offset in the
initial string if succeeded; Otherwise - returns -1.
param pattern, offset;
Searches the element specified via the pattern parameter in the
initial string beginning with the position specified via the offset
parameter.
Returns the element specified via the pattern parameter offset in the
initial string if succeeded; Otherwise - returns -1.
param pattern, offset, Func;
Searches the element specified via the pattern parameter in the
initial string beginning with the position specified via the offset
parameter.
Returns the element specified via the pattern parameter offset in the
initial string if succeeded; Otherwise - returns -1.
To determine the elements' equality the function specified via the
Func parameter is used. This function is provided by a user and
receives 3 parameters. As the first parameter this functions receives
the pointer to the pattern parameter, as the second parameter this
functions receives the pointer to the vector's element which is compared
to, as the third parameter this functions receives the pointer the vector
for which this method is called. The function specified via the Func
parameter returns TRUE in case of equality;
Otherwise - FALSE.
param pattern, funct;
This method returns a vector that consists of all the indexes of
the sample specified via the pattern parameter occurrence within
the self vector.
pattern Sample.
funct Comparison function.
param key, path;
#rus Метод производит поиск всех элементов вектора по полю заданному "путем" в элементах.
#rus Примеры путей: ".Name", ".Person.Name".
#rus Вернет вектор индексов на найденный елемент вектора.
param key, path;
#rus Метод производит поиск всех элементов вектора по полю заданному "путем" в элементах.
#rus Примеры путей: ".Name", ".Person.Name".
#rus Вернет вектор указателей на найденные елементы вектора.
param name;
#rus Возвращает вектор индексов всех существующих элементов с именем name.
#rus Элементы вектора должны иметь метод GetName(void).
#rus См. также класс Name.
param key, path;
#rus Метод производит поиск элементов вектора по полю заданному "путем" в элементах.
#rus Примеры путей: ".Name", ".Person.Name".
#rus Вернет индекс первого подходящего элемента или -1.
param key, path;
#rus Метод производит поиск элементов вектора по полю заданному "путем" в элементах.
#rus Примеры путей: ".Name", ".Person.Name".
#rus Вернет указатель на найденный елемент вектора или EMPTY.
param Func;
Returns the index of an element in which the function has the maximum
value (according to the function specified via the Func parameter).
The function specified via the Func parameter receives two vector
elements and returns TRUE if the first element is larger than the
second one; otherwise FALSE.
Returns the index of the maximum element
Returns the index of the minimum element
#rus Возвращает индекс первого элемента с именем name.
#rus Элементы вектора должны иметь метод GetName(void).
#rus Возвращает -1, если таких элементов нет.
#rus См. также класс Name.
param MethodName, [Params];
Executes the method whose name is specified
via the MethodName parameter for all vector
elements.
Params - parameters (the same for all) that
are passed to the method specified via the
MethodName parameter which is called for
each vector element.
param Op;
Performs the procedure specified via the Op
parameter on all vector elements.
The Op parameter should specify the function
that receives only one parameter.
param Op, [Params];
Performs the procedure specified via the Op
parameter on all vector elements.
The reference to the next vector element is
passed to the function specified via the Op
parameter, if there are any other parameters
they are also passed.
param MethodName, [Params];
#rus Выполняет метод с именем MethodName для всех
#rus элементов вектора.
#rus Params - параметры (одни и те же) передаваемые в
#rus вызываемый для каждого элемента метод MethodName.
#rus Наличие ошибки при выполнении процедуры над одним элементом
#rus не прекращает выполнение цикла.
#rus Метод возвращает кол-во успешных иттераций.
param Op;
#rus Выполняет процедуру Op над всеми элементами вектора.
#rus Op должена быть функцией принимающей один параметр.
#rus Наличие ошибки при выполнении процедуры над одним элементом
#rus не прекращает выполнение цикла.
#rus Метод возвращает кол-во успешных иттераций.
param Op, [Params];
#rus Выполняет процедуру Op над всеми элементами вектора.
#rus В функцию Op передается в качестве первого параметра
#rus ссылка на очередной элемент вектора, и, если есть
#rus дополнительные параметры, то они передаются также.
#rus Наличие ошибки при выполнении процедуры над одним элементом
#rus не прекращает выполнение цикла.
#rus Метод возвращает кол-во успешных иттераций.
param v, compFunc, SaveDublicate;
#rus Возвращает слияние двух, сортированных векторов v и self,
#rus используя функцию compFunc для бинарного поиска.
#rus Если SaveDublicate == FALSE, то в результирующий вектор елемент, присутствующий в обоих вектора v и self
#rus будет записан только раз. При этом предполагаеться, что в этом случае вектора v и self не содержат дубликатов.
#rus Если SaveDublicate == TRUE, то результирующий вектор будет содержать все элементы векторов v и self.
param i;
Returns thevector element with the number
specified via the i parameter.
param var, offset;
Inserts var into vector to the position specified via the offset
parameter. If var represents vector which consists of n elements then
n elements are inserted.
param var, offset;
Inserts the value specified via the var parameter as the vector's
element to the position specified via the offset parameter.
param v, compFunc;
#rus Возвращает пересечение двух, сортированных векторов v и self,
#rus используя функцию compFunc для бинарного поиска.
Returns the pointer to the last vector's element.
param len;
Returns sub-vector that consists of left vector character whose number
is specified via the len parameter.
Returns vector length (according to the first dimension for the
multidimensional vector).
param offset, len;
Returns the sub-vector that begins with the position specified via
the offset parameter and has length specified via the len parameter
from the appropriate vector.
param i, ch;
Sets the element with the number specified via the
i parameter to the value specified via the ch parameter.
#rus Удаляет из сортированного массива self все элементы имеющиеся в excludeList
#rus используя функцию compFunc для бинарного поиска.
param order;
This method performs sorting of the vector's elements. The order
parameter determines the sorting order: FALSE - direct, TRUE - reverse
with respect to the natural order which is defined by the comparison
method for the vector's elements (the vector's elements should be
comparable, otherwise the "Casting Error" error is raised).
param from, to, order;
This method performs sorting of the vector's elements beginning from
the element whose number is specified via the from parameter to the
element whose number is specified via the to parameter. The order
parameter determines the sorting order: FALSE - direct, TRUE - reverse
with respect to the natural order which is defined by the comparison
method for the vector's elements (the vector's elements should be
comparable, otherwise the "Casting Error" error is raised).
param from, to, Func;
This method performs sorting of the vector's elements beginning from
the element whose number is specified via the from parameter to the
element whose number is specified via the to parameter. The elements
order is defined by the comparison function specified via the Func
parameter This function is provided by a user and receives 3
parameters. As the first parameter this functions receives the pointer
to the key element, as the second parameter this functions receives
the pointer to the vector's element which is compared to, as the third
parameter this functions receives the pointer to the vector for which
this method is called. The function specified via the Func parameter
should return 1 if the key is greater than the element, -1 if the key
is smaller than the element or 0 if they are equal.
param Func;
This method performs sorting of the vector's elements. The elements
order is defined by the comparison function specified via the Func parameter.
This function is provided by a user and receives 3 parameters. As the first
parameter this functions receives the pointer to the key element, as
the second parameter this functions receives the pointer to the vector's
element which is compared to, as the third parameter this functions
receives the pointer to the vector for which this method is called.
The function specified via the Func parameter should return 1 if the
key is greater than the element, -1 if the key is smaller than the
element or 0 if they are equal.
This method performs sorting of the vector's elements in the natural
order which is defined by the comparison method for its elements (the
vector's elements should be comparable, otherwise the "Casting
Error" error is raised).
param order;
#rus Метод производит сортировку элементов вектора по полю заданному "путем" в элементах.
#rus Параметр order определяет порядок сортировки: TRUE - по возрастанию, FALSE - по убыванию.
#rus Примеры путей: ".Name", ".Person.Name".
#rus Вернет ссылку на себя.
param order;
#rus Метод производит сортировку элементов вектора по имени.
#rus Элементы вектора должны иметь метод GetName(void).
#rus Параметр order определяет порядок сортировки: TRUE - по возрастанию, FALSE - по убыванию.
#rus См. также класс Name.
param offset;
Deletes one element from the vector from the position specified via
the offset parameter.
param offset, len;
Deletes len elements from the vector beginning with the position
specified via the offset parameter.
param indexes;
Deletes several elements from a vector.
indexes Vector of element indexes that must be deleted.
#rus Удаляет все элементы вектора.
param f;
Deletes duplicate elements from a vector.
f Function of elements equality. Receives references
to two compared elements and returns TRUE if they
are equal or FALSE if not.
Deletes duplicate elements from a vector.
Deletes elements that are equal to EMPTY from a vector.
#rus Удаляет последний элемент вектора.
param f;
#rus Удаляет из вектора повторяющиеся элементы.
#rus f Функция сортировки элементов. Получает ссылки
#rus на два сравниваемых элемента и возвращает
#rus -1, если первый элемент меньше второго, 0,
#rus если первый элемент равен второму, 1, если
#rus первый элемент больше второго.
#rus Комментарии
#rus В отличие от метода Vector::RemoveDups, данный метод
#rus предполагает возможность сортировки элементов вектора.
#rus Данный метод удаляет повторяющиеся элементы гораздо
#rus быстрее, чем метод Vector::RemoveDups.
Deletes duplicate elements from a vector.
Comments
In contrast to the Vector::RemoveDups method this
method assumes the elements sorting capability.
This method deletes duplicate elements much faster
than the Vector::RemoveDups method.
param offset, Vect;
Replaces the elements of the vector for which the method was called
with the elements of the vector specified via the Vect parameter
beginning with the position specified via the offset parameter.
param len;
Returns sub-vector that consists of right vector character whose
number is specified via the len parameter.
param a;
Fills all the vector's elements with the 'a' value.
param len;
Sets the vector length to the value specified via the len parameter
(according to the first dimension for the multidimensional vector).
param Func;
Sums all vector elements by calling the function
specified via the Func parameter and passing to it
the Item vector element by reference.
The value returned by the function specified via
the Func parameter as added to the sum.
This method returns the summation result.
Sums all vector elements.
This method assumes that the '+=' method is
defined for all vector elements.
This method returns the summation result.
param delim;
#rus Синтезирует строку из элементов вектора, являющихся
#rus строками.
#rus delim Разделитель, который должен быть вставлен
#rus между элементами вектора.
#rus Возвращает синтезируемую строку.
param delim;
#rus Синтезирует строку из элементов вектора.
#rus delim Разделитель, который должен быть вставлен
#rus между элементами вектора.
#rus Возвращает синтезируемую строку.
#rus Комментарии
#rus В отличие от метода Vector::SynStr данный метод синтезирует
#rus строки, получающиеся с помощью вызова функции Print для
#rus каждого элемента.
param delim, f;
#rus Синтезирует строку из элементов вектора.
#rus delim Разделитель, который должен быть вставлен
#rus между элементами вектора.
#rus f Функция, вызываемая для каждого элемента и
#rus возвращающая строку.
#rus Возвращает синтезируемую строку.
#rus Комментарии
#rus В отличие от метода Vector::SynStr данный метод синтезирует
#rus строки, получающиеся с помощью вызова функции f для
#rus каждого элемента.
param offset;
Returns the sub-vector that begins with the position specified via the
offset parameter and continued till the end of the vector from which
the method was called.
param Vect;
Copy-constructor which is always called indirectly. (for more
information see the Pluk language description).
param x, ...;
This is the Constructor of the vector whose dimension is x, ... . That
is if more than one parameter is passed then the multidimensional
vector is created.
param Vect;
This is the Constructor that creates copy of the vector specified via
the Vect parameter. As the assignment operator is applicable for vectors
copying, this constructor is designed for direct calling from descendant
classes of the Vector class.
This is the operator of the vector's elements access. The parameter is
converted to the integer index.
#rus Класс VectorDif выполняет сравнение двух векторов.
#rus Add1 - индексы элементов в первом векторе, которых нет во втором.
#rus Add2 - индексы элементов во втором векторе, которых нет в первом.
#rus Common - вектор пар индексов, совпадающих элементов двух векторов.
#module root.baseclasses.helper
Methods:
param Vect1, Vect2, Func;
#rus Сравнивает два неупорядоченных вектора ( множества ).
#rus Параметры:
#rus Vect1 - Первый вектор.
#rus Vect2 - Второй вектор.
#rus Func - Функция сравнения двух элементов векторов.
#rus Внимание:
#rus Поле VectorDif::Common в этой функции не заполняется.
param Vect1, Vect2, Func;
#rus Сравнивает два упорядоченных вектора.
#rus Параметры:
#rus Vect1 - Первый вектор.
#rus Vect2 - Второй вектор.
#rus Func - Функция сравнения двух элементов векторов.
#rus Возвращает TRUE, если сравненные вектора одинаковы,
#rus FALSE - иначе.
#module root.baseclasses
The WString class that encapsulates major Unicode-string operations is
defined in Pluk.
Methods:
- !=(refer object BaseString)
- <(refer object BaseString)
- <=(refer object BaseString)
- <>(refer object BaseString)
- ==(refer object BaseString)
- >(refer object BaseString)
- >=(refer object BaseString)
- @(char)
- @(int)
- @(refer object BaseString)
- @=(char)
- @=(int)
- @=(refer object BaseString)
- AppendNumbSubStr(number, refer object BaseString)
- CharToLine(number)
- ClearString(void)
- ConvertToWindowsString(void)
- CopyString(refer object BaseString)
- CopyString(refer object String, int)
- Find(char)
- Find(char, number)
- Find(int)
- Find(int, number)
- Find(refer object BaseString)
- Find(refer object BaseString, number)
- FindNon(char)
- FindNon(char, number)
- FindNon(int)
- FindNon(int, number)
- GetByte(number)
- GetCRC(void)
- GetHash(void)
- GetLastByte(void)
- GetWord(number)
- Insert(refer object BaseString, number)
- IsAlNum(number)
- IsAlpha(number)
- IsDigit(number)
- IsHexDigit(number)
- IsNumber(void)
- IsPrint(number)
- IsSpace(number)
- IsZero(void)
- Left(number)
- Len(void)
- LineToChar(number)
- Mid(number, number)
- PutByte(number, number)
- Remove(int, int)
- Replace(number, refer object BaseString, number)
- ReplaceAll(refer object BaseString, refer object BaseString)
- ReplaceChar(number, number, number)
- Right(number)
- SetLen(number)
- SetString(number)
- Tail(number)
- ToCString(void)
- ToLower(void)
- ToUpper(void)
- Tokenize(refer object BaseString)
- TrimLead(refer object BaseString)
- TrimLead(void)
- TrimTrail(refer object BaseString)
- TrimTrail(void)
- WString(char)
- WString(copy)
- WString(number)
- WString(refer object BaseString)
- WString(refer object String, int)
- WString(refer rfunc)
- WString(refer sfunc)
- WString(void)
param Str;
The '!=' operator compares the string for which it was called with the
string specified via the Str parameter. Returns TRUE if the string for
which the method was called is not equal to the string specified via
the Str parameter; Otherwise - FALSE.
param Str;
The '<' operator compares the string for which it was called with the
string specified via the Str parameter. Returns TRUE if the string for
which the method was called is less than the string specified via the
Str parameter; Otherwise - FALSE.
param Str;
The '<=' operator compares the string for which it was called with the
string specified via the Str parameter. Returns TRUE if the string for
which the method was called is less or equal to the string specified
via the Str parameter; Otherwise - FALSE.
param Str;
Compares the string for which the method was called with the string
specified via the Str parameter.
Returns 0 if these strings are equal, returns number greater than zero
if the string for which the method was called contains character with
greater code than the string specified via the Str parameter in the
same position when using the character-oriented comparison; Otherwise
returns -1.
param Str;
The '>=' operator compares the string for which it was called with the
string specified via the Str parameter. Returns TRUE if the string for
which the method was called is greater or equal to the string
specified via the Str parameter; Otherwise - FALSE.
param Str;
The '>' operator compares the string for which it was called with the
string specified via the Str parameter. Returns TRUE if the string for
which the method was called is greater than the string specified via
the Str parameter; Otherwise - FALSE.
param Str;
The '>=' operator compares the string for which it was called with the
string specified via the Str parameter. Returns TRUE if the string for
which the method was called is greater or equal to the string
specified via the Str parameter; Otherwise - FALSE.
param Str;
The @ operator is the operator of two strings concatenation (merging).
A new string which consists of operands merging is the result of its
performing.
For instance, as a result of the following expression:
c = "Hello " @ "World!";
the c variable contains the following string:
"Hello World!".
param Str;
The @= operator is the operator of two strings concatenation
(merging). The second string is added to the first one as a result of
its performing.
The pointer to the first string is returned.
param nCopy, SubStr;
This method adds nCopy times the string specified via the SubStr
parameter to the end of the string for which this method was called.
This method returns nothing.
param offset;
If a string contains a set of carriage returns (a set of lines) then
this method returns the number of the line to which the character with
the offset specified via the offset parameter belongs. If the offset
is out of the string range then -1 is returned.
Cleares string (populates it with zeros) in the self object.
Returns nothing.
#rus Замеoщает все строки заканичивающиеся на \n
#rus на строки заканчивающиеся на \r\n.
param Str;
Copies information from the string specified via the Str parameter to
the object from which class the method was called. The method is
designed to be used from descendant classes of the String class.
param ch;
Searches the character specified via the ch parameter in the initial
string beginning with the 0 position.
Returns the character specified via the ch parameter offset in the
initial string if succeeded; Otherwise - returns -1.
param ch, offset;
Searches the character specified via the ch parameter in the initial
string beginning with the position specified via the offset parameter.
Returns the character specified via the ch parameter offset in the
initial string if succeeded; Otherwise - returns -1.
param ch;
Searches the character specified via the ch parameter in the initial
string beginning with the 0 position.
Returns the character specified via the ch parameter offset in the
initial string if succeeded; Otherwise - returns -1.
param ch, offset;
Searches the character specified via the ch parameter in the initial
string beginning with the position specified via the offset parameter.
Returns the character specified via the ch parameter offset in the
initial string if succeeded; Otherwise - returns -1.
param pattern;
Searches the sub-string specified via the pattern parameter in the
initial string beginning with the 0 position.
Returns the sub-string specified via the pattern parameter offset in
the initial string if succeeded; Otherwise - returns -1.
param pattern, offset;
Searches the sub-string specified via the pattern parameter in the
initial string beginning with the position specified via the offset
parameter.
Returns the sub-string specified via the pattern parameter offset in
the initial string if succeeded; Otherwise - returns -1.
param ch;
Searches the character which is not coincide with the character
specified via the ch parameter in the initial string beginning with
the 0 position.
Returns the character offset in the initial string if succeeded;
Otherwise - returns -1.
param ch, offset;
Searches the character which is not coincide with the character
specified via the ch parameter in the initial string beginning with
the position specified via the offset parameter.
Returns the character offset in the initial string if succeeded;
Otherwise - returns -1.
param ch;
Searches the character which is not coincide with the character
specified via the ch parameter in the initial string beginning with
the 0 position.
Returns the character offset in the initial string if succeeded;
Otherwise - returns -1.
param ch, offset;
Searches the character which is not coincide with the character
specified via the ch parameter in the initial string beginning with
the position specified via the offset parameter.
Returns the character offset in the initial string if succeeded;
Otherwise - returns -1.
param offset;
Returns a Unicode-character from the position specified via the offset
parameter.
Returns CRC-16 for its contents.
Returns hash-index for its contents.
Returns the contents of the last byte.
Complete equivalent of String->GetByte(String->Len() -1);
param offset;
This method returns string, which contains the word that consists of
numbers and letters and includes the position specified via the offset
parameter. If there is no any letter or number at the position
specified via the offset parameter then empty string is returned. for
instance, calling the "This is the example of using the
String::GetWord method"->GetWord(14) method returns the following
string: "example".
param Str, offset;
Inserts the string specified via the Str parameter into the string for
which the method is called. Insertion is performed from the position
specified via the offset parameter.
param offset;
This function returns TRUE if string contains letter or number at the
position specified via the offset parameter; Otherwise - FALSE.
param offset;
This function returns TRUE if string contains letter at the position
specified via the offset parameter; Otherwise - FALSE.
param offset;
This function returns TRUE if string contains number at the position
specified via the offset parameter; Otherwise - FALSE.
This function returns TRUE if string contains number or a, b, c, d, e,
f letter at the position specified via the offset parameter; Otherwise
- FALSE.
Returns TRUE if string represents the string that contains number;
Otherwise - FALSE.
param offset;
This function returns TRUE if string contains printable character at
the position specified via the offset parameter; Otherwise - FALSE.
param offset;
This function returns TRUE if string contains blank, tabulation
character, carriage return character, line-feed character or form-feed
character at the position specified via the offset parameter;
Otherwise - FALSE.
Returns TRUE if String is entirely populated with zeros; Otherwise - FALSE.
param len;
Returns sub-string that consists of left string character whose number
is specified via the len parameter.
Returns string length.
patam n;
If a string contains a set of carriage returns (a set of lines) then
this method returns the offset of the line whose number is specified
via the n parameter. If there is no line with this number within the
string then -1 is returned.
param offset, len;
Returns the sub-string that has length specified via the len parameter
and begins with the position specified via the offset parameter from
the appropriate string.
param offset, ch;
Writes the Unicode-character specified via the ch parameter to the
position specified via the offset parameter within the string for
which the method was called.
param offset, len;
Deletes len bytes from the string beginning with the position
specified via the offset parameter.
param offset, Str, len;
Deletes len bytes from the initial string beginning with the position
specified via the offset parameter; then inserts the string specified
via the Str parameter to the position specified via the offset
parameter;
param a, b;
#rus Замещает в данной строке все подстроки a на значение строки b.
#rus a Замешаемая подстрока.
#rus b Замещающая подстроку строка.
param offset, oChar, nChar;
Replaces all the characters in the string specified via the oChar
parameter to the characters specified via the nChar parameter
beginning with the position specified via the offset parameter.
param len;
Returns sub-string that consists of right string character whose
number is specified via the len parameter.
param len;
Sets the string length to the value specified via the len parameter.
If string becomes longer then its end is cleared (added with zeros).
param c;
Populates string with the character specified via the c parameter.
param offset;
Returns the sub-string that begins with the position specified via the
offset parameter and continued till the end of the string from which
the method was called.
This function converts string to the C-string that is cut of the
string at the first encountered zero.
This function returns string which represent the copy of the initial
string but all Latin letters are converted to small letters.
This function returns string which represent the copy of the initial
string but all Latin letters are converted to capital letters.
param sym;
This method returns vector which consists of strings that are obtained
via cutting the initial string in the positions where the characters
specified via the sym parameter are encountered. For instance, calling
the "This is the example of using the String::Tokenize method"-
>Tokenize(" :") method returns vector which consists of 10 elements:
<<"This", "is", "the", "example", "of", "using", "the", "String",
"Tokenize", "method">>.
param Space;
Deletes characters that are contained in the string specified via the
Space parameter in the beginning of the string for the self object.
Returns nothing.
Deletes blanks in the beginning of the string for the self object.
Returns nothing.
param Space;
Deletes characters that are contained in the string specified via the
Space parameter at the end of the string for the self object.
Returns nothing.
Deletes blanks at the end of the string for the self object.
Returns nothing.
param c;
Creates a string composed of one character.
Copy-constructor which is always called indirectly. (for more
information see the Pluk language description).
param len;
Constructor of an empty string whose length is determined via
the len parameter.
param Str;
Constructor that creates a Unicode-copy of the string specified via
the Str parameter.
param Func;
Constructor that creates a string by copying the contents of the
function specified via the Func parameter.
param Func;
Constructor that creates a string by copying the contents of the
function specified via the Func parameter.
param x;
Returns the absolute value of the value determined via the x
parameter.
param x;
Returns arccosine of the value determined via the x parameter.
Returns the complete file name obtained from the folder
name and file name. Inserts a delimiter (slash) if it
is necessary.
Parameters: folder name (String), extension (String).
param x;
Returns arcsine of the value determined via the x parameter.
param x;
Returns arctangent of the value determined via the x parameter.
The Clock function returns the number of seconds (float) since
the program launching.
Compares two file names (regardless of characters' case).
Returns TRUE if these names are coincident.
Parameters: the 1-st file name (String), the 2-nd file name (String).
param x;
Returns cosine of the value determined via the x parameter.
Returns a pathname with the default extension attached.
Parameters: string - pathname, string - extension
Parameters: file name (String), extension (String).
param x;
Returns exponent from the value determined via the x parameter.
Returns a pathname with the specified extension attached.
Parameters: string - pathname, string - extension
Parameters: file name (String), extension (String).
param var;
In order to determine the vector dimension (the first one) the Len()
can be used. But if the variable, for which the Len method is called,
is not an object of the Vector class or its descendant then the
"Method not found" error may be raised. Moreover, if this object has
the defined Len method, an error is not raised in spite of the fact
that this object neither vector nor its descendant (for instance, it
may be string).
The GetDim function returns the dimensionality of the variable
specified via the var parameter if this variable is a vector or its
descendant; otherwise it returns -1.
param path, ext;
Returns the name of temporary file. The path parameter specifies the
folder where the temporary file is created; the ext parameter contains
the temporary file name extension.
Returns path to the folder where temporary files are stored.
param x;
Returns maximal integer number less than the value determined via the
x parameter.
param x;
Returns minimum integer number greater than the value determined via
the x parameter.
Checks whether path is absolute that is whether it is independent on
the current volume or folder.
Returns TRUE if the path is absolute; otherwise FALSE.
param ch;
Returns TRUE if the ch parameter is a number or letter, otherwise FALSE.
param ch;
Returns TRUE if the ch parameter is a letter, otherwise FALSE.
param ch;
Returns TRUE if the ch parameter is a number, otherwise FALSE.
param ch;
Returns TRUE if the ch parameter is a number or hexadecimal sign (that
is a, b, c, d, e, f letter), otherwise FALSE.
param var;
Returns TRUE if the var parameter is a number, otherwise FALSE.
param ch;
Returns TRUE if the ch parameter is a printable character, otherwise FALSE.
param ch;
Returns TRUE if the ch parameter is a blank, tabulation character,
carriage return character, line-feed character, form-feed character;
Otherwise - FALSE.
param var;
Returns TRUE if the var parameter is a function/string, otherwise FALSE.
Returns a folder name from the complete file name.
Parameter: file name (String).
Returns the file name extension.
Parameter: file name (String).
Returns name + extension from the complete file name.
Parameter: file name (String).
Returns only name (without extension and folder) from the complete
file name.
Parameter: file name (String).
param x;
Returns common logarithm of the value determined via the x parameter.
param x;
Returns natural logarithm of the value determined via the x parameter.
param a, b;
Returns logarithm a to the base b.
param a, b;
param a, b;
Returns the minimum element from the a, b pair
param a, b;
Returns the maximum element from the a, b pair
The arbitrary set of variables is passed to the Print function as
parameters. Variables are printed in the "default" format. The Print
function returns string that contains printed variables. In contrast
to the trace operator the outside output is not generated.
Notes.
The "default" format has the 512 bytes per string limitation.
That is why if the string whose length is more than 512 bytes is
being printed then the first 512 bytes are printed and then
omission points "..." are printed.
The C- convention is accepted when printing a string, that is
the string is printed till the first zero character if it is
encountered within the string.
Similarly there is a limitation concerning printing vector
elements. Not more than 25 elements are printed and then
omission points "..." are printed.
param Str;
The PrintString function returns string where all " characters are
substituted for \", all \ characters are substituted for \\, etc.
param format;
The Printf function as the Print function returns string that contains
printed variables which were passed as parameters. In contrast to the
trace operator the outside output is not generated.
The first (required) parameter is the printer format, others
parameters (not required) are printed variables.
The format parameter contains string which is reprinted to the
returned string as is except for the print formatting characters
beginning with the % sign (if it is necessary to print the percent
sign itself in the returned string, you should write %%). Formatting
characters are adjusted in point-to-point accordance with passed
parameters as it is performed in the printf function in C.
Automatic type conversion is performed to the type specified in the
format parameter when printing numbers and strings. If conversion is
impossible then the "Casting Error" error is raised.
The following format character values are available:
v - variable printing in the "default" format. In addition all
possible types including structures, vectors etc. are printed.
d - integer number printing (for more information see C printing
format),
x - integer number in hexadecimal format printing,
f, g, e - numbers with floating point printing (for more
information see C printing format),
c - character printing,
s - string printing,
m - string in the memory dump form printing.
param N;
Returns random number of double type in the range of 0..N.
Note 1:
Initiate the random-number generator via the SeedRand function to
obtain the unique sequence .
It is reasonable to take the number of milliseconds from the beginning
of day (the time field of the Time class) as the SeedRand function
parameter.
Note 2:
In spite of N normalization, the random-number generator in fact
realizes integer random numbers in the range of 0 .. 2147483647
according to the algorithm that was designed by Park and Miller and
modified by Base and Darhamn.
param Str;
The ScanString function returns string where all \" characters are
substituted for ", all \\ characters are substituted for \, etc.
param Seed;
Initiate the random-number generator for new sequence.
Numbers in the range of 0 .. 2147483647B are possible as the Seed
parameter.
param a;
#rus Return 1 if a > 0, return 0 if a == 0, else return -1
param x;
Returns sine of the value determined via the x parameter.
param x;
Returns square root from the value determined via the x parameter.
param var1, var2;
The function changes the contents between the variable specified via \
the var1 parameter and the variable specified via the var2 parameter.
param x;
Returns tangent of the value determined via the x parameter.
#rus Добавляет к пути разделитель если отсутствует.
param ch;
Returns the character specified via the ch parameter converted to
lowercase, if this character is a Latin character.
#rus Вне зависимости от того, передан ли сам объект или указатель
#rus на него вернет указатель на этот объект.
#rus Вне зависимости от того, передан ли сам объект или указатель
#rus на него вернет ссылку на этот объект.
param ch;
Returns the character specified via the ch parameter converted to
capital, if this character is a Latin character.
param Vect1, Vect2, Func;
#rus Сравнивает два неупорядоченных вектора ( множества ).
#rus Возвращает объект класса VectorDif - результат сравнения
#rus двух векторов.
#rus Параметры:
#rus Vect1 - Первый вектор.
#rus Vect2 - Второй вектор.
#rus Func - Функция сравнения двух элементов векторов.
#rus Внимание:
#rus Поле VectorDif::Common в этой функции не заполняется.
param Vect1, Vect2, Func;
#rus Сравнивает два упорядоченных вектора.
#rus Возвращает объект класса VectorDif - результат сравнения
#rus двух векторов.
#rus Параметры:
#rus Vect1 - Первый вектор.
#rus Vect2 - Второй вектор.
#rus Func - Функция сравнения двух элементов векторов.
param condition;
Checks the specified condition (arbitrary Boolean expression).
If the condition is not met then the ERR_ASSERTION_FAILED error is
raised together with indicating the file, function and string where
the condition check is set.
- !=, method of class String
- !=, method of class Vector
- !=, method of class WString
- &, method of class RECT
- &, method of class String
- &=, method of class String
- *, method of class Pluk
- *, method of class POINT
- *, method of class POINT3
- *=, method of class POINT
- *=, method of class POINT3
- *=, method of class RECT
- +, method of class Date
- +, method of class POINT
- +, method of class POINT3
- +=, method of class Date
- +=, method of class POINT
- +=, method of class POINT3
- ,=, method of class Vector
- -, method of class Date
- -, method of class POINT
- -, method of class POINT3
- -=, method of class Date
- -=, method of class POINT
- -=, method of class POINT3
- /, method of class POINT
- /, method of class POINT3
- /=, method of class POINT
- /=, method of class POINT3
- <, method of class String
- <, method of class Vector
- <, method of class WString
- <=, method of class String
- <=, method of class Vector
- <=, method of class WString
- <>, method of class DictionaryItem
- <>, method of class String
- <>, method of class Vector
- <>, method of class WString
- ==, method of class String
- ==, method of class Vector
- ==, method of class WString
- >, method of class String
- >, method of class Vector
- >, method of class WString
- >=, method of class String
- >=, method of class Vector
- >=, method of class WString
- @, method of class String
- @, method of class Vector
- @, method of class WString
- @=, method of class String
- @=, method of class Vector
- @=, method of class WString
- [], method of class ParseTree
- [], method of class Vector
- ^, method of class String
- ^=, method of class String
- Abs, function
- AbsHorz, method of class RECT
- AbsVert, method of class RECT
- Access, method of class Dir
- Access, method of class File
- Acos, function
- Add, method of class DictionaryAny
- Add, method of class DictionaryInt
- Add, method of class DictionaryPtr
- Add, method of class DictionaryStr
- AddClassMembers, method of class Pluk
- AddMembers, method of class Pluk
- AddParents, method of class Pluk
- AddPathName, function
- AddSelf, method of class ClassGroupItem
- AllowIdle, method of class Pluk
- Angle, method of class POINT
- AppendByMove, method of class Vector
- AppendNumbSubStr, method of class String
- AppendNumbSubStr, method of class WString
- Asin, function
- assert, function
- Atg, function
- BaseString, class
- BFind, method of class Vector
- BFindName, method of class Vector
- BigTime, class
- BigTime, method of class BigTime
- BInsert, method of class Vector
- BInsertName, method of class Vector
- Buffer, class
- Buffer, method of class Buffer
- CalculateVolume, method of class Dir
- CGetError, method of class Pluk
- CGetErrorEx, method of class Pluk
- ChangeDir, method of class Dir
- Char, method of class Number
- CharToLine, method of class String
- CharToLine, method of class WString
- Check, method of class DictionaryAny
- Check, method of class DictionaryInt
- Check, method of class DictionaryPtr
- Check, method of class DictionaryStr
- CheckContact, method of class PCom
- CheckFunc, method of class Pluk
- CheckLogin, method of class Pluk
- ClassGroupItem, class
- ClassGroupItem, method of class ClassGroupItem
- Clear, method of class Dir
- ClearBreakPoints, method of class Pluk
- ClearBuffer, method of class Buffer
- ClearBuffer, method of class FBuffer
- ClearCode, method of class Pluk
- ClearString, method of class String
- ClearString, method of class WString
- Clipboard, class
- Clipboard, method of class Clipboard
- Clock, function
- Close, method of class File
- CodePassword, method of class Pluk
- CodeToName, method of class Locale
- ComparePath, function
- CompareSets, method of class VectorDif
- CompareVectors, method of class VectorDif
- Compress, method of class Pluk
- ConnectBuffer, method of class Buffer
- ConnectBuffer, method of class FBuffer
- ConnectTo, method of class PCom
- ConvertToWindowsString, method of class String
- ConvertToWindowsString, method of class WString
- Copy, method of class Buffer
- Copy, method of class FBuffer
- CopyResource, method of class Pluk
- CopyString, method of class String
- CopyString, method of class WString
- CopyTo, method of class Dir
- CopyTo, method of class File
- CopyVector, method of class Vector
- Cos, function
- Create, method of class Dir
- CRegError, method of class Pluk
- CrossLine, method of class RECT
- CrossSegment, method of class RECT
- CSetError, method of class Pluk
- Date, class
- Date, method of class Date
- DateInterval, class
- Day, method of class Date
- DayOfWeek, method of class Date
- DayOfYear, method of class Date
- Debug, method of class PDebCom
- Decode, method of class Pluk
- Decompress, method of class Pluk
- DefaultExtension, function
- Delay, method of class Pluk
- Dictionary, class
- Dictionary, method of class Dictionary
- DictionaryAny, class
- DictionaryAny, method of class DictionaryAny
- DictionaryAnyObj, class
- DictionaryAnyObj, method of class DictionaryAnyObj
- DictionaryInt, class
- DictionaryInt, method of class DictionaryInt
- DictionaryIntObj, class
- DictionaryIntObj, method of class DictionaryIntObj
- DictionaryItem, class
- DictionaryItem, method of class DictionaryItem
- DictionaryPtr, class
- DictionaryPtr, method of class DictionaryPtr
- DictionaryStr, class
- DictionaryStr, method of class DictionaryStr
- Dir, class
- Dir, method of class Dir
- DirectFile, class
- Disconnect, method of class PCom
- DisconnectBuffer, method of class Buffer
- DisconnectBuffer, method of class FBuffer
- DosToWin1251, method of class String
- Double, method of class Number
- DoubleToString, method of class String
- Dump, class
- Encode, method of class Pluk
- Exec, method of class Pluk
- ExecAsUser, method of class Pluk
- ExecAtConnectAccount, method of class PCom
- Exp, function
- FBuffer, class
- FBuffer, method of class FBuffer
- File, class
- File, method of class File
- FileAttr, method of class Dir
- FileDate, method of class Dir
- FileName, method of class Dir
- FileOf, method of class Pluk
- FileSize, method of class Dir
- Find, method of class Buffer
- Find, method of class DictionaryAny
- Find, method of class DictionaryInt
- Find, method of class DictionaryPtr
- Find, method of class DictionaryStr
- Find, method of class String
- Find, method of class Vector
- Find, method of class WString
- FindAll, method of class Vector
- FindAllByField, method of class Vector
- FindAllByFieldP, method of class Vector
- FindAllName, method of class Vector
- FindByField, method of class Vector
- FindByFieldP, method of class Vector
- FindExtrem, method of class Vector
- FindMax, method of class String
- FindMax, method of class Vector
- FindMin, method of class String
- FindMin, method of class Vector
- FindName, method of class Vector
- FindNon, method of class String
- FindNon, method of class WString
- FindPtr, method of class DictionaryAnyObj
- FindPtr, method of class DictionaryIntObj
- FindPtr, method of class DictionaryPtr
- FindPtr, method of class DictionaryStr
- Flip, method of class POINT
- Float, method of class Number
- FloatToString, method of class String
- FlushIdle, method of class Pluk
- For_Each, method of class Vector
- For_Each_SkipError, method of class Vector
- ForceExtension, function
- FormatCode, method of class Pluk
- Fract, method of class BigTime
- Fract, method of class Time
- Free, method of class Pluk
- FromSixBits, method of class String
- Function, class
- Fuse, method of class ParseTree
- FuseBlock, method of class ParseTree
- FuseCode, method of class ParseTree
- FuseSubExpression, method of class ParseTree
- Fusion, method of class Vector
- GetAccessTime, method of class File
- GetAmount, method of class Money
- GetAttribute, method of class File
- GetBreakPointsList, method of class Pluk
- GetBreakPointsListIP, method of class Pluk
- GetByte, method of class Buffer
- GetByte, method of class String
- GetByte, method of class WString
- GetClassComment, method of class Pluk
- GetClassFileName, method of class Pluk
- GetClassLineNumb, method of class Pluk
- GetClassList, method of class Pluk
- GetClassMemberList, method of class Pluk
- GetCodeLen, method of class Pluk
- GetCodeName, method of class Pluk
- GetCodeStat, method of class Pluk
- GetComment, method of class Pluk
- GetConnectAccount, method of class PCom
- GetConstList, method of class Pluk
- GetContact, method of class PCom
- GetCRC, method of class String
- GetCRC, method of class WString
- GetCreateTime, method of class File
- GetCurLineOnAbsLevel, method of class Pluk
- GetCurLineOnLevel, method of class Pluk
- GetCurrent, method of class Dictionary
- GetCurrentProcessData, method of class Pluk
- GetDate, method of class Dir
- GetDateAsVector, method of class Date
- GetDim, function
- GetDiskFreeSpace, method of class Pluk
- GetDLLList, method of class Pluk
- GetDLLMethodsSpec, method of class Pluk
- GetElement, method of class Vector
- GetEnvironment, method of class Pluk
- GetEnvVar, method of class Pluk
- GetError, method of class Pluk
- GetErrorText, method of class Pluk
- GetFirst, method of class Dictionary
- GetFrameSize, method of class Pluk
- GetFreeMem, method of class Pluk
- GetFuncList, method of class Pluk
- GetFuncOnAbsLevel, method of class Pluk
- GetFuncOnLevel, method of class Pluk
- GetHash, method of class String
- GetHash, method of class WString
- GetHomePath, method of class Pluk
- GetInQueueLen, method of class PCom
- GetInVolume, method of class PCom
- GetIPOnAbsLevel, method of class Pluk
- GetIPOnLevel, method of class Pluk
- GetJulianDate, method of class Date
- GetLastByte, method of class String
- GetLastByte, method of class WString
- GetLength, method of class File
- GetLineCoeff, method of class POINT
- GetMaxInTraffic, method of class PCom
- GetMaxOutTraffic, method of class PCom
- GetMemberList, method of class Pluk
- GetMethodList, method of class Pluk
- GetModifTime, method of class File
- GetModuleList, method of class Pluk
- GetModuleName, method of class Pluk
- GetName, method of class Name
- GetNameOfLoadingDLL, method of class Pluk
- GetNext, method of class Dictionary
- GetNumberActiveObjects, method of class Pluk
- GetNumberInactiveObjects, method of class Pluk
- GetNumberOfConnections, method of class PCom
- GetNumberOfFreeConnections, method of class PCom
- GetNumbFiles, method of class Dir
- GetNumbItems, method of class Dictionary
- GetNumbParents, method of class Pluk
- GetNumbPointers, method of class Pluk
- GetNumbSubDir, method of class Dir
- GetObjectByID, method of class Pluk
- GetObjectID, method of class Pluk
- GetOSVersion, method of class Pluk
- GetOutQueueLen, method of class PCom
- GetOutVolume, method of class PCom
- GetParentName, method of class Pluk
- GetParentsList, method of class Pluk
- GetPriority, method of class Pluk
- GetProcessID, method of class Pluk
- GetProcessList, method of class Pluk
- GetProjectName, method of class Pluk
- GetRCodeLen, method of class Pluk
- GetReferList, method of class Pluk
- GetRemoteHostName, method of class PCom
- GetResDLLName, method of class Pluk
- Gets, method of class File
- GetSerializedSize, method of class Pluk
- GetSize, method of class Dir
- GetStackDepth, method of class Pluk
- GetStackList, method of class Pluk
- GetStackVarFromFrame, method of class Pluk
- GetStatus, method of class PDebCom
- GetString, method of class Buffer
- GetString, method of class FBuffer
- GetTempFileName, function
- GetTempPath, function
- GetTime, method of class Time
- GetTimeAsVector, method of class Time
- GetTimeout, method of class PCom
- GetUserName, method of class Pluk
- GetUUID, method of class Pluk
- Getv, method of class File
- GetvAll, method of class String
- GetVarList, method of class Pluk
- GetVarListOnAbsLevel, method of class Pluk
- GetVersion, method of class File
- GetVersion, method of class Pluk
- GetWord, method of class String
- GetWord, method of class WString
- HasClassMember, method of class Pluk
- HasMember, method of class Pluk
- Height, method of class RECT
- HideMainWindow, method of class Pluk
- Hour, method of class BigTime
- Hour, method of class Time
- HowOld, method of class Date
- HowOldByMonths, method of class Date
- Idle, class
- Idle, method of class Idle
- Idle, method of class Pluk
- Insert, method of class String
- Insert, method of class Vector
- Insert, method of class WString
- InsertElem, method of class Vector
- Int16ToString, method of class String
- Int32ToString, method of class String
- Integer, method of class Number
- Intersect, method of class Vector
- Interval, class
- IntPart, function
- IntPartEx, function
- IsAbsPath, function
- IsAlNum, function
- IsAlNum, method of class String
- IsAlNum, method of class WString
- IsAlpha, function
- IsAlpha, method of class String
- IsAlpha, method of class WString
- IsBufferConnected, method of class Buffer
- IsBufferConnected, method of class FBuffer
- IsClass, method of class Pluk
- IsClassInheritFrom, method of class Pluk
- IsCompressed, method of class Pluk
- IsConst, method of class Pluk
- IsDigit, function
- IsDigit, method of class String
- IsDigit, method of class WString
- IsDos866, method of class String
- IsEmpty, method of class VectorDif
- IsGlobalFunc, method of class Pluk
- IsGlobalVar, method of class Pluk
- IsGrayDIBits, method of class String
- IsHexDigit, function
- IsHexDigit, method of class String
- IsHexDigit, method of class WString
- IsInheritFrom, method of class Pluk
- IsInRect, method of class RECT
- IsMethod, method of class Pluk
- IsNeg, method of class BigTime
- IsNumber, function
- IsNumber, method of class String
- IsNumber, method of class WString
- IsPrint, function
- IsPrint, method of class String
- IsPrint, method of class WString
- IsSerialized, method of class Pluk
- IsSpace, function
- IsSpace, method of class String
- IsSpace, method of class WString
- IsStrFunc, function
- IsZero, method of class String
- IsZero, method of class WString
- JustDirName, function
- JustExtension, function
- JustFileName, function
- JustName, function
- KillProcess, method of class Pluk
- Last, method of class Vector
- Left, method of class String
- Left, method of class Vector
- Left, method of class WString
- LeftEx, method of class BaseString
- Len, method of class Buffer
- Len, method of class String
- Len, method of class Vector
- Len, method of class WString
- Lg, function
- LineOf, method of class Pluk
- LineToChar, method of class String
- LineToChar, method of class WString
- Listen, method of class PCom
- Ln, function
- Load, method of class Pluk
- Locale, class
- Locale, method of class Locale
- Lock, method of class File
- Log, function
- Max, function
- MemoryUsage, class
- Mid, method of class String
- Mid, method of class Vector
- Mid, method of class WString
- MidEx, method of class BaseString
- Min, function
- Min, method of class BigTime
- Min, method of class Time
- Module, method of class POINT
- Module, method of class POINT3
- Module2, method of class POINT
- Module2, method of class POINT3
- Money, class
- Money, method of class Money
- Month, method of class Date
- Move, method of class File
- Move, method of class RECT
- MoveTo, method of class RECT
- MyName, method of class Pluk
- MyPointer, method of class Pluk
- MySource, method of class Pluk
- Name, class
- Name, method of class Name
- NameOf, method of class Pluk
- Number, class
- OnConnect, method of class PCom
- OnDisconnect, method of class PCom
- OnReceive, method of class PCom
- OnRequest, method of class PCom
- Open, method of class File
- OpenDoc, method of class Pluk
- OrderBounds, method of class RECT
- Parse, method of class ParseTree
- ParseTree, class
- ParseTree, method of class ParseTree
- PCom, class
- PCom, method of class PCom
- PDebCom, class
- PDebCom, method of class PDebCom
- PLogCom, class
- Pluk, class
- PlukCriticalSection, class
- PlukThread, class
- POINT, class
- POINT, method of class POINT
- POINT3, class
- Pointer, class
- Print, function
- Print, method of class BigTime
- Print, method of class Date
- Print, method of class Money
- Print, method of class ParseTree
- Print, method of class Time
- Print, method of class TimeDate
- PrintBCode, method of class Pluk
- PrintDMY, method of class Date
- Printf, function
- Printf, method of class File
- PrintHowOld, method of class Date
- PrintMDY, method of class Date
- PrintString, function
- PrintSystem, method of class TimeDate
- PrintVersion, method of class Pluk
- PutByte, method of class Buffer
- PutByte, method of class String
- PutByte, method of class WString
- PutElement, method of class Vector
- Puts, method of class File
- Putv, method of class File
- QRemove, method of class Vector
- QSort, method of class Vector
- QSortByField, method of class Vector
- QSortByName, method of class Vector
- Rand, function
- Read, method of class Clipboard
- Read, method of class Dir
- Read, method of class File
- Receive, method of class PCom
- RECT, class
- RECT, method of class RECT
- RelHorz, method of class RECT
- ReLoad, method of class Pluk
- RelVert, method of class RECT
- Remove, method of class DictionaryAny
- Remove, method of class DictionaryInt
- Remove, method of class DictionaryPtr
- Remove, method of class DictionaryStr
- Remove, method of class Dir
- Remove, method of class File
- Remove, method of class String
- Remove, method of class Vector
- Remove, method of class WString
- RemoveClassMembers, method of class Pluk
- RemoveCurrent, method of class Dictionary
- RemoveDups, method of class Vector
- RemoveEMPTY, method of class Vector
- RemoveLast, method of class Vector
- RemoveMembers, method of class Pluk
- RemoveParent, method of class Pluk
- RemoveParents, method of class Pluk
- RemoveSelf, method of class ClassGroupItem
- RemoveSortableDups, method of class Vector
- Rename, method of class File
- Replace, method of class String
- Replace, method of class Vector
- Replace, method of class WString
- ReplaceAll, method of class String
- ReplaceAll, method of class WString
- ReplaceChar, method of class String
- ReplaceChar, method of class WString
- Request, method of class PCom
- Reset, method of class Dictionary
- Return, method of class PCom
- Right, method of class String
- Right, method of class Vector
- Right, method of class WString
- RightEx, method of class BaseString
- Rotate, method of class POINT
- Run, method of class PDebCom
- RunFile, method of class PDebCom
- RunFile, method of class Pluk
- RunNonPlukFile, method of class Pluk
- RunOnLevel, method of class PDebCom
- RunOnLevelSys, method of class PDebCom
- RunSys, method of class PDebCom
- SaveCode, method of class Pluk
- SaveRCode, method of class Pluk
- SaveTree, method of class Pluk
- ScanString, function
- Sec, method of class BigTime
- Sec, method of class Time
- SeedRand, function
- Seek, method of class File
- SendMessageToAll, method of class Clipboard
- SendMessageToAllObjects, method of class Pluk
- SendMessageToClassGroup, method of class Pluk
- Serialize, method of class Pluk
- Set, method of class Vector
- SetAccessMode, method of class File
- SetAccessTime, method of class File
- SetAttribute, method of class File
- SetBreakPointsList, method of class Pluk
- SetBreakPointsListIP, method of class Pluk
- SetBuffer, method of class Buffer
- SetBuffer, method of class FBuffer
- SetClassComment, method of class Pluk
- SetComment, method of class Pluk
- SetDateDMY, method of class Date
- SetDateMDY, method of class Date
- SetError, method of class Pluk
- SetFileAccessMode, method of class Dir
- SetFileAttribute, method of class Dir
- SetJulianDate, method of class Date
- SetLen, method of class String
- SetLen, method of class Vector
- SetLen, method of class WString
- SetModifTime, method of class File
- SetModuleName, method of class Pluk
- SetName, method of class Name
- SetNumberOfFreeConnections, method of class PCom
- SetPriority, method of class Pluk
- SetReferList, method of class Pluk
- SetString, method of class String
- SetString, method of class WString
- SetTempBreakPoint, method of class Pluk
- SetTempBreakPointIP, method of class Pluk
- SetTimeHMS, method of class Time
- SetTimeout, method of class PCom
- SFunction, class
- Sgn, function
- Silent, class
- Silent, method of class Silent
- Sin, function
- Sqrt, function
- StartUp, method of class PDebCom
- StopWaiting, method of class PCom
- String, class
- String, method of class String
- StringToDouble, method of class String
- StringToFloat, method of class String
- StringToInt16, method of class String
- StringToInt32, method of class String
- StringToUInt16, method of class String
- SubDirDate, method of class Dir
- SubDirName, method of class Dir
- SubDirSize, method of class Dir
- Sum, method of class Vector
- Swap, function
- SynStr, method of class Vector
- SynStrEx, method of class Vector
- Tail, method of class String
- Tail, method of class Vector
- Tail, method of class WString
- Tell, method of class File
- Tg, function
- Time, class
- Time, method of class BigTime
- Time, method of class Time
- TimeDate, class
- TimeDate, method of class TimeDate
- TimeDateInterval, class
- TimeInterval, class
- ToCString, method of class String
- ToCString, method of class WString
- ToDirName, function
- ToggleBreakPoint, method of class Pluk
- ToggleBreakPointIP, method of class Pluk
- ToInt, method of class RECT
- Tokenize, method of class String
- Tokenize, method of class WString
- ToLower, function
- ToLower, method of class String
- ToLower, method of class WString
- ToPtr, function
- ToRef, function
- ToSixBits, method of class String
- ToUpper, function
- ToUpper, method of class String
- ToUpper, method of class WString
- ToVolapuk, method of class String
- Transmit, method of class PCom
- TrimLead, method of class String
- TrimLead, method of class WString
- TrimTrail, method of class String
- TrimTrail, method of class WString
- UnLock, method of class File
- UnSerialize, method of class Pluk
- Update, method of class Date
- Update, method of class PDebCom
- Update, method of class Pluk
- Update, method of class Time
- Update, method of class TimeDate
- UpdateFile, method of class PDebCom
- UpdateFile, method of class Pluk
- UUIDFromText, method of class Pluk
- UUIDToText, method of class Pluk
- VarFromResource, method of class Pluk
- Vector, class
- Vector, method of class Vector
- VectorDif, class
- VectorDif::CompareSets, function
- VectorDif::CompareVectors, function
- VectorMul, method of class POINT3
- WaitEvent, method of class Pluk
- Width, method of class RECT
- Win1251ToDos, method of class String
- Write, method of class Clipboard
- Write, method of class File
- WString, class
- WString, method of class WString
- XLat, method of class String
- Year, method of class Date
- Zoom, method of class POINT
- |, method of class RECT
- |, method of class String
- |=, method of class String
- ~Buffer, method of class Buffer
- ~ClassGroupItem, method of class ClassGroupItem
- ~FBuffer, method of class FBuffer
- ~File, method of class File
- ~Idle, method of class Idle
- ~PCom, method of class PCom
- ~Silent, method of class Silent