version 1.31, 2005/02/05 22:59:24
|
version 1.32, 2005/03/28 17:31:35
|
|
|
| |
static void _normalize(char* text) | static void _normalize(char* text) |
{ | { |
Uint32 length = strlen(text); |
|
char* p = text; | char* p = text; |
char* end = p + length; |
char* end = p + strlen(text); |
| |
// Remove leading spaces: | // Remove leading spaces: |
| |
|
|
| |
// Remove the redundant spaces: | // Remove the redundant spaces: |
| |
Uint32 n = p - q; |
const size_t n = p - q; |
| |
if (n > 1) | if (n > 1) |
{ | { |
|
|
| |
void XmlParser::_substituteReferences(char* text) | void XmlParser::_substituteReferences(char* text) |
{ | { |
Uint32 rem = strlen(text); |
size_t rem = strlen(text); |
| |
for (char* p = text; *p; p++, rem--) | for (char* p = text; *p; p++, rem--) |
{ | { |
|
|
if (!end || end != last) | if (!end || end != last) |
return false; | return false; |
| |
value = Uint32(tmp); |
value = static_cast<Real32>(tmp); |
return true; | return true; |
} | } |
| |
|
|
| |
void XmlAppendCString(Array<char>& out, const char* str) | void XmlAppendCString(Array<char>& out, const char* str) |
{ | { |
out.append(str, strlen(str)); |
out.append(str, static_cast<Uint32>(strlen(str))); |
} | } |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |