version 1.111.2.5, 2005/09/29 13:40:32
|
version 1.111.2.6, 2005/09/29 15:10:55
|
|
|
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
#include <cassert> |
#define PEGASUS_USE_INTERNAL_INLINES |
#include "String.h" | #include "String.h" |
|
#include <cassert> |
#include "InternalException.h" | #include "InternalException.h" |
#include "CommonUTF.h" | #include "CommonUTF.h" |
#include "CharSet.h" | #include "CharSet.h" |
|
|
| |
//============================================================================== | //============================================================================== |
// | // |
|
// Compile-time switches (defined macros). |
|
// |
|
// PEGASUS_STRING_ENABLE_ICU -- enables use of ICU package. |
|
// |
|
// PEGASUS_STRING_NO_THROW -- suppresses throwing of exceptions |
|
// |
|
// PEGASUS_STRING_NO_UTF8 -- don't generate slower UTF8 code. |
|
// |
|
// PEGASUS_USE_INTERNAL_INLINES -- enables internal inlining feature. |
|
// |
|
//============================================================================== |
|
|
|
//============================================================================== |
|
// |
// File-scope definitions: | // File-scope definitions: |
// | // |
//============================================================================== | //============================================================================== |
|
|
#else /* PEGASUS_STRING_ENABLE_ICU */ | #else /* PEGASUS_STRING_ENABLE_ICU */ |
| |
// ATTN: optimize this! | // ATTN: optimize this! |
|
|
return String::equalNoCase(s1, String(s2)); | return String::equalNoCase(s1, String(s2)); |
| |
#endif /* PEGASUS_STRING_ENABLE_ICU */ | #endif /* PEGASUS_STRING_ENABLE_ICU */ |
|
|
| |
s.assignASCII7("hello world"); | s.assignASCII7("hello world"); |
| |
This avoids checking for UTF8 when it is not needed. |
This avoids slower UTF8 processing when not needed. |
| |
================================================================================ | ================================================================================ |
*/ | */ |