quori_face/trace.cpp
Go to the documentation of this file.
1 #include "trace.hpp"
2 
3 std::string quori_face::computeMethodName(const std::string &function, const std::string &prettyFunction)
4 {
5  size_t locFunName = prettyFunction.find(function); //If the input is a constructor, it gets the beginning of the class name, not of the method. That's why later on we have to search for the first parenthesys
6  size_t begin = prettyFunction.rfind(" ",locFunName) + 1;
7  size_t end = prettyFunction.find("(",locFunName + function.length()); //Adding function.length() make this faster and also allows to handle operator parenthesys!
8  if (prettyFunction[end + 1] == ')')
9  return (prettyFunction.substr(begin,end - begin) + "()");
10  else
11  return (prettyFunction.substr(begin,end - begin) + "(...)");
12 }
string
GLsizei const GLchar *const * string
Definition: glcorearb.h:790
trace.hpp
quori_face::computeMethodName
std::string computeMethodName(const std::string &function, const std::string &prettyFunction)
Definition: quori_face/trace.cpp:3
end
GLuint GLuint end
Definition: glcorearb.h:450
length
GLuint GLsizei GLsizei * length
Definition: glcorearb.h:771


quori_face
Author(s):
autogenerated on Wed Mar 2 2022 00:53:20