4.34 beta

This commit is contained in:
Igor Pavlov
2006-03-01 00:00:00 +00:00
committed by Kornel Lesiński
parent 02516d3fce
commit 0f60a4933b
77 changed files with 2173 additions and 832 deletions

View File

@@ -15,8 +15,7 @@ static void RemoveQuote(UString &s)
s = s.Mid(1, s.Length() - 2);
}
bool ReadNamesFromListFile(LPCTSTR fileName, UStringVector &resultStrings,
UINT codePage)
bool ReadNamesFromListFile(LPCTSTR fileName, UStringVector &resultStrings, UINT codePage)
{
CStdInStream file;
if (!file.Open(fileName))
@@ -32,6 +31,12 @@ bool ReadNamesFromListFile(LPCTSTR fileName, UStringVector &resultStrings,
}
else
u = MultiByteToUnicodeString(s, codePage);
if (!u.IsEmpty())
{
if (u[0] == 0xFEFF)
u.Delete(0);
}
UString t;
for(int i = 0; i < u.Length(); i++)
{