Menu

zgl_ini.pas

Serge

function ini_LoadFromFile(const FileName: UTF8String): Boolean;
Rus: загрузить Ini-файл.
Eng: load ini file.

procedure ini_SaveToFile(const FileName: UTF8String);
Rus: сохранить Ini-файл.
Eng: save the Ini file.

procedure ini_Free;
Rus: очистка данных Ini.
Eng: clearing Ini data.

procedure ini_Add(const Section, Key: UTF8String);
Rus: добавляет в секцию новый ключ. Если секции не существует, то создаётся и секция.
Eng: adds a new key to the section. If the section does not exist, then the section is created.

procedure ini_Del(const Section, Key: UTF8String);
Rus: удалить ключ в данной секции.
Eng: delete the key in this section.

procedure ini_Clear(const Section: UTF8String);
Rus: удалить все ключи из данной секции. Если секции не существует, то она создастся.
Eng: remove all keys from this section. If the section does not exist, it will be created.

function ini_IsSection(const Section: UTF8String): Boolean;
Rus: проверка существования секции.
Eng: checking the existence of a section.

function ini_IsKey(const Section, Key: UTF8String): Boolean;
Rus: проверка существования ключа в секции.
Eng: checking the existence of a key in a section.

function ini_ReadKeyStr(const Section, Key: UTF8String): UTF8String;
Rus: считать строковое значение ключа в данной секции.
Eng: read the string value of the key in this section.

function ini_ReadKeyInt(const Section, Key: UTF8String): Integer;
Rus: считать числовое значение ключа в данной секции.
Eng: read the numeric value of the key in this section.

function ini_ReadKeyFloat(const Section, Key: UTF8String): Single;
Rus: считать числовое значение (с плавающей запятой) ключа в данной секции.
Eng: read the numeric value (floating point) of the key in this section.

function ini_ReadKeyBool(const Section, Key: UTF8String): Boolean;
Rus: считать булево значение ключа в данной секции.
Eng: read the Boolean value of the key in this section.

function ini_WriteKeyStr(const Section, Key, Value: UTF8String): Boolean;
Rus: записать строковое значение ключа в данной секции. True если ключ был найден, иначе создаётся новый ключ.
Eng: write the string value of the key in this section. True if the key was found, otherwise a new key is created.

function ini_WriteKeyInt(const Section, Key: UTF8String; Value: Integer): Boolean;
Rus: записать числовое значение ключа в данной секции. True если ключ был найден, иначе создаётся новый ключ.
Eng: write down the numeric value of the key in this section. True if the key was found, otherwise a new key is created.

function ini_WriteKeyFloat(const Section, Key: UTF8String; Value: Single; Digits: Integer = 2): Boolean;
Rus: записать числовое значение (с плавающей точной) ключа в данной секции. True если ключ был найден, иначе создаётся новый ключ.
Eng: write the numeric value (floating precision) of the key in this section. True if the key was found, otherwise a new key is created.

function ini_WriteKeyBool(const Section, Key: UTF8String; Value: Boolean): Boolean;
Rus: записать булево значение ключа в данной секции. True если ключ был найден, иначе создаётся новый ключ.
Eng: write the Boolean value of the key in this section. True if the key was found, otherwise a new key is created.

function _ini_ReadKeyStr(const Section, Key: UTF8String): PAnsiChar;
Rus: считать строковое значение ключа в данной секции. Возвращение строки PAnsiChar.
Eng: read the string value of the key in this section. Returning the string PAnsiChar.


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.