.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.0102 (Pod::Simple 3.45) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "PkgConfig::LibPkgConf::Util 3" .TH PkgConfig::LibPkgConf::Util 3 2024-11-29 "perl v5.40.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME PkgConfig::LibPkgConf::Util \- Non OO functions for PkgConfig::LibPkgConf .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 1 \& use PkgConfig::LibPkgConf::Util qw( argv_split compare_version ); \& \& my @args = argv_split(\*(Aq\-L/foo \-lfoo\*(Aq); # (\*(Aq\-L/foo\*(Aq, \*(Aq\-lfoo\*(Aq); \& my $cmp = compare_version(\*(Aq1.2.3\*(Aq,\*(Aq1.2.4\*(Aq); .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" This module provides some useful utility functions that come along with \&\f(CW\*(C`libpkgconf\*(C'\fR, but are not object oriented and thus do not get their own class. .SH FUNCTIONS .IX Header "FUNCTIONS" .SS argv_split .IX Subsection "argv_split" .Vb 1 \& my @argv = argv_split $args; .Ve .PP Splits a string into an argument list. .SS compare_version .IX Subsection "compare_version" .Vb 1 \& my $cmp = compare_version($version1, $version2); .Ve .PP Compare versions using RPM version comparison rules as described in the LSB. Returns \-1 if the first version is greater, 0 if both versions are equal, 1 if the second version is greater. .SS path_relocate .IX Subsection "path_relocate" .Vb 1 \& my $path = path_relocate($path); .Ve .PP Relocates a path, possibly calling \fBrealpath()\fR or \fBcygwin_conv_path()\fR on it. .SS path_sep .IX Subsection "path_sep" .Vb 1 \& my $sep = path_sep; .Ve .PP Returns the path separator as understood by \f(CW\*(C`pkgconf\*(C'\fR. This is usually \&\f(CW\*(C`:\*(C'\fR on UNIX and \f(CW\*(C`;\*(C'\fR on Windows. .SH SUPPORT .IX Header "SUPPORT" IRC #native on irc.perl.org .PP Project GitHub tracker: .PP .PP If you want to contribute, please open a pull request on GitHub: .PP .SH "SEE ALSO" .IX Header "SEE ALSO" For additional related modules, see PkgConfig::LibPkgConf .SH AUTHOR .IX Header "AUTHOR" Graham Ollis .PP For additional contributors see PkgConfig::LibPkgConf .SH "COPYRIGHT AND LICENSE" .IX Header "COPYRIGHT AND LICENSE" This software is copyright (c) 2016 Graham Ollis. .PP This is free software; you may redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.