|
NAMEText::UnicodeBox::Text - Objects to describe text renderingDESCRIPTIONThis module is part of the low level interface to Text::UnicodeBox; you probably don't need to use it directly.METHODSnew (%params)
EXPORTED METHODSThe following methods are exportable by name or by the tag ':all'BOX_STRING ($value)Given the passed text, figures out the a smart value for the "length" field and returns a new instance.align_and_padmy $text = BOX_STRING('Test'); $text->align_and_pad(8); # is the same as # $text->align_and_pad( width => 8, pad => 1, pad_char => ' ', align => 'left' ); $text->value eq ' Test '; Modify the value of this object to pad and align the text according to the specification. Pass any of the following parameters:
to_stringReturns the value of this object.linesReturn array of objects of this string split into new strings on the newline characterline_countProvides the count of "lines()"longest_line_lengthReturn the length of the longest line in "lines()"split (%args)my @segments = $obj->split( max_width => 100, break_words => 1 ); Return array of objects of this string split at the max width given. If break_words => 1, break anywhere, otherwise only break on the space character. COPYRIGHTCopyright (c) 2012 Eric Waters and Shutterstock Images (http://shutterstock.com). All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.The full text of the license can be found in the LICENSE file included with this module. AUTHOREric Waters <ewaters@gmail.com>
Visit the GSP FreeBSD Man Page Interface. |