1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-18 00:54:19 +00:00

Minor string changes.

This commit is contained in:
Julian Storer 2010-03-26 18:23:54 +00:00
parent e0e12a8bd9
commit 66643e85ac
74 changed files with 895 additions and 889 deletions

View file

@ -72,11 +72,11 @@ static int findCloseQuote (const String& text, int startPos)
static const String unescapeString (const String& s)
{
return s.replace (T("\\\""), T("\""))
.replace (T("\\\'"), T("\'"))
.replace (T("\\t"), T("\t"))
.replace (T("\\r"), T("\r"))
.replace (T("\\n"), T("\n"));
return s.replace ("\\\"", "\"")
.replace ("\\\'", "\'")
.replace ("\\t", "\t")
.replace ("\\r", "\r")
.replace ("\\n", "\n");
}
void LocalisedStrings::loadFromText (const String& fileContents)
@ -105,11 +105,11 @@ void LocalisedStrings::loadFromText (const String& fileContents)
translations.set (originalText, newText);
}
}
else if (line.startsWithIgnoreCase (T("language:")))
else if (line.startsWithIgnoreCase ("language:"))
{
languageName = line.substring (9).trim();
}
else if (line.startsWithIgnoreCase (T("countries:")))
else if (line.startsWithIgnoreCase ("countries:"))
{
countryCodes.addTokens (line.substring (10).trim(), true);
countryCodes.trim();