Described in the comments and documented the semantics of the parameters and
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 1 Apr 2006 12:43:03 +0000 (12:43 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 1 Apr 2006 12:43:03 +0000 (12:43 +0000)
commiteec47cc6c45a2d9a474cae9da897ebfdb0b7be21
treeb48f082c907c0f472dcee9c4e0a2dc7cbba82eb7
parent7e0a8463ebe347333fa27d70fe8910a5b7e8b8e1
Described in the comments and documented the semantics of the parameters and
return values of wxMBConv methods and tried to make them more consistent. The
only (intentional) backwards incompatible change is that cMB2WC/cWC2MB now
return the length of the converted string in outLen parameter and not length+1

Added wxMBConv::GetMBNul() and use it instead of supposing that all multibyte
strings are always terminated with a single NUL which is wrong for UTF-16/32.

Using GetMBNul(), completely rewrote cMB2WC/cWC2MB() to accept a string of the
specified length, whether it is NUL-terminated or not. This means that they
don't overwrite the provided buffer any more and convert the entire string in
all cases.

Fixed bug in wxMBConvUTF16::WC2MB() which didn't NUL-terminate the string
properlyv even if there was enough space.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
docs/changes.txt
docs/latex/wx/mbconv.tex
include/wx/strconv.h
src/common/strconv.cpp
src/common/string.cpp