Indonesian CGIProxy:   [ UP ]   [Manage cookies]
mod_perl logo perl icon
previous page: APR::Status - Perl Interface to the APR_STATUS_IS_* macrospage up: mod_perl 2.0 APInext page: APR::Table - Perl API for manipulating APR opaque string-content tables

APR::String - Perl API for manipulating APR UUIDs






Writing Apache Modules with Perl and C

Writing Apache Modules with Perl and C

By Lincoln Stein, Doug MacEachern
Embedding Perl in HTML with Mason

Embedding Perl in HTML with Mason

By Dave Rolsky, Ken Williams
mod_perl2 User's Guide

mod_perl2 User's Guide

By Stas Bekman, Jim Brandt
Practical mod_perl

Practical mod_perl

By Stas Bekman, Eric Cholet
The mod_perl Developer's Cookbook

The mod_perl Developer's Cookbook

By Geoffrey Young, Paul Lindner, Randy Kobes
mod_perl Pocket Reference

mod_perl Pocket Reference

By Andrew Ford


Table of Contents

Synopsis

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


TOP

Description

APR::String provides strings manipulation API.



TOP

API

APR::String provides the following functions and/or methods:



TOP

format_size

  my $size_str = APR::String::format_size($size);
  • arg1: $size ( integer )
  • 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. For example:

        0               => "  0 ",
        42              => " 42 ",
        42_000          => " 41K",
        42_000_000      => " 40M",
  • since: 2.0.00


TOP

Copyright

mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0.



TOP


TOP
previous page: APR::Status - Perl Interface to the APR_STATUS_IS_* macrospage up: mod_perl 2.0 APInext page: APR::Table - Perl API for manipulating APR opaque string-content tables