Shlomi Fish avatar Shlomi Fish committed 5a3919f

Spelling corrections patch by Kevin Lyda.

Closes https://rt.cpan.org/Public/Bug/Display.html?id=71403 .

Comments (0)

Files changed (7)

 Revision history for Perl extension XML::LibXML
 
+    - Apply a patch with spelling fixes by Kevin Lyda :
+        - https://rt.cpan.org/Public/Bug/Display.html?id=71403
+        - Thanks to Kevin.
+
 1.88            Wed Sep 21 12:54:33 IDT 2011
     - Add libxml2 2.7.8 as tested and working fine for the Makefile.PL.
     (Thanks to H. Merijn Brand.).

lib/XML/LibXML/SAX/Parser.pm

     elsif ($node_type == XML_DOCUMENT_NODE
            || $node_type == XML_HTML_DOCUMENT_NODE
            || $node_type == XML_DOCUMENT_FRAG_NODE) {
-        # some times it is just usefull to generate SAX events from
+        # sometimes it is just useful to generate SAX events from
         # a document fragment (very good with filters).
         foreach my $kid ($node->childNodes) {
             $self->process_node($kid);
  *
  * DESCRIPTION
  * creates an Gdome node from our XML::LibXML node.
- * this function is very usefull for the parser.
+ * this function is very useful for the parser.
  *
  * the function will only work, if XML::LibXML is compiled with
  * XML::GDOME support.

perl-libxml-sax.c

 static U32 SystemIdHash;
 
 /* helper function C2Sv is ment to work faster than the perl-libxml-mm
-   version. this shortcut is usefull, because SAX handles only UTF8
+   version. this shortcut is useful, because SAX handles only UTF8
    strings, so there is no conversion logic required.
 */
 SV*
     my $re = qr/\ACould not create file parser context for file "\Q$badfile2\E": \Q$err_string\E/;
 
     eval { $parser->parse_file($badfile2); };
-    like($@, $re, "error parsing non-existant $badfile2");
+    like($@, $re, "error parsing non-existent $badfile2");
 }
 
 {
 $fh = IO::File->new($badfile2);
 
 eval { my $doc = $parser->parse_fh($fh); };
-like($@, qr/^Can't use an undefined value as a symbol reference at/, "error parsing bad file from file handle of non-existant $badfile2");
+like($@, qr/^Can't use an undefined value as a symbol reference at/, "error parsing bad file from file handle of non-existent $badfile2");
 
 {
     $parser->expand_entities(1);
 ok (!defined(decodeFromUTF8( 'UTF-16' , undef )), 'decodeFromUTF8 of undef.');
 
 # here should be a test to test badly encoded strings. but for some
-# reasons i am unable to create an apropriate test :(
+# reasons i am unable to create an appropriate test :(
 
 # uncomment these lines if your system is capable to handel not only i
 # so latin 1
         
         if ( refNode->doc == NULL ) {
             /* if one XPaths a node from a fragment, libxml2 will
-               refuse the lookup. this is not very usefull for XML
+               refuse the lookup. this is not very useful for XML
                scripters. thus we need to create a temporary document
                to make libxml2 do it's job correctly.
              */
 
         if ( ctxt->node->doc == NULL ) {
             /* if one XPaths a node from a fragment, libxml2 will
-               refuse the lookup. this is not very usefull for XML
+               refuse the lookup. this is not very useful for XML
                scripters. thus we need to create a temporary document
                to make libxml2 do it's job correctly.
              */
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.