U++ framework
Do not panic. Ask here before giving up.

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 Go to previous message
zsolt is currently offline  zsolt
Messages: 705
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.
 
Read Message
Read Message
Previous Topic: [solved] CParser GetColumn bugfix
Next Topic: AMap::Trim(int n)
Goto Forum:
  


Current Time: Fri Dec 04 03:27:40 GMT+1 2026

Total time taken to generate the page: 0.00702 seconds