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

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: 14291
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: Wed May 13 20:49:30 GMT+2 2026

Total time taken to generate the page: 0.00490 seconds