Top "String.format" questions

A method or function that takes a template string and arguments for that template and inserts these arguments into the template in an appropriate manner (programming-language-independent tag)

How to construct WMI query

I'd like to find results that Name starts with param1, and ends with param2 but my code doesn't work string …

c# .net-4.0 wmi wmi-query string.format
Performance between String.format and StringBuilder

To concatenate String we often use StringBuilder instead of String + String, but also we can do the same with String.…

java stringbuilder string.format
Can I format NULL values in string.Format?

I was wondering if there's a syntax for formatting NULL values in string.Format, such as what Excel uses For …

c# string-formatting string.format
Use String.Format on a TimeSpan to output full seconds without milliseconds

I want to display the elapsed time between two dates in a string. Let's say I have the following code: …

c# timespan string.format
Escaping single quote in String.Format()

I have been all over the 'tubes and I can't figure this one out. Might be simple. The following String.…

.net escaping string.format
java equivalent to printf("%*.*f")

In C, the printf() statement allows the precision lengths to be supplied in the parameter list. printf("%*.*f", 7, 3, floatValue); where …

java android printf string.format
Python string.format() percentage without rounding

In the example below I would like to format to 1 decimal place but python seems to like rounding up the …

python floating-point string.format
Is CultureInfo.CurrentCulture really necessary in String.Format()?

How do you think is really necessary to provide IFormatProvider in method String.Format(string, object) ? Is it better to …

c# .net culture string.format
How to Conditionally Format a String in .Net?

I would like to do some condition formatting of strings. I know that you can do some conditional formatting of …

c# .net string string.format
String.Format for C++

Looking for an implementation for C++ of a function like .NET's String.Format. Obviously there is printf and it's varieties, …

c++ localization string.format printf