« rpmexpand
rpmgetsymlink »

rpmexpandnumeric

(PECL rpminfo >= 1.2.0)

rpmexpandnumeric — Retrieve numerical value of a RPM macro

説明

function rpmexpandnumeric(string $text): int

Retrieve numerical value of a RPM macro.

パラメータ

text

Text with RPM macros to expand.

戻り値

Macro expansion as a int. Boolean values (Y or y returns 1, N or n returns 0) are permitted as well. An undefined macro returns 0.

例

例1 A rpmexpandnumeric() example

<?php
$bits = rpmexpandnumeric("%__isa_bits");
print_r($bits);
?>

上の例の出力は以下となります。

64

参考

関連キーワード:
macro   Retrieve   rpmexpandnumeric   numerical   bits   rpmexpand   text   rpmgetsymlink   RpmInfo   rpminfo   Text   macros   expand   Macro   expansion   Boolean   values   permitted   well   undefined   example   print   参考   expanded
関連する関数・ページ:
function.rpmexpand   ref.rpminfo   book.rpminfo   function.rpmdefine   parle-lexer.insertmacro   parle-rlexer.insertmacro