Talk:Trimming (computer programming): Difference between revisions

Content deleted Content added
feel free
No edit summary
Line 4:
 
:I went for a brief overview and stuck with the simplest functions/libraries/implementations I could find. Please feel free to add some code :) —[[User:Pengo|Pengo]] <sup>[[User talk:Pengo|''talk'']] · [[Special:Contributions/Pengo|''contribs'']]</sup> 13:02, 23 July 2006 (UTC)
 
 
 
 
 
 
in AWK better to use those command:
 
function ltrim(s) {
sub(/^ */, "", s);
return s
}
 
function rtrim(s) {
sub(/ *$/, "", s);
return s
}
 
function trim(s) {
return rtrim(ltrim(s));
}