MCPcopy Create free account
hub / github.com/Scobalula/Greyhound / GetDefaultLocaleMask

Function GetDefaultLocaleMask

src/External/CascLib/src/CascFiles.cpp:584–602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

582}
583
584static DWORD GetDefaultLocaleMask(const CASC_CSV_COLUMN & Column)
585{
586 LPCSTR szTagEnd = Column.szValue + Column.nLength - 4;
587 LPCSTR szTagPtr;
588 DWORD dwLocaleValue;
589 DWORD dwLocaleMask = 0;
590
591 // Go through the whole tag string
592 for(szTagPtr = Column.szValue; szTagPtr <= szTagEnd; szTagPtr++)
593 {
594 // Try to recognize the 4-char locale code
595 if((dwLocaleValue = GetLocaleValue(szTagPtr)) != CASC_LOCALE_NONE)
596 {
597 dwLocaleMask |= dwLocaleValue;
598 szTagPtr += 3; // Will be moved by 1 more at the end of the loop
599 }
600 }
601 return dwLocaleMask;
602}
603
604static DWORD ParseFile_BuildInfo(TCascStorage * hs, CASC_CSV & Csv)
605{

Callers 2

ParseFile_BuildInfoFunction · 0.85
ParseFile_BuildDbFunction · 0.85

Calls 1

GetLocaleValueFunction · 0.85

Tested by

no test coverage detected