LPTSTR TSHPath::BuildRoot(LPTSTR pszRoot, int iDrive) { static TModuleProc2<LPTSTR,LPTSTR,int> buildRoot(GetModule(), BuildRootStr); return buildRoot(pszRoot, iDrive); }
void GeneralGlyph::parseGlyphFromInput(const char *input) { Parser parser(input); parser.findGlyph(); while(parser.foundValidGlyph()) { switch(parser.getGlyphType()) { case Text: { buildText(parser.getBuffer1()); break; } case Frac: { buildFrac(parser.getBuffer1(),parser.getBuffer2()); break; } case Sqrt: { buildSqrt(parser.getBuffer1()); break; } case Root: { buildRoot(parser.getBuffer1(),parser.getBuffer2()); break; } case Subscript: { buildSubscript(parser.getBuffer1()); break; } case Superscript: { buildSuperscript(parser.getBuffer1()); break; } case Pi: { buildPi(); break; } default: { break; } } parser.findGlyph(); } }
void UIManager::notifyStateChange(std::string state) { buildRoot(state); state_ = state; }