1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-27 02:20:05 +00:00

Moved some C++ escaping functions from the Introjucer into CppTokeniserFunctions.

This commit is contained in:
jules 2014-07-04 17:53:31 +01:00
parent 3bb7e7ebf1
commit c8bf8cd41e
7 changed files with 111 additions and 93 deletions

View file

@ -128,12 +128,12 @@ namespace
String valueToStringLiteral (const var& v)
{
return CodeHelpers::addEscapeChars (v.toString()).quoted();
return CppTokeniserFunctions::addEscapeChars (v.toString()).quoted();
}
String valueToCharLiteral (const var& v)
{
return CodeHelpers::addEscapeChars (v.toString().trim().substring (0, 4)).quoted ('\'');
return CppTokeniserFunctions::addEscapeChars (v.toString().trim().substring (0, 4)).quoted ('\'');
}
void writePluginCharacteristicsFile (ProjectSaver& projectSaver)
@ -212,8 +212,8 @@ namespace
String createEscapedStringForVersion (ProjectExporter& exporter, const String& text)
{
// (VS10 automatically adds escape characters to the quotes for this definition)
return exporter.getVisualStudioVersion() < 10 ? CodeHelpers::addEscapeChars (text.quoted())
: CodeHelpers::addEscapeChars (text).quoted();
return exporter.getVisualStudioVersion() < 10 ? CppTokeniserFunctions::addEscapeChars (text.quoted())
: CppTokeniserFunctions::addEscapeChars (text).quoted();
}
String createRebasedPath (ProjectExporter& exporter, const RelativePath& path)