Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
37 std::string::size_type
pos =
s1.find(
s2);
38 if (
pos != std::string::npos ) {
50 std::string::size_type
pos =
s1.find_last_of(
s2);
51 if (
pos != std::string::npos ) {
63 std::string::size_type
pos =
s1.find_first_not_of(
s2);
64 if (
pos != std::string::npos ) {
88 std::string::size_type
pos =
s1.find_last_not_of(
s2);
89 if (
pos != std::string::npos ) {
98 std::string
chop(std::string&
s1,
const std::string&
s2)
100 std::string::size_type
pos =
s1.find(
s2);
102 if (
pos == std::string::npos ) {
115 std::string
chomp(std::string&
s1,
const std::string&
s2)
117 std::string::size_type
pos =
s1.find(
s2);
119 if (
pos == std::string::npos ) {
134 std::string::size_type
pos;
135 while ( (
pos =
s.find(
s2))!=std::string::npos ) {
142 void replace(std::string&
s,
const std::string&
s2,
const std::string&
s3)
144 std::string::size_type
pos;
147 while ( (
pos =
s.find(
s2))!=std::string::npos ) {
159 std::string::size_type
pos;
160 while ( (
pos =
s.find(
':'))!=std::string::npos ) {
170 double delta = fabs(phi1-phi2);
171 delta = (delta >
M_PI) ? (2.0*
M_PI - delta) : delta;
179 FILE*
f = fopen(
s.c_str(),
"r");
180 if (
f ) { fclose(
f);
return true; }
186 std::string
number(
const double&
d,
const std::string&
s) {
188 sprintf(
tmp,
s.c_str(),
d);
192 std::string
number(
const int&
i,
const std::string&
s) {
194 sprintf(
tmp,
s.c_str(),
i);
201 std::string::size_type
pos =
name.find_last_of(
'/' );
202 if (
pos!=std::string::npos )
name.resize(
pos );
208 std::string::size_type
pos =
name.find(
'/' );
209 while (
pos!=std::string::npos ) {
bool canopen(const std::string &s)
std::string chop(std::string &s1, const std::string &s2)
std::string number(const double &d, const std::string &s)
std::string basename(std::string name)
void depunctuate(std::string &s)
std::string dirname(std::string name)
std::string chopfirst(std::string &s1, const std::string &s2)
void replace(std::string &s, const std::string &s2, const std::string &s3)
std::string chomp(std::string &s1, const std::string &s2)
std::string choptoken(std::string &s1, const std::string &s2)
std::string chomptoken(std::string &s1, const std::string &s2)
void removespace(std::string &s, const std::string &s2)
std::string chopends(std::string &s1, const std::string &s2)
std::string choplast(std::string &s1, const std::string &s2)
double deltaPhi(double phi1, double phi2)