Loading…
None
String updated in the repository |
|
None
String updated in the repository |
|
None
String updated in the repository |
|
None
String updated in the repository |
|
None
String updated in the repository |
|
None
String updated in the repository |
|
None
String updated in the repository |
|
None
String updated in the repository |
|
None
String updated in the repository |
|
None
String updated in the repository |
|
kingu
Source string comment
Why the "'"?
ryonakano
Source string comment
@kingu Here '
is used as a flag character which allows us to show the ,
delimiter depending on the number, e.g. 1,000,000 items
.
From $ man printf.3
:
Flag characters
The character % is followed by zero or more of the following flags:
……
' For decimal conversion (i, d, u, f, F, g, G) the output is to be grouped with thousands' grouping characters if the locale information indicates any. (See setlocale(3).) Note that many versions of gcc(1) cannot parse
this option and will issue a warning. (SUSv2 did not include %'F, but SUSv3 added it.)
Flags
c-format
Singular
Plural
One
Few
Other