[Boost-bugs] [Boost C++ Libraries] #9452: split + is_any_of on char16_t splits on zero character

Subject: [Boost-bugs] [Boost C++ Libraries] #9452: split + is_any_of on char16_t splits on zero character
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-12-02 05:19:59


#9452: split + is_any_of on char16_t splits on zero character
--------------------------------------+-----------------------
 Reporter: cool.pepyaka@… | Owner: marshall
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: algorithm
  Version: Boost 1.54.0 | Severity: Problem
 Keywords: split is_any_of char16_t |
--------------------------------------+-----------------------
 boost::algorithm::split + boost::algorithm::is_any_of on char16_t* splits
 given string on zero character, which differs from the char* version.

 Pseudo-example:
 - split("a\0b", "X") -> ("a\0b")
 - split(u"a\0b", u"X") -> ("a", "b")

 There's a workaround of wrapping u"X" in a std::u16string, which works
 perfectly well.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9452>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:14 UTC