Remove Line Breaks from String?
Hmm, I've tried respectively \r, \r\n, and ^n, all of which did not work with replace_all().
What am I doing wrong? Thanks :). |
Re: Remove Line Breaks from String?
Maybe use this native:
Code:
replace ( text[], len, const what[], const with[] )greetz regalis |
Re: Remove Line Breaks from String?
replace_all is a replace() loop
|
Re: Remove Line Breaks from String?
trim() works, but I wonder if it's possible to do it manually.
|
Re: Remove Line Breaks from String?
I think the indeces are wrong but...
Code:
if(text[0] == '\' || text[0] == '^') text[0] = 0 |
| All times are GMT -4. The time now is 10:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.