| 256 | } |
| 257 | |
| 258 | void BfParserData::InitFileData() |
| 259 | { |
| 260 | BF_ASSERT(mParseFileData == NULL); |
| 261 | |
| 262 | BfParseFileData** valuePtr = NULL; |
| 263 | if (gBfParserCache->mParseFileDataMap.TryAdd(mFileName, NULL, &valuePtr)) |
| 264 | { |
| 265 | *valuePtr = new BfParseFileData(); |
| 266 | } |
| 267 | mParseFileData = *valuePtr; |
| 268 | mParseFileData->mRefCount++; |
| 269 | } |
| 270 | |
| 271 | int BfParserData::GetCharIdAtIndex(int findIndex) |
| 272 | { |