Home » U++ Library support » U++ Core » IsSpace() should be true on non breaking space
IsSpace() should be true on non breaking space [message #52797] |
Thu, 28 November 2019 01:40 |
zsolt
Messages: 698 Registered: December 2005 Location: Budapest, Hungary
|
Contributor |
|
|
I think, non breaking space character (0xa0) is space.
Proposed patch (Core/CharSet.h):
-inline bool IsSpace(int c) { return c == ' ' || c == '\f' || c == '\n' || c == '\r' || c == '\v' || c == '\t'; }
+inline bool IsSpace(int c) { return c == ' ' || c == '\f' || c == '\n' || c == '\r' || c == '\v' || c == '\t' || c == 0xa0; }
You can test it with an EditString
someedit.SetFilter(CharFilterNotWhitespace);
And try typing 0160 on numpad while holding down Alt key.
Some users can be tricky.
|
|
|
Goto Forum:
Current Time: Sat Sep 21 00:29:06 CEST 2024
Total time taken to generate the page: 0.04785 seconds
|