catalog_public_ids
catalog_public_ids (regexp, arr[, path])
This function fills the array arr with all the catalog entries in the specified catalog path list that match the regular expression regexp. The path parameter is optional; if it is not specified, the default catalog path is searched.
This function returns the number of entries found.
Example
local dtds[];
catalog_public_ids("-//.*//DTD", dtds,
main::ENV["APTCATPATH"]);
This example defines the dtds array, then fills the array with all the catalog entries that match the regular expression -//.*//DTD. This example searches the catalog path defined in the APTCATPATH environment variable.
Related Topics