This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool ObjectMgr::LoadTrinityStrings(const char* table, int32 min_value, int32 max_value) | |
{ | |
uint32 oldMSTime = getMSTime(); | |
int32 start_value = min_value; | |
int32 end_value = max_value; | |
// some string can have negative indexes range | |
if (start_value < 0) | |
{ | |
if (end_value >= start_value) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Works in every situations | |
function by_token ($src) { | |
$tokens = token_get_all($src); | |
$count = count($tokens); | |
$i = 0; | |
$namespace = ''; | |
$namespace_ok = false; | |
while ($i < $count) { |