Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 415
    • Issues 415
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #253
Closed
Open
Issue created Oct 02, 2016 by Mark OLESEN@markMaintainer

ENH: provided a flexible string formatting

Provide the possibility of sprintf-style formatting for basic primitives (int, float) in the Foam::name() globals. Example syntax,

word outname = name("%08d", intval);

instead of

std::ostringstream oss;
oss << std::setfill('0') << std::setw(8) << intval;
word outname = oss.str();
Assignee
Assign to
Time tracking