GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Badger::Data::Facet::Text::Whitespace(3) User Contributed Perl Documentation Badger::Data::Facet::Text::Whitespace(3)

Badger::Data::Facet::Text::Whitespace - validation facet for whitespace

This module implements a validation facets for munging whitespace on text values.

This module implement the following methods in addition to those inherited from the Badger::Data::Facet::Text, Badger::Data::Facet and Badger::Base base classes.

This method performs whitespace handling on the text passed by reference as the first argument.

If the pre-defined "action" is "preserve" then the text will be unmodified.

If the "action" is "fold" then all whitespace characters in the text (carriage returns, newlines, tabs) will be converted to spaces.

If the "action" is "collapse" then all whitespace characters will first be converted to spaces as per "fold". Any leading and trailing whitespace is then removed and any sequences of multiple spaces are collapsed to a single space.

Andy Wardley <http://wardley.org/>

Copyright (C) 2001-2012 Andy Wardley. All Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Badger::Base, Badger::Data::Facet, Badger::Data::Facet::Text.
2016-12-12 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.