| Statistics |
| Total changed lines : 2 (<1%) |
| Target Only : 0 |
| Source Only : 1 |
| Changed : 1 |
| J:\works\mmm\src\tools.cpp | J:\works\mmm\_releases\2.9.4b9\magic-2.94b9-src.zip\tools.cpp |
| 40 | return TRUE; | 40 | return TRUE; |
| 41 | } | 41 | } |
| 42 | return FALSE; | 42 | return FALSE; |
| 43 | } | 43 | } |
| 44 | 44 |
| 45 | BOOL LoadTextFile(LPCTSTR sFile, CStringArray& asValues, TCHAR cRem, BOOL bCaseSens) | 45 | BOOL LoadTextFile(LPCTSTR sFile, CStringArray& asValues, TCHAR cRem) |
| 46 | { | 46 | { |
| 47 | CString sPath; | 47 | CString sPath; |
| 48 | if ( !FindLocalFile(sFile, sPath) ) | 48 | if ( !FindLocalFile(sFile, sPath) ) |
| 49 | return FALSE; | 49 | return FALSE; |
| 50 | CStdioFile file; | 50 | CStdioFile file; |
| 57 | int nCur = 0; | 57 | int nCur = 0; |
| 58 | while (file.ReadString(asValues[nCur])) | 58 | while (file.ReadString(asValues[nCur])) |
| 59 | { | 59 | { |
| 60 | if (!asValues[nCur].IsEmpty() && asValues[nCur].GetAt(0)!=cRem) | 60 | if (!asValues[nCur].IsEmpty() && asValues[nCur].GetAt(0)!=cRem) |
| 61 | { | 61 | { |
| 62 | if (!bCaseSens) |
| 63 | asValues.ElementAt(nCur).MakeLower(); | 62 | asValues.ElementAt(nCur).MakeLower(); |
| 64 | nCur++; | 63 | nCur++; |
| 65 | asValues.Add(""); | 64 | asValues.Add(""); |
| 66 | } | 65 | } |
| 67 | } | 66 | } |