MCPcopy Create free account
hub / github.com/OpenMW/openmw / getLocalizedString

Method getLocalizedString

components/esm4/reader.cpp:467–476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

465 }
466
467 void Reader::getLocalizedString(std::string& str)
468 {
469 if (!hasLocalizedStrings())
470 return (void)getZString(str);
471
472 std::uint32_t stringId; // FormId
473 get(stringId);
474 if (stringId) // TES5 FoxRace, BOOK
475 getLocalizedStringImpl(FormId::fromUint32(stringId), str);
476 }
477
478 // FIXME: very messy and probably slow/inefficient
479 void Reader::getLocalizedStringImpl(const FormId stringId, std::string& str)

Callers 15

loadMethod · 0.80
readDataFunction · 0.80
loadMethod · 0.80
loadMethod · 0.80
loadMethod · 0.80
loadMethod · 0.80
loadMethod · 0.80
loadMethod · 0.80
loadMethod · 0.80
loadMethod · 0.80
loadMethod · 0.80
loadMethod · 0.80

Calls 1

getFunction · 0.50

Tested by

no test coverage detected