Locale...::Flag(3pm)
π Locale::XGettext::Util::Flag(3pm) π
okay so bestie, welcome to Locale::XGettext::Util::Flag β it's A Flag Specification Used By xgettext, and yes it's a whole Perl module, we're doing this π
β¨ SYNOPSIS β¨
use Locale::XGettext::Util::Flag;
$keyword = Locale::XGettext::Flag->new(function => '__x',
arg => 1,
flag => 'perl-brace-format',
no => 0,
pass => 0);
πΈ DESCRIPTION πΈ
So this module basically wraps up a flag-y keyword spec for xgettext-style string extractors. It's giving "very niche, very specific" β like, it's only interesting for the girlies writing extractors that are built on top of Locale::XGettext. If that's not you, no shade, you can go π
π¦ CONSTRUCTORS π¦
new ARGS
Creates a brand new flag definition, slay β¨ ARGS has to be a hash (or just a sequence of key-value pairs) and it takes these items:
functionβ the name of the function, aka the keyword. This one is mandatory, no skipping it bestie, it's the main character π₯argβ an integerNgreater than 0, for the argument number.flagβ the name of the flag to be applied, like for example"perl-brace-format"or"no-perl-brace-format". If there's a prefix of"no-"or"pass-"it gets stripped off and interpreted accordingly β but only if"pass"or"no"weren't explicitly specified already. iykyk πnoβ the entry should be marked with"no-FLAG"instead of"FLAG".passβ as if"pass-FLAG"had been specified on the command-line. Heads up: this one is ignored byLocale::XGettext.
newFromString COMMAND_LINE_ARG
COMMAND_LINE_ARG has the same semantics as the argument to --flag of xgettext(1). And ngl, note that a prefix of "pass-" is ignored by Locale::XGettext! π
π METHODS π
functionβ get the function name for the keyword, periodt.argβ get the position of the argument.flagβ the flag (for example"perl-brace-format","c-format", etc.) β¨noβ true if the entry should be marked as"no-FLAG".passβ true if the flag was preceded by"pass-". Ignored byLocale::XGettext.dumpβ dumps the flag definition into a string suitable for an argument to the xgettext option'--flag'. Obsessed honestly π«Ά
π COPYRIGHT π
Copyright (C) 2016-2017 Guido Flohr <guido.flohr@cantanea.com>, all rights reserved.
π SEE ALSO π
Locale::XGettext, xgettext(1), perl(1)
and that's the whole vibe bestie π this was perl v5.36.0, dated 2023-02-05 β mwah, stan a classic πβ¨π¦
π¦ where this page comes from
- debian bookworm: liblocale-xgettext-perl 0.7-2 Β· LGPL-3.0-or-later
- debian trixie: liblocale-xgettext-perl 0.7-2 Β· LGPL-3.0-or-later
- ubuntu noble: liblocale-xgettext-perl 0.7-2 Β· LGPL-3.0-or-later
- ubuntu resolute: liblocale-xgettext-perl 0.7-2 Β· LGPL-3.0-or-later
- ubuntu stonking: liblocale-xgettext-perl 0.7-2 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms