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 » String filter whitespace
String filter whitespace [message #17783] Thu, 28 August 2008 17:10 Go to next message
captainc is currently offline  captainc
Messages: 278
Registered: December 2006
Location: New Jersey, USA
Experienced Member
I just found the string filter functions, which are awesome. I made an adjustment to the whitespace filter so I can get everything before the first whitespace.
int CharFilterNotWhitespace(int c)
{
    return IsSpace(c) ? 0 : c;
};

This returns all text before the first whitespace:
FilterWhile(my_string, CharFilterNotWhitespace))

I found it very useful, maybe we should add this to the filters?

Re: String filter whitespace [message #17786 is a reply to message #17783] Thu, 28 August 2008 17:26 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
ok Smile

Mirek
Previous Topic: Path including non-English character, buglog and usrlog file cannot be deleted
Next Topic: StrIntValue -> uses int64
Goto Forum:
  


Current Time: Thu Apr 25 14:07:48 CEST 2024

Total time taken to generate the page: 0.02954 seconds