示例#1
0
 string Exception::getText(const size_t& index) const
    throw()
 {
    if (index < 0 || index>=getTextCount())
    {
       string tmp;
       return tmp;
    }
    else
    {
       return text[index];
    }
 }
示例#2
0
 void Exception::dump(ostream& s) const
    throw()
 {
    int i;
    for (i=0; i<getTextCount(); i++)
    {
       s << "text " << i << ":" << this->getText(i) << endl;
    }
    for (i=0; i<getLocationCount(); i++)
    {
       s << "location " << i << ":" << getLocation(i).what() << endl;
    }
 }
示例#3
0
文件: text32.cpp 项目: 86400/scummvm
int16 GfxText32::getTextCount(const Common::String &text, const uint index, const GuiResourceId fontId, const Common::Rect &textRect, const bool doScaling) {
	setFont(fontId);
	return getTextCount(text, index, textRect, doScaling);
}