[ipxe-devel] add support for trimming whitespaces from strings
Christian Hesse
list at eworm.de
Fri Nov 29 11:16:09 UTC 2013
Hello everybody,
some vendors like filling information in BIOS with blanks. So echoing the
product variable results in something like "Latitude E6500 ".
I would like to trim the trailing whitespaces. This is not possible yet, no?
I added a new modifier "stringtrim". Using ${product:stringtrim} now results
in just "Latitude E6500". Any comments?
--
main(a){char*c=/* Schoene Gruesse */"B?IJj;MEH"
"CX:;",b;for(a/* Chris get my mail address: */=0;b=c[a++];)
putchar(b-1/(/* gcc -o sig sig.c && ./sig */b/42*2-3)*42);}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-add-support-for-trimming-whitespaces-from-strings.patch
Type: text/x-patch
Size: 1558 bytes
Desc: not available
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20131129/562dac5d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20131129/562dac5d/attachment.sig>
More information about the ipxe-devel
mailing list