9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Saroj Mahapatra <saroj@optonline.net>
To: 9fans@cse.psu.edu
Subject: [9fans] ndb and tokenize
Date: Mon, 24 Feb 2003 10:00:10 +0000	[thread overview]
Message-ID: <6d3220b4.0302221723.2ee31b81@posting.google.com> (raw)

Rob had written in an earlier posting about how he is pushing to use
%q and tokenize consistently everywhere. Ndb now uses double quotes
("avalue" style) and if I remember correctly, can not handle embedded
quotes. Imagine if ndb used rc-style quotes for attribute values
(aname='avalue'). tokenize in its current form can not be used to
parse an arbitrary number of pairs. So I think 'tokenize' should
return the rest of the string (in an out argument) after setting the
last argument in the argument vector. Note that 'getfields' does not
alter a token (such as, compressing quotes); so there is no difficulty
in calling 'getfields' repeatedly to get an arbitrary number of
fields. But 'tokenize' must leave the rest of the string untouched, so
that one can call 'tokenize' again. I have been thinking about
'tokenize' for some time and I'd like to hear others' opinions
regarding this.


Thank you,
Saroj Mahapatra


                 reply	other threads:[~2003-02-24 10:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6d3220b4.0302221723.2ee31b81@posting.google.com \
    --to=saroj@optonline.net \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).