FANDOM


Подсчёт ссылокEdit

int pcre_refcount(pcre *code, int adjust);

Функция pcre_refcount() используется для to maintain a reference count in the блоке данных, содержащем скомпилированный шаблон. It is provided for the benefit of applications that operate in an object-oriented manner, where different parts of the application may be using the same compiled pattern, but you want to free the block when they are all done.

Когда шаблон скомпилирован, счётчик ссылок инициализируется нулём. Он изменяется только при вызове данной функции,которая добавляет к нему значение параметра ajust (оно может быть как положительным, так и отрицательным). Функция возвращает новое значение. However, the value of the count is constrained to lie between 0 and 65535, inclusive. If the new value is outside these limits, it is forced to the appropriate limit value.

Except when it is zero, the reference count is not correctly preserved if a pattern is compiled on one host and then transferred to a host whose byte-order is different. (This seems a highly unlikely scenario.)

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.