1Parse::Pidl::Util(3) User Contributed Perl Documentation Parse::Pidl::Util(3)
2
3
4
6 Parse::Pidl::Util - Generic utility functions for pidl
7
9 use Parse::Pidl::Util;
10
12 Simple module that contains a couple of trivial helper functions used
13 throughout the various pidl modules.
14
16 MyDumper a dumper wrapper to prevent dependence on the Data::Dumper
17 module unless we actually need it
18 has_property see if a pidl property list contains a given property
19 property_matches see if a pidl property matches a value
20 is_constant return 1 if the string is a C constant
21 make_str return a "" quoted string, unless already quoted
22 unmake_str unquote a "" quoted string
23 print_uuid Print C representation of a UUID.
24 ParseExpr Interpret an IDL expression, substituting particular
25 variables.
26 ParseExprExt Interpret an IDL expression, substituting particular
27 variables. Can call callbacks when pointers are being dereferenced or
28 variables are being used.
29 genpad return an empty string consisting of tabs and spaces suitable
30 for proper indent of C-functions.
31 parse_int
32 Try to convert hex and octal strings to numbers. If a string
33 doesn't look hexish or octish it will be left as is. If the
34 unconverted string is actually a decimal number, Perl is likely to
35 handle it correctly.
36
37 parse_range
38 Read a range specification that might contain hex or octal numbers,
39 and work out what those numbers are.
40
41
42
43perl v5.38.0 2023-11-27 Parse::Pidl::Util(3)