Source code refactoring. Extracted common functionality into merged methods

Source code refactoring. Extracted common functionality into merged methods
What does X stand for? Better to name it "GlobalSymbolName" or some other less mysterious name. The second parameter could be named "prefix".

According to Google C++ code style, the parameter's name should not contain upper case letters. And also, "{" must  be put at the end of the preceding line.