docs::a...:String(3)

πŸ“¦ version 2.0.13, in nixos 26.05, nixpkgs unstable

🌸 NAME 🌸

Okay so this is APR::String β€” the Perl API for manipulating APR UUIDs πŸ’… (yes bestie, that's what the page says, we're not questioning it, we're just reporting it ✨). It's under "User Contributed Perl Documentation," which is giving very "made by the community, for the community" energy fr fr 🫢.


✨ Synopsis ✨

Like, here's the whole vibe in one look:

  use APR::String ();

  # 42_000 => " 41K",
  my $size_str = APR::String::format_size($size);

See that comment? 42_000 turns into " 41K" β€” iconic behaviour, no cap πŸ‘‘


πŸ¦‹ Description πŸ¦‹

"APR::String" provides strings manipulation API. That's it, that's the whole description, short and sweet and honestly kind of a serve πŸŽ€.


πŸ’– API πŸ’–

"APR::String" provides the following functions and/or methods β€” yes, the singular "functions" era, we love a tiny API 🌈:

⭐ format_size

  my $size_str = APR::String::format_size($size);
  • arg1: $size ( integer ) β€” you hand it a number, that's the whole task, you're doing amazing sweetie πŸ“
  • ret: $size_str β€” returns a formatted size string representation of a number. The size given in the string will be in units of bytes, kilobytes, or megabytes, depending on the size. The length of that string is always 4 chars long. Always. Four. Characters. No exceptions, the aesthetic is locked in πŸ’…

For example:

  0               => "  0 ",
  42              => " 42 ",
  42_000          => " 41K",
  42_000_000      => " 40M",

Look at those padded spaces β€” it's giving aligned columns, it's giving main character formatting energy ✨

  • since: 2.0.00 β€” vintage, but in a cool way πŸ‘‘

πŸ‘€ See Also πŸ‘€

mod_perl 2.0 documentation. Go read it, bestie, it's right there πŸ“š


mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0. Respect the license, it's literally the law πŸ™ˆ


πŸ’œ Authors πŸ’œ

The mod_perl development team and numerous contributors. Shoutout to the whole group chat of people who made this happen 🫢πŸ”₯


That's the whole page, bestie β€” short, sweet, and every single detail is still here πŸ’€βœ¨

Signing off from perl v5.42.3, dated 2023-10-21, on the docs::a...:String(3) page β€” catch you in the next manpage πŸ’–

πŸ“¦ where this page comes from