Opened 9 years ago

#9452 new Bugs

split + is_any_of on char16_t splits on zero character

Reported by: cool.pepyaka@… Owned by: Marshall Clow
Milestone: To Be Determined Component: algorithm
Version: Boost 1.54.0 Severity: Problem
Keywords: split is_any_of char16_t Cc:

Description

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.

Attachments (1)

boost_split_char16t.cpp (1.3 KB ) - added by anonymous 9 years ago.

Download all attachments as: .zip

Change History (1)

by anonymous, 9 years ago

Attachment: boost_split_char16t.cpp added
Note: See TracTickets for help on using tickets.