239 {
241 return true;
242
244 if (bounds.first == bounds.second)
245 return false;
246
247 for (auto pair = bounds.first; pair != bounds.second; ++pair)
248 {
250 if (!skill)
251 return false;
252
254 {
255 std::string_view skillName = skill->
name[i];
256 std::string_view spellName = info->SpellName[i];
257
258 if ((text.length() == (skillName.length() + 2 + spellName.length())) &&
259 (text.substr(0, skillName.length()) == skillName) &&
260 (text.substr(skillName.length(), 2) == ": ") &&
261 (text.substr(skillName.length() + 2) == spellName))
262 return true;
263 }
264 }
265 return false;
266 }
@ TOTAL_LOCALES
Definition: Common.h:76
std::uint8_t uint8
Definition: Define.h:109
#define sSpellMgr
Definition: SpellMgr.h:825
std::pair< SkillLineAbilityMap::const_iterator, SkillLineAbilityMap::const_iterator > SkillLineAbilityMapBounds
Definition: SpellMgr.h:584
DBCStorage< SkillLineEntry > sSkillLineStore(SkillLinefmt)
Definition: Hyperlinks.cpp:106
Definition: DBCStructure.h:1582
char const * name[16]
Definition: DBCStructure.h:1586