This will be useful in outputting better annotations.
return $range->value;
}
+ sub type_of {
+ # Returns the type of the range containing the code point, undef if
+ # the code point is not in the table
+
+ my $self = shift;
+ my $codepoint = shift;
+ Carp::carp_extra_args(\@_) if main::DEBUG && @_;
+
+ my $range = $self->containing_range($codepoint);
+ return unless defined $range;
+
+ return $range->type;
+ }
+
sub _search_ranges {
# Find the range in the list which contains a code point, or where it
# should go if were to add it. That is, it returns $i, such that:
min
range_count
reset_each_range
+ type_of
value_of
))
{
status
status_info
to_output_map
+ type_of
value_of
write
))