projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Delete the timer on close in the wxWebView sample. Fixes another memory leak.
[wxWidgets.git]
/
src
/
common
/
stringops.cpp
diff --git
a/src/common/stringops.cpp
b/src/common/stringops.cpp
index c69a18774fb8ba7713a09554e43d831c3a31828f..599c05c1d02cb685cc85c2929328a4bf317b1ba8 100644
(file)
--- a/
src/common/stringops.cpp
+++ b/
src/common/stringops.cpp
@@
-242,7
+242,7
@@
wxUniChar::Utf8CharBuffer wxUniChar::AsUTF8() const
}
else
{
}
else
{
- wxFAIL_MSG(
_
T("trying to encode undefined Unicode character") );
+ wxFAIL_MSG(
wx
T("trying to encode undefined Unicode character") );
out[0] = 0;
}
out[0] = 0;
}
@@
-256,7
+256,7
@@
wxStringOperationsUtf8::DecodeNonAsciiChar(wxStringImpl::const_iterator i)
wxUniChar::value_type code = 0;
size_t len = GetUtf8CharLength(*i);
wxUniChar::value_type code = 0;
size_t len = GetUtf8CharLength(*i);
- wxASSERT_MSG( len <= 4,
_
T("invalid UTF-8 sequence length") );
+ wxASSERT_MSG( len <= 4,
wx
T("invalid UTF-8 sequence length") );
// Char. number range | UTF-8 octet sequence
// (hexadecimal) | (binary)
// Char. number range | UTF-8 octet sequence
// (hexadecimal) | (binary)
@@
-281,7
+281,7
@@
wxStringOperationsUtf8::DecodeNonAsciiChar(wxStringImpl::const_iterator i)
// extract the lead byte's value bits:
wxASSERT_MSG( ((unsigned char)*i & s_leadMarkerMask[len-1]) ==
s_leadMarkerVal[len-1],
// extract the lead byte's value bits:
wxASSERT_MSG( ((unsigned char)*i & s_leadMarkerMask[len-1]) ==
s_leadMarkerVal[len-1],
-
_
T("invalid UTF-8 lead byte") );
+
wx
T("invalid UTF-8 lead byte") );
code = (unsigned char)*i & s_leadValueMask[len-1];
// all remaining bytes, if any, are handled in the same way regardless of
code = (unsigned char)*i & s_leadValueMask[len-1];
// all remaining bytes, if any, are handled in the same way regardless of
@@
-289,7
+289,7
@@
wxStringOperationsUtf8::DecodeNonAsciiChar(wxStringImpl::const_iterator i)
for ( ++i ; len > 1; --len, ++i )
{
wxASSERT_MSG( ((unsigned char)*i & 0xC0) == 0x80,
for ( ++i ; len > 1; --len, ++i )
{
wxASSERT_MSG( ((unsigned char)*i & 0xC0) == 0x80,
-
_
T("invalid UTF-8 byte") );
+
wx
T("invalid UTF-8 byte") );
code <<= 6;
code |= (unsigned char)*i & 0x3F;
code <<= 6;
code |= (unsigned char)*i & 0x3F;