#include <L1MuGMTLUTHelpers.h>
List of all members.
Classes |
class | Tokenizer |
| Lookup Functions. More...
|
Public Member Functions |
| L1MuGMTLUTHelpers () |
| constructor
|
virtual | ~L1MuGMTLUTHelpers () |
| destructor
|
Static Public Member Functions |
static std::string | lowerCase (const std::string &s) |
static int | replace (std::string &input, const std::string &gone, const std::string &it, bool multiple) |
static std::string | upperCase (const std::string &s) |
Detailed Description
Description: Helper Functions for std::string handling in L1MuGMTLUT (could be found in Cobra but classes should be independet of COBRA/ORCA)
Definition at line 37 of file L1MuGMTLUTHelpers.h.
Constructor & Destructor Documentation
L1MuGMTLUTHelpers::L1MuGMTLUTHelpers |
( |
| ) |
[inline] |
virtual L1MuGMTLUTHelpers::~L1MuGMTLUTHelpers |
( |
| ) |
[inline, virtual] |
Member Function Documentation
string L1MuGMTLUTHelpers::lowerCase |
( |
const std::string & |
s | ) |
[static] |
Definition at line 60 of file L1MuGMTLUTHelpers.cc.
References i, and alignCSCRings::r.
{
char* buf = new char[s.length()];
s.copy(buf, s.length());
for(unsigned i = 0; i < s.length(); i++)
buf[i] = tolower(buf[i]);
string r(buf, s.length());
delete buf;
return r;
}
static int L1MuGMTLUTHelpers::replace |
( |
std::string & |
input, |
|
|
const std::string & |
gone, |
|
|
const std::string & |
it, |
|
|
bool |
multiple |
|
) |
| [static] |
string L1MuGMTLUTHelpers::upperCase |
( |
const std::string & |
s | ) |
[static] |