mirror of
https://github.com/boostorg/auto_index.git
synced 2025-05-09 23:24:02 +00:00
Test of ID constraint should use regex_match and not regex_search.
Update tests accordingly and change Jamfile.v2 to match current Trunk. [SVN r71977]
This commit is contained in:
parent
b1325e59ac
commit
8c4fce697e
@ -349,7 +349,7 @@ void process_node(boost::tiny_xml::element_ptr node, node_id* prev, title_info*
|
|||||||
//
|
//
|
||||||
std::pair<std::string, std::string> item_index(*pid, i->term);
|
std::pair<std::string, std::string> item_index(*pid, i->term);
|
||||||
if(((no_duplicates == false) || (0 == found_terms.count(item_index)))
|
if(((no_duplicates == false) || (0 == found_terms.count(item_index)))
|
||||||
&& (i->search_id.empty() || regex_search(*pid, i->search_id)))
|
&& (i->search_id.empty() || regex_match(*pid, i->search_id)))
|
||||||
{
|
{
|
||||||
// We have something to index!
|
// We have something to index!
|
||||||
found_terms.insert(item_index);
|
found_terms.insert(item_index);
|
||||||
|
@ -10,7 +10,7 @@ import type ;
|
|||||||
|
|
||||||
path-constant local-boost-root : [ modules.peek : BOOST ] ;
|
path-constant local-boost-root : [ modules.peek : BOOST ] ;
|
||||||
|
|
||||||
alias line_compare_tool : $(local-boost-root)/tools/quickbook/test//line-compare-tool ;
|
alias line_compare_tool : $(local-boost-root)/tools/quickbook/test/src//line-compare-tool ;
|
||||||
|
|
||||||
rule auto-index-test ( target-name : input-file : output-file ? : options * )
|
rule auto-index-test ( target-name : input-file : output-file ? : options * )
|
||||||
{
|
{
|
||||||
@ -68,3 +68,4 @@ auto-index-test test3 : type_traits.docbook : : --internal-index index-type=inde
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -18,7 +18,9 @@
|
|||||||
!rewrite-name "(?:A|An|The)\s+(.*)" "\1"
|
!rewrite-name "(?:A|An|The)\s+(.*)" "\1"
|
||||||
|
|
||||||
"Constrained Index Term" add_const "boost_typetraits\.reference.*" class_name
|
"Constrained Index Term" add_const "boost_typetraits\.reference.*" class_name
|
||||||
|
"This term should not appear anywhere because of the ID constraint" strlen "(?!boost_typetraits.background).*" function_name
|
||||||
|
|
||||||
|
|
||||||
type-traits "" ".*.intro" test_index_1
|
type-traits "" ".*.intro" test_index_1
|
||||||
type-traits "" ".*.background" test_index_2
|
type-traits "" ".*.background" test_index_2
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user