Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lexborisov/perl-html-myhtml.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'MyHTML.pm')
-rwxr-xr-xMyHTML.pm114
1 files changed, 114 insertions, 0 deletions
diff --git a/MyHTML.pm b/MyHTML.pm
index 986ff90..018693b 100755
--- a/MyHTML.pm
+++ b/MyHTML.pm
@@ -103,6 +103,8 @@ BEGIN {
MyHTML_STATUS_MCOBJECT_ERROR_CACHE_REALLOC
MyHTML_OPTIONS_DEFAULT MyHTML_OPTIONS_PARSE_MODE_SINGLE MyHTML_OPTIONS_PARSE_MODE_ALL_IN_ONE MyHTML_OPTIONS_PARSE_MODE_SEPARATELY
+
+ namespace_name_by_id namespace_id_by_name
);
};
@@ -502,6 +504,15 @@ Important!!! Only for Perl! Do not use this callback in Thread mode parsing; Bui
$tree->callback_node_remove_set($sub_callback [, $ctx]);
+=head3 incoming_buffer_first
+
+Get first Incoming Buffer
+
+ my $incoming_buffer = $tree->incoming_buffer_first();
+
+Return: HTML::Incoming::Buffer if exists, otherwise an UNDEF value
+
+
=head2 Attributes
=head3 info
@@ -1009,6 +1020,109 @@ Now available for detect UTF-8, UTF-16LE, UTF-16BE
Return: 1 (true) if encoding found, otherwise 0 (false)
+=head2 Incoming Buffer
+
+=head3 find_by_position
+
+Get Incoming Buffer by position
+
+ my $incoming_buffer = $incoming_buffer->find_by_position($begin_position);
+
+Return: HTML::Incoming::Buffer if successful, otherwise a UNDEF value
+
+
+=head3 data
+
+Get data of Incoming Buffer
+
+ my $data = $incoming_buffer->data();
+
+Return: text scalar if successful, otherwise a UNDEF value
+
+
+=head3 length
+
+Get data length of Incoming Buffer
+
+ my $length = $incoming_buffer->length();
+
+Return: scalar length
+
+
+=head3 size
+
+Get data size of Incoming Buffer
+
+ my $size = $incoming_buffer->size();
+
+Return: scalar size
+
+
+=head3 offset
+
+Get data offset of Incoming Buffer. Global position of begin Incoming Buffer.
+
+ my $offset = $incoming_buffer->offset();
+
+Return: scalar offset
+
+
+=head3 relative_begin
+
+Get Relative Position for Incoming Buffer. Incoming Buffer should be prepared by find_by_position.
+
+ my $relative_begin = $incoming_buffer->relative_begin();
+
+Return: scalar relative begin
+
+
+=head3 available_length
+
+This function returns number of available data by Incoming Buffer. Incoming buffer may be incomplete. See next.
+
+ my $available_length = $incoming_buffer->available_length();
+
+Return: scalar available length
+
+
+=head3 next
+
+Get next buffer
+
+ my $next_incoming_buffer = $incoming_buffer->next();
+
+Return: HTML::Incoming::Buffer if exists, otherwise a UNDEF value
+
+
+=head3 prev
+
+Get prev buffer
+
+ my $prev_incoming_buffer = $incoming_buffer->prev();
+
+Return: HTML::Incoming::Buffer if exists, otherwise a UNDEF value
+
+
+=head2 Namespace
+
+=head3 namespace_name_by_id
+
+Get namespace text by namespace type (id)
+
+ my $namespace_name = namespace_name_by_id($namespace_id);
+
+Return: text if successful, otherwise a UNDEF value
+
+
+=head3 namespace_id_by_name
+
+Get namespace type (id) by namespace text
+
+ my $namespace_id = namespace_id_by_name($namespace_name);
+
+Return: namespace id
+
+
=head1 Constants
=head2 Tags