|
static std::string const | emptyString ("") |
|
std::string | friendlyName (std::string const &iFullName) |
|
std::string | handleNamespaces (std::string const &iIn) |
|
std::string | handleTemplateArguments (std::string const &) |
|
static boost::regex const | reAIKR (", *edm::helper::AssociationIdenticalKeyReference") |
|
static boost::regex const | reAllSpaces (" +") |
|
static boost::regex const | reBeginSpace ("^ +") |
|
static boost::regex const | reColons ("::") |
|
static boost::regex const | reComma (",") |
|
static boost::regex const | reEndSpace (" +$") |
|
static boost::regex const | reLong ("long ") |
|
std::string | removeAllSpaces (std::string const &iIn) |
|
std::string | removeExtraSpaces (std::string const &iIn) |
|
static boost::regex const | reOneToMany ("edm::AssociationMap< *edm::OneToMany<(.*?),(.*?), *u[a-z]*> >") |
|
static boost::regex const | reOneToManyWithQuality ("edm::AssociationMap<edm::OneToManyWithQuality<(.*?), *(.*?), *(.*?), *u[a-z]*> >") |
|
static boost::regex const | reOneToOne ("edm::AssociationMap< *edm::OneToOne<(.*?),(.*?), *u[a-z]*> >") |
|
static boost::regex const | reOneToValue ("edm::AssociationMap< *edm::OneToValue<(.*?),(.*?), *u[a-z]*> >") |
|
static boost::regex const | reOwnVector ("edm::OwnVector<(.*), *edm::ClonePolicy<\\1 *> >") |
|
static boost::regex const | reSorted ("edm::SortedCollection<(.*), *edm::StrictWeakOrdering<\\1 *> >") |
|
static boost::regex const | reString ("std::basic_string<char>") |
|
static boost::regex const | reTemplateArgs ("[^<]*<(.*)>$") |
|
static boost::regex const | reTemplateClass ("([^<>,]+<[^<>]*>)") |
|
static boost::regex const | reToRangeMap ("edm::RangeMap< *(.*), *(.*), *edm::ClonePolicy<([^>]*)> >") |
|
static boost::regex const | reToRefs1 ("edm::RefVector< *(.*)< *(.*) *>, *\\2 *, *edm::refhelper::FindUsingAdvance< *\\1< *\\2 *> *, *\\2 *> *>") |
|
static boost::regex const | reToRefs2 ("edm::RefVector< *(.*) *, *(.*) *, *edm::refhelper::FindUsingAdvance< *\\1, *\\2 *> *>") |
|
static boost::regex const | reToRefsAssoc ("edm::RefVector< *Association(.*) *, *edm::helper(.*), *Association(.*)::Find>") |
|
static boost::regex const | reToVector ("edm::AssociationVector<(.*), *(.*), *edm::Ref.*,.*>") |
|
static boost::regex const | reUnsigned ("unsigned ") |
|
static boost::regex const | reVector ("std::vector") |
|
static boost::regex const | reWrapper ("edm::Wrapper<(.*)>") |
|
std::string | standardRenames (std::string const &iIn) |
|
std::string | subFriendlyName (std::string const &iFullName) |
|
std::string edm::friendlyname::standardRenames |
( |
std::string const & |
iIn | ) |
|
Definition at line 67 of file FriendlyName.cc.
References mergeVDriftHistosByStation::name, reAIKR(), reLong(), reOneToMany(), reOneToManyWithQuality(), reOneToOne(), reOneToValue(), reOwnVector(), reSorted(), reString(), reToRangeMap(), reToRefs1(), reToRefs2(), reToRefsAssoc(), reToVector(), reUnsigned(), reVector(), reWrapper(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by friendlyName().
68 using boost::regex_replace;
71 name = regex_replace(name,
reAIKR,
"");
72 name = regex_replace(name,
reString,
"String");
73 name = regex_replace(name,
reSorted,
"sSorted<$1>");
75 name = regex_replace(name,
reLong,
"l");
76 name = regex_replace(name,
reVector,
"s");
77 name = regex_replace(name,
reOwnVector,
"sOwned<$1>");
78 name = regex_replace(name,
reToVector,
"AssociationVector<$1,To,$2>");
79 name = regex_replace(name,
reOneToOne,
"Association<$1,ToOne,$2>");
80 name = regex_replace(name,
reOneToMany,
"Association<$1,ToMany,$2>");
81 name = regex_replace(name,
reOneToValue,
"Association<$1,ToValue,$2>");
83 name = regex_replace(name,
reToRangeMap,
"RangeMap<$1,$2>");
84 name = regex_replace(name,
reToRefs1,
"Refs<$1<$2>>");
85 name = regex_replace(name,
reToRefs2,
"Refs<$1,$2>");
86 name = regex_replace(name,
reToRefsAssoc,
"Refs<Association$1>");
static boost::regex const reOneToValue("edm::AssociationMap< *edm::OneToValue<(.*?),(.*?), *u[a-z]*> >")
static boost::regex const reOwnVector("edm::OwnVector<(.*), *edm::ClonePolicy<\\1 *> >")
static boost::regex const reLong("long ")
static boost::regex const reUnsigned("unsigned ")
static boost::regex const reToRangeMap("edm::RangeMap< *(.*), *(.*), *edm::ClonePolicy<([^>]*)> >")
static boost::regex const reSorted("edm::SortedCollection<(.*), *edm::StrictWeakOrdering<\\1 *> >")
static boost::regex const reToRefs2("edm::RefVector< *(.*) *, *(.*) *, *edm::refhelper::FindUsingAdvance< *\\1, *\\2 *> *>")
static boost::regex const reOneToMany("edm::AssociationMap< *edm::OneToMany<(.*?),(.*?), *u[a-z]*> >")
static boost::regex const reOneToOne("edm::AssociationMap< *edm::OneToOne<(.*?),(.*?), *u[a-z]*> >")
static boost::regex const reVector("std::vector")
static boost::regex const reToVector("edm::AssociationVector<(.*), *(.*), *edm::Ref.*,.*>")
static boost::regex const reOneToManyWithQuality("edm::AssociationMap<edm::OneToManyWithQuality<(.*?), *(.*?), *(.*?), *u[a-z]*> >")
static boost::regex const reToRefs1("edm::RefVector< *(.*)< *(.*) *>, *\\2 *, *edm::refhelper::FindUsingAdvance< *\\1< *\\2 *> *, *\\2 *> *>")
static boost::regex const reAIKR(", *edm::helper::AssociationIdenticalKeyReference")
static boost::regex const reString("std::basic_string<char>")
static boost::regex const reWrapper("edm::Wrapper<(.*)>")
static boost::regex const reToRefsAssoc("edm::RefVector< *Association(.*) *, *edm::helper(.*), *Association(.*)::Find>")