MCPcopy Create free account
hub / github.com/bwapi/bwapi / getChar

Method getChar

bwapi/BWAPI/Source/BW/Font.cpp:11–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9 }
10
11 FontChar *Font::getChar(char c) const
12 {
13 u8 ch = static_cast<u8>(c);
14 if ( this->isValid() &&
15 this->low <= ch && ch <= this->high &&
16 this->chrs[ch - this->low] != reinterpret_cast<const FontChar*>(this) )
17 return this->chrs[ch - this->low];
18 return nullptr;
19 }
20
21 int Font::getCharWidth(char c) const
22 {

Callers 2

getCharWidthMethod · 0.95
blitStringMethod · 0.80

Calls 1

isValidMethod · 0.95

Tested by

no test coverage detected