Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8379917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:18:59+00:00 2026-06-09T16:18:59+00:00

Up until this point, I have been using FormatString to format multi-language strings using

  • 0

Up until this point, I have been using FormatString to format multi-language strings using numbered variables ($1, $2, etc.) – however, it is not cross-platform compatible.

Is there a sprintf-esque function that is cross platform that does the same thing? It wouldn’t need to allocate memory or anything – just need to be able to deal with numbered typed pseudo-variables that could be in different places in the string.

Boost is okay, if it provides a similar function.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T16:19:00+00:00Added an answer on June 9, 2026 at 4:19 pm

    I would have a look at boost::format. I’ve been using it for a while and it works very well.

    Another option would be to use std::stringstreams for formatting the output. If you don’t want to or cannot use boost, that’s pretty much the only portable option, plus as a bonus the syntax is a little more readable IMHO.

    Both libraries are type safe and thus much better and safer to use in a C++ context as well, compared to the usual C APIs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I came across this recently, up until now I have been happily overriding the
I've been staring at this until I can't see straight. I've got a console
So Heroku has been down all day, of course I didn't realise this until
This didn't happen until I have added jQuery. function mfunc() {} mfunc.prototype.create = function(value)
I asked this question to multiple people and until now I do not have
I have this horrible habit of typing the below and not catching it until
ReportLab/xhtml2pdf have worked perfectly until now when it crashes at this style bit in
I have been extensively searching all over the net last night until today and
I'm getting a bit confused with UIViews recently, I have been using them fine
I have been using Emacs since version 18. Emacs Lisp isn't my routine programming

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.