Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
folly
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
folly
Commits
4d3ede0d
Commit
4d3ede0d
authored
Jun 09, 2012
by
Tudor Bosman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typos.
Test Plan: No Reviewed By: delong.j@fb.com FB internal diff: D491038
parent
f05803b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
folly/docs/Format.md
folly/docs/Format.md
+5
-5
No files found.
folly/docs/Format.md
View file @
4d3ede0d
...
@@ -116,7 +116,7 @@ Format specification:
...
@@ -116,7 +116,7 @@ Format specification:
`[[fill] align] [sign] ["#"] ["0"] [width] [","] ["." precision] [type]`
`[[fill] align] [sign] ["#"] ["0"] [width] [","] ["." precision] [type]`
-
`fill`
(may only be specified if
`align`
is also specified): pad with this
-
`fill`
(may only be specified if
`align`
is also specified): pad with this
character ('
' (space) or '
`0`
' (zero) might be useful; space is default)
character ('
` `
' (space) or '
`0`
' (zero) might be useful; space is default)
-
`align`
: one of '
`<`
', '
`>`
', '
`=`
', '
`^`
':
-
`align`
: one of '
`<`
', '
`>`
', '
`=`
', '
`^`
':
-
'
`<`
': left-align (default for most objects)
-
'
`<`
': left-align (default for most objects)
-
'
`>`
': right-align (default for numbers)
-
'
`>`
': right-align (default for numbers)
...
@@ -126,7 +126,7 @@ Format specification:
...
@@ -126,7 +126,7 @@ Format specification:
-
`sign`
: one of '
`+`
', '
`-`
', ' ' (space) (only valid for numbers)
-
`sign`
: one of '
`+`
', '
`-`
', ' ' (space) (only valid for numbers)
-
'
`+`
': output '
`+`
' if positive or zero, '
`-`
' if negative
-
'
`+`
': output '
`+`
' if positive or zero, '
`-`
' if negative
-
'
`-`
': output '
`-`
' if negative, nothing otherwise (default)
-
'
`-`
': output '
`-`
' if negative, nothing otherwise (default)
-
'
' (space): output '
' (space) if positive or zero, '
`-`
' if negative
-
'
` `
' (space): output '
` `
' (space) if positive or zero, '
`-`
' if negative
-
'
`#`
': output base prefix (
`0`
for octal,
`0b`
or
`0B`
for binary,
`0x`
or
-
'
`#`
': output base prefix (
`0`
for octal,
`0b`
or
`0B`
for binary,
`0x`
or
`0X`
for hexadecimal; only valid for integers)
`0X`
for hexadecimal; only valid for integers)
-
'
`0`
': 0-pad after sign, same as specifying "
`0=`
" as the
`fill`
and
-
'
`0`
': 0-pad after sign, same as specifying "
`0=`
" as the
`fill`
and
...
@@ -163,8 +163,8 @@ Presentation formats:
...
@@ -163,8 +163,8 @@ Presentation formats:
-
Floating point (
`float`
,
`double`
;
`long double`
is not implemented):
-
Floating point (
`float`
,
`double`
;
`long double`
is not implemented):
-
'
`e`
': scientific notation using '
`e`
' as exponent character
-
'
`e`
': scientific notation using '
`e`
' as exponent character
-
'
`E`
': scientific notation using '
`E`
' as exponent character
-
'
`E`
': scientific notation using '
`E`
' as exponent character
-
'
`f
'`
: fixed point
-
'
`f
`
'
: fixed point
-
'
`F
'`
: fixed point (same as '
`f`
')
-
'
`F
`
'
: fixed point (same as '
`f`
')
-
'
`g`
': general; use either '
`f`
' or '
`e`
' depending on magnitude (default)
-
'
`g`
': general; use either '
`f`
' or '
`e`
' depending on magnitude (default)
-
'
`G`
': general; use either '
`f`
' or '
`E`
' depending on magnitude
-
'
`G`
': general; use either '
`f`
' or '
`E`
' depending on magnitude
-
'
`n`
': locale-aware version of '
`g`
' (currently same as '
`g`
')
-
'
`n`
': locale-aware version of '
`g`
' (currently same as '
`g`
')
...
@@ -174,7 +174,7 @@ Presentation formats:
...
@@ -174,7 +174,7 @@ Presentation formats:
### Extension
### Extension
***
***
You can extend
Formatter
for your own class by providing a specialization for
You can extend
`format`
for your own class by providing a specialization for
`folly::FormatValue`
. See
`folly/Format.h`
and
`folly/FormatArg.h`
for
`folly::FormatValue`
. See
`folly/Format.h`
and
`folly/FormatArg.h`
for
details, and the existing specialization for
`folly::dynamic`
in
details, and the existing specialization for
`folly::dynamic`
in
`folly/dynamic-inl.h`
for an implementation example.
`folly/dynamic-inl.h`
for an implementation example.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment