Opened 9 years ago
#9452 new Bugs
split + is_any_of on char16_t splits on zero character
Reported by: | 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)
Note:
See TracTickets
for help on using tickets.