[haiku-development] Re: R1/a4 initial planning

  • From: Rene Gollent <anevilyak@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 24 Feb 2012 15:25:54 -0500

On Fri, Feb 24, 2012 at 3:20 PM, fano il primo <fanoilprimo@xxxxxxxxx> wrote:
> Add a sort of sprintf() to BString? Or the arg as in Qt (but it's ugly
> again) IMHO use a sprintf wirth normal ARGS know to everibody is better...

That already exists, see BString::SetToFormat().

As for parsing a BString into an integer, while there isn't a direct
member function currently, this can trivially be done via calls like
strtod and friends.

Regards,

Rene

Other related posts: