> The reason I would like to have this is that in order to
> parse strings and accumulate results, in Pike I tend to
> either pick the characters apart as integers, or use strings of
> characters whenever the parsing allows me to go faster.

Hmm, I almost never pick strings apart into individual characters
since I believe it's slow (although I really haven't measured). I
usually manage to do it in ways where the individual char picking is
kept at the C level (sscanf ftw).

> The result is that I would like to accumulate the results piecemeal
> in an array.  This array gets filled like in the example above.
> Then I'd like to return a single string to the function caller,
> in which case I could cast it to string (as done above).

And you can't use String.Buffer for it? It has add() for strings and
putchar() for chars.
          • Re: ... Stephen R. van den Berg
            • ... Marc Dirix
              • ... Stephen R. van den Berg
            • ... Mirar @ Pike developers forum
              • ... Marc Dirix
              • ... Mirar @ Pike developers forum
              • ... Stephen R. van den Berg
              • ... Peter Bortas @ Pike developers forum
              • ... Stephen R. van den Berg
              • ... Peter Bortas
        • Re: Supp... Martin Stjernholm, Roxen IS @ Pike developers forum
          • Re: ... Stephen R. van den Berg
            • ... Martin Stjernholm, Roxen IS @ Pike developers forum
              • ... Jonas Walld�n @ Pike developers forum
              • ... Martin Stjernholm, Roxen IS @ Pike developers forum
              • ... Stephen R. van den Berg
              • ... Mirar @ Pike developers forum
              • ... Jonas Walld�n @ Pike developers forum
              • ... Mirar @ Pike developers forum
              • ... Jonas Walld�n @ Pike developers forum
  • Support for array(str... Martin Stjernholm, Roxen IS @ Pike developers forum

Reply via email to