mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-18 00:54:19 +00:00
Introjucer: file separator character fix on windows.
This commit is contained in:
parent
de44f0a332
commit
a4e87ef28a
3 changed files with 12 additions and 10 deletions
|
|
@ -102,14 +102,16 @@ namespace FileHelpers
|
|||
return false;
|
||||
}
|
||||
|
||||
String unixStylePath (const String& path)
|
||||
{
|
||||
return path.replaceCharacter ('\\', '/');
|
||||
}
|
||||
String unixStylePath (const String& path) { return path.replaceCharacter ('\\', '/'); }
|
||||
String windowsStylePath (const String& path) { return path.replaceCharacter ('/', '\\'); }
|
||||
|
||||
String windowsStylePath (const String& path)
|
||||
String currentOSStylePath (const String& path)
|
||||
{
|
||||
return path.replaceCharacter ('/', '\\');
|
||||
#if JUCE_WINDOWS
|
||||
return windowsStylePath (path);
|
||||
#else
|
||||
return unixStylePath (path);
|
||||
#endif
|
||||
}
|
||||
|
||||
bool isAbsolutePath (const String& path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue