Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 697
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 Apr 26 10:22:43 CEST 2024

Total time taken to generate the page: 0.02271 seconds