Re: pseudo-specs for a String class: char &

From: Adrian Chadd <adrian_at_freebsd.org>
Date: Tue, 2 Sep 2008 20:05:39 +0800

2008/9/2 Kinkie <gkinkie_at_gmail.com>:

> Read: might be useful for the HTTP parser.
> Stuff like:
>
> KBuf reqhdr = (whatever gets in from comm)
> Kbuf hdrline=reqhdr->nextToken("\n");
> if (hdrline[hdrline.len()-1]=='\r')
> hrline.truncate(hdrline.len()-1); //chop \r off

Ok, so what would the underlying manipulations be?

Adrian
Received on Tue Sep 02 2008 - 12:05:41 MDT

This archive was generated by hypermail 2.2.0 : Wed Sep 03 2008 - 12:00:03 MDT