DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
AddressTable_search.cpp File Reference
#include "wibmod/WIB1/AddressTable.hh"
#include <fstream>
#include "wibmod/WIB1/AddressTableException.hh"
#include <boost/tokenizer.hpp>
#include <stdlib.h>
#include <boost/regex.hpp>
#include <boost/algorithm/string/case_conv.hpp>
Include dependency graph for AddressTable_search.cpp:

Go to the source code of this file.

Functions

void ReplaceStringInPlace (std::string &subject, const std::string &search, const std::string &replace)
 

Function Documentation

◆ ReplaceStringInPlace()

void ReplaceStringInPlace ( std::string & subject,
const std::string & search,
const std::string & replace )

Definition at line 20 of file AddressTable_search.cpp.

21 {
22 size_t pos = 0;
23 while ((pos = subject.find(search, pos)) != std::string::npos) {
24 subject.replace(pos, search.length(), replace);
25 pos += replace.length();
26 }
27}