1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-03 03:30:06 +00:00

Tidied up some filenames, cleaned up some code. Removed VoidArray class (just use Array<void*> instead)

This commit is contained in:
Julian Storer 2010-05-14 15:18:44 +01:00
parent a43448df13
commit ed97872c1a
74 changed files with 571 additions and 775 deletions

View file

@ -137,7 +137,7 @@ int CharacterFunctions::compareIgnoreCase (const char* const s1, const char* con
{
jassert (s1 != 0 && s2 != 0);
#if JUCE_WIN32
#if JUCE_WINDOWS
return stricmp (s1, s2);
#else
return strcasecmp (s1, s2);
@ -148,7 +148,7 @@ int CharacterFunctions::compareIgnoreCase (const juce_wchar* s1, const juce_wcha
{
jassert (s1 != 0 && s2 != 0);
#if JUCE_WIN32
#if JUCE_WINDOWS
return _wcsicmp (s1, s2);
#else
for (;;)
@ -198,7 +198,7 @@ int CharacterFunctions::compareIgnoreCase (const char* const s1, const char* con
{
jassert (s1 != 0 && s2 != 0);
#if JUCE_WIN32
#if JUCE_WINDOWS
return strnicmp (s1, s2, maxChars);
#else
return strncasecmp (s1, s2, maxChars);
@ -209,7 +209,7 @@ int CharacterFunctions::compareIgnoreCase (const juce_wchar* s1, const juce_wcha
{
jassert (s1 != 0 && s2 != 0);
#if JUCE_WIN32
#if JUCE_WINDOWS
return _wcsnicmp (s1, s2, maxChars);
#else
while (--maxChars >= 0)
@ -392,7 +392,7 @@ int CharacterFunctions::getIntValue (const char* const s) throw()
int CharacterFunctions::getIntValue (const juce_wchar* s) throw()
{
#if JUCE_WIN32
#if JUCE_WINDOWS
return _wtoi (s);
#else
int v = 0;
@ -422,7 +422,7 @@ int64 CharacterFunctions::getInt64Value (const char* s) throw()
{
#if JUCE_LINUX
return atoll (s);
#elif defined (JUCE_WIN32)
#elif JUCE_WINDOWS
return _atoi64 (s);
#else
int64 v = 0;
@ -450,7 +450,7 @@ int64 CharacterFunctions::getInt64Value (const char* s) throw()
int64 CharacterFunctions::getInt64Value (const juce_wchar* s) throw()
{
#if JUCE_WIN32
#if JUCE_WINDOWS
return _wtoi64 (s);
#else
int64 v = 0;
@ -646,7 +646,7 @@ juce_wchar CharacterFunctions::toUpperCase (const juce_wchar character) throw()
void CharacterFunctions::toUpperCase (char* s) throw()
{
#if JUCE_WIN32
#if JUCE_WINDOWS
strupr (s);
#else
while (*s != 0)
@ -659,7 +659,7 @@ void CharacterFunctions::toUpperCase (char* s) throw()
void CharacterFunctions::toUpperCase (juce_wchar* s) throw()
{
#if JUCE_WIN32
#if JUCE_WINDOWS
_wcsupr (s);
#else
while (*s != 0)
@ -677,7 +677,7 @@ bool CharacterFunctions::isUpperCase (const char character) throw()
bool CharacterFunctions::isUpperCase (const juce_wchar character) throw()
{
#if JUCE_WIN32
#if JUCE_WINDOWS
return iswupper (character) != 0;
#else
return toLowerCase (character) != character;
@ -697,7 +697,7 @@ juce_wchar CharacterFunctions::toLowerCase (const juce_wchar character) throw()
void CharacterFunctions::toLowerCase (char* s) throw()
{
#if JUCE_WIN32
#if JUCE_WINDOWS
strlwr (s);
#else
while (*s != 0)
@ -710,7 +710,7 @@ void CharacterFunctions::toLowerCase (char* s) throw()
void CharacterFunctions::toLowerCase (juce_wchar* s) throw()
{
#if JUCE_WIN32
#if JUCE_WINDOWS
_wcslwr (s);
#else
while (*s != 0)
@ -728,7 +728,7 @@ bool CharacterFunctions::isLowerCase (const char character) throw()
bool CharacterFunctions::isLowerCase (const juce_wchar character) throw()
{
#if JUCE_WIN32
#if JUCE_WINDOWS
return iswlower (character) != 0;
#else
return toUpperCase (character) != character;