Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by andrepd

4 days ago

It requires manual allocation of an array of tokens. So it needs a backing "stack vector" of sorts.

And what about escapes?

1 comment

andrepd

Reply

int_19h  3 days ago

For escapes you can mutate the raw buffer with data in place, since a single escape always expands to fewer characters than the escape itself.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities