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
String::Tagged::Extent(3) User Contributed Perl Documentation String::Tagged::Extent(3)

"String::Tagged::Extent" - represents a range within a "String::Tagged"

These objects represent a range of characters within the containing String::Tagged object. The range they represent is fixed at the time of creation. If the containing string is modified by a call to "set_substr" then the effect on the extent object is not defined. These objects should be considered as relatively short-lived - used briefly for the purpose of querying the result of an operation, then discarded soon after.

   $extent->string;

Returns the containing String::Tagged object.

   $extent->start;

Returns the start index of the extent. This is the index of the first character within the extent.

   $extent->end;

Returns the end index of the extent. This is the index of the first character beyond the end of the extent.

   $extent->anchor_before;

True if this extent begins "before" the start of the string. Only certain methods return extents with this flag defined.

   $extent->anchor_after;

True if this extent ends "after" the end of the string. Only certain methods return extents with this flag defined.

   $extent->length;

Returns the number of characters within the extent.

   $extent->substr;

Returns the substring contained by the extent, as a String::Tagged complete with all the relevant tag values.

   $extent->plain_substr;

Returns the substring of the underlying plain string buffer contained by the extent, as a plain Perl string.

Paul Evans <leonerd@leonerd.org.uk>

2025-07-03 perl v5.40.2

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.