Permalink
Commits on Dec 6, 2017
  1. Add a test for wxFile::ReadAll() with an embedded NUL

    minoki authored and vadz committed Feb 19, 2016
    See #16490.
Commits on May 1, 2017
  1. Better handling of supplementary wxUniChar values in some of wxString…

    minoki committed Apr 20, 2017
    … methods
    
    On MSW, the Unicode code point is now properly encoded as UTF-16 when
    assigned or appended to a wxString.
    
    Closes #11827
  2. Add some functions to handle supplementary characters

    minoki committed Apr 30, 2017
    The added functions are:
    
    - wxUniChar::IsBMP()
    - wxUniChar::IsSupplementary()
    - wxUniChar::HighSurrogate()
    - wxUniChar::LowSurrogate()
  3. Add wxUSE_UNICODE_UTF16 macro to represent if the internal representa…

    minoki committed Apr 24, 2017
    …tion of wxString is UTF-16 or not
    
    The value of this macro is equal to (wxUSE_UNICODE_WCHAR && SIZEOF_WCHAR_T == 2).
Commits on Sep 18, 2016
  1. Remove obsolete MSVC project files for the tests

    minoki authored and vadz committed Sep 18, 2016
    The files built with these project files seem to be included in
    tests/benchmark/bench_vc[789]_bench.vcproj and these files themselves
    are out of date.
Commits on Sep 14, 2016
  1. Remove HAVE_PARTIAL_SPECIALIZATION and HAVE_TEMPLATE_OVERLOAD_RESOLUT…

    minoki committed Aug 30, 2016
    …ION macros
    
    See #17655.
  2. Replace wxEXPLICIT with the 'explicit' keyword

    minoki committed Aug 30, 2016
    See #17655.
  3. Replace wx_static_cast/wx_const_cast/wx_reinterpret_cast with the fun…

    minoki committed Aug 30, 2016
    …ction-style casts
    
    See #17655.
Commits on Aug 27, 2016
  1. Fix wxCHECK_VISUALC_VERSION macro to correctly detect VC14

    minoki authored and vadz committed Aug 27, 2016
Commits on Mar 28, 2016
  1. Use wxWidgets conversions to/from UTF-8 in Scintilla code

    minoki authored and vadz committed Mar 26, 2016
    Scintilla conversions use UTF-16, as indicated by their names, while wxString
    uses UTF-32 under Unix, so they don't work correctly for the characters
    outside of BMP.
    
    Simply use our own UTF-8 conversions, it doesn't seem possible to get invalid
    UTF-8 sequences here anyhow, so the comment saying that Scintilla functions
    are used to avoid asserts doesn't seem to be relevant.
    
    Closes #15621.
  2. Fix GetPartialTextExtents() to handle non-BMP chars under OS X

    minoki authored and vadz committed Mar 26, 2016
    On OS X, wxString operates on UTF-32 code units, but CoreText API use UTF-16
    code units. So we need to take care of surrogate pairs.
    
    Closes #261
Commits on Mar 25, 2016
  1. Test the conversion of wxString from/to UTF-8 std::string in StdStrin…

    minoki committed Mar 25, 2016
    …gTestCase::StdConversion
  2. Add wxMBConv parameter to wxString::ToStdString

    minoki committed Mar 25, 2016
    See #17461.
Commits on Mar 1, 2016
  1. Get rid of a use of wxMBSTRINGCAST

    minoki committed Feb 17, 2016
    wxMBSTRINGCAST is a const-removing cast and therefore should be avoided
    unless necessary.
    
    Here, the cast was used to convert wxWX2MBbuf to const char *, which does not
    involve removing const-ness.
  2. Get rid of a use of wxFNSTRINGCAST

    minoki committed Feb 17, 2016
    Since chdir() takes a const pointer, the const-removing cast is not needed.
  3. Get rid of a use of WXSTRINGCAST from src/msw/metafile.cpp

    minoki committed Feb 17, 2016
    WXSTRINGCAST is a const-removing cast and should be avoided unless necessary.
    
    Here, wxString::c_str() is sufficient because GetTextExtentPoint32 takes
    a const pointer.
  4. Fix signatures of wxStringBuffer / wxStringBufferLength constructors …

    minoki committed Feb 29, 2016
    …in interface/wx/string.h
    
    There were extra 'const's in the interface file.
Commits on Feb 27, 2016
  1. Fix check for string termination in IsValidUtf8String()

    minoki authored and vadz committed Feb 23, 2016
    The current code incorrectly returned true if the string contained
    an invalid UTF-8 sequence after an embedded NUL.
    
    Check the entire string if the length was explicitly given instead of stopping
    at the first NUL.
    
    Closes #236
Commits on Feb 23, 2016
  1. Don't restore selection when a text field receives focus on OS X

    minoki authored and vadz committed Sep 4, 2015
    This makes wxTextCtrl behave like the native text controls and, in particular,
    makes it select its entire text when it gets focus (incidentally, this is also
    how it behaves under the other platforms).
    
    Closes #9521.
Commits on Feb 21, 2016
  1. Fix the length returned by UTF-32 conversion for non-BMP input

    minoki authored and vadz committed Feb 21, 2016
    Don't optimize the required length as this is a tiny gain resulting in big
    problems with the strings containing surrogates for which the actual result is
    shorter than the length returned, resulting in extra NUL bytes at the end of
    the converted buffer.
    
    This is similar to 3410aa3 (see #16298) but
    for UTF-32 and not UTF-16.
    
    Closes #17070.
Commits on Nov 13, 2015
  1. Add a test checking that conversions involving surrogates work

    minoki authored and vadz committed Nov 13, 2015
    After the fixes in the previous commits conversions between wchar_t containing
    surrogates and UTF-{8,16,32} work correctly, so add a test ensuring that this
    is the case.
    
    Notice that other conversions are still broken in presence of surrogates.
    
    See #17070.
  2. Fix conversion from wchar_t string with surrogates to UTF-8

    minoki authored and vadz committed Nov 13, 2015
    Correctly account for the second half of the surrogate in
    wxMBConvUTF8::FromWChar() implementation, this makes it actually work for the
    strings containing surrogates on the platforms using UTF-16 encoding for
    wchar_t (such as MSW).
    
    See #17070.
Commits on Nov 6, 2015
  1. Suppress clang warning [-Winconsistent-missing-override] in DECLARE_H…

    minoki committed Sep 21, 2015
    …ELP_PROVISION().
  2. Suppress clang warning [-Winconsistent-missing-override] for GetClass…

    minoki committed Sep 21, 2015
    …Info() in wxDECLARE_ABSTRACT_CLASS.
  3. Add macros to conditionally suppress clang warnings.

    minoki committed Sep 21, 2015
    The added macros wxCLANG_WARNING_{SUPPRESS,RESTORE} are similar to
    wxGCC_WARNING_{SUPPRESS,RESTORE}, but the `wxCLANG_' version will expand to
    compiler pragmas only when the warning name is known to the compiler.
    
    They use clang's __has_warning feature.
Commits on Jun 14, 2015
  1. Update Scintilla from 3.5.2 to 3.5.5

    minoki authored and vadz committed Apr 25, 2015
  2. Update ScintillaWX.h

    minoki authored and vadz committed Jan 10, 2015
  3. Update Scintilla from 3.4.4 to 3.5.2

    minoki authored and vadz committed Jan 10, 2015