$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r52663 - trunk/tools/inspect
From: daniel_james_at_[hidden]
Date: 2009-04-29 17:12:09
Author: danieljames
Date: 2009-04-29 17:12:08 EDT (Wed, 29 Apr 2009)
New Revision: 52663
URL: http://svn.boost.org/trac/boost/changeset/52663
Log:
Check for invalid css links in html files as well as css files.
Text files modified: 
   trunk/tools/inspect/link_check.cpp |    18 +++++++++++++++---                      
   1 files changed, 15 insertions(+), 3 deletions(-)
Modified: trunk/tools/inspect/link_check.cpp
==============================================================================
--- trunk/tools/inspect/link_check.cpp	(original)
+++ trunk/tools/inspect/link_check.cpp	2009-04-29 17:12:08 EDT (Wed, 29 Apr 2009)
@@ -130,10 +130,22 @@
       boost::match_results< string::const_iterator > what;
       boost::match_flag_type flags = boost::match_default;
 
-      boost::regex const& url_regex =
-          is_css(full_path) ? css_url_regex : html_url_regex;
+      if(is_css(full_path))
+      {
+        while( boost::regex_search( start, end, what, html_url_regex, flags) )
+        {
+          // what[0] contains the whole string iterators.
+          // what[2] contains the URL iterators.
+          do_url( string( what[2].first, what[2].second ),
+            library_name, full_path, no_link_errors );
+
+          start = what[0].second; // update search position
+          flags |= boost::match_prev_avail; // update flags
+          flags |= boost::match_not_bob;
+        }
+      }
 
-      while( boost::regex_search( start, end, what, url_regex, flags) )
+      while( boost::regex_search( start, end, what, css_url_regex, flags) )
       {
         // what[0] contains the whole string iterators.
         // what[2] contains the URL iterators.