Home » U++ Library support » U++ Core » String filter whitespace
String filter whitespace [message #17783] |
Thu, 28 August 2008 17:10 |
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?
|
|
|
|
Goto Forum:
Current Time: Thu Apr 25 14:07:48 CEST 2024
Total time taken to generate the page: 0.02954 seconds
|