29 std::vector<std::string > names;
31 std::string rx = regex;
32 std::transform( rx.begin(), rx.end(), rx.begin(), ::toupper);
33 if( rx.size() > 6 && rx.substr(0,5) ==
"PERL:") {
34 printf(
"Using PERL-style regex unchanged\n");
45 re = boost::regex(rx);
46 }
catch(std::exception &e){
47 BUException::BAD_REGEX e2;
48 e2.Append(
"In GetNames: (");
49 e2.Append(rx.c_str());
51 e2.Append(regex.c_str());
55 for(std::map<std::string,Item*>::iterator it =
nameItemMap.begin();
58 if(regex_match(it->first.c_str(),match,re)){
59 names.push_back(it->first);
67 std::vector<std::string > names;
69 std::map<uint32_t,std::vector<Item*> >::iterator itAddress =
addressItemMap.lower_bound(lower);
73 if(itAddress->first < upper){
75 std::vector<Item*> & items = itAddress->second;
76 for(
size_t iItem = 0; iItem < items.size();iItem++){
77 names.push_back(items[iItem]->name);
90 std::string rx = regex;
92 if( rx.size() > 6 && rx.substr(0,5) ==
"PERL:") {
93 printf(
"Using PERL-style regex unchanged\n");
104 re = boost::regex(rx);
105 }
catch(std::exception &e){
106 BUException::BAD_REGEX e2;
107 e2.Append(
"In GetTables: (");
108 e2.Append(rx.c_str());
110 e2.Append(regex.c_str());
113 std::set<std::string> tableSearch;
115 for(std::map<std::string,Item*>::iterator it =
nameItemMap.begin();
119 if(it->second->user.find(
"Table") != it->second->user.end()){
120 std::string
const & tableName = it->second->user.find(
"Table")->second;
122 if(tableSearch.find(tableName) == tableSearch.end()){
124 if(regex_match(tableName.c_str(),match,re)){
126 tableSearch.insert(tableName);
131 std::vector<std::string > tables(tableSearch.begin(),tableSearch.end());