trim: Abstract common stringstream idioms into shared functions.
trim: Abstract common stringstream idioms into shared functions.

Using the new providef, linkf, and unlinkf functions shrinks the code
a bit. It's tempting to provide <stdargs> functions with full
printf-like formatting, but it's really not necessary as of yet.

EoD/apitrace,apitrace/apitrace,joshua5201/apitrace,trtt/apitrace,schulmar/apitrace,swq0553/apitrace,joshua5201/apitrace,swq0553/apitrace,trtt/apitrace,joshua5201/apitrace,swq0553/apitrace,apitrace/apitrace,surround-io/apitrace,surround-io/apitrace,joshua5201/apitrace,EoD/apitrace,trtt/apitrace,tuanthng/apitrace,surround-io/apitrace,schulmar/apitrace,schulmar/apitrace,joshua5201/apitrace,schulmar/apitrace,EoD/apitrace,EoD/apitrace,tuanthng/apitrace,PeterLValve/apitrace,apitrace/apitrace,surround-io/apitrace,schulmar/apitrace,tuanthng/apitrace,trtt/apitrace,PeterLValve/apitrace,surround-io/apitrace,apitrace/apitrace,swq0553/apitrace,swq0553/apitrace,tuanthng/apitrace,trtt/apitrace,PeterLValve/apitrace,PeterLValve/apitrace,tuanthng/apitrace,EoD/apitrace