Integrated Dynamics

Integrated Dynamics

63M Downloads

String format function

Shovinus opened this issue · 3 comments

commented

Issue type:

  • ➕ Feature request

Short description:

Allow the building of string with placeholders and variables:
"Hello {0}, you have {1} new messages."
Then pass in variables.
If it could accept multiple variable cards that would be nice.

commented

no more than 10 would normally needed but even then you can just concat more.

commented

Should be trivial to implement with a fixed number of variables, but a bit more tricky with a variable number of variables (but a list could work here).

commented

If considered to make a .NET style string format operator
here is the .NET string class and format function
https://github.com/microsoft/referencesource/blob/master/mscorlib/system/string.cs#L2960

GitHub
Source from the Microsoft .NET Reference Source that represent a subset of the .NET Framework - microsoft/referencesource