Wyatt Hepler
2596fe5418
pw_string: Rename va_list Format to FormatVaList
...
On Windows, sometimes the va_list overload would be used when formatting
with a single argument. To avoid potential conflicts like these, the
va_list versions of string::Format and StringBuilder::Format are renamed
to FormatVaList.
Change-Id: Id29fae21b13ed420b13841a479e3748a1d3b91ce
2020-01-24 22:53:22 +00:00
Wyatt Hepler
becb431e5f
Apply pw format to the repository
...
Change-Id: I3c8e4f956dfe6c9e81d3069f72c30c5950852074
2019-12-05 09:31:11 -08:00
Rob Mohr
416af48496
Config bazel for pw_bloaty and size_report.
...
Fill out pw_bloaty/BUILD and add pw_string/size_report/BUILD.
Change-Id: I5ff98de0a452491cdff595ad56ee7365f40590dd
2019-12-04 23:21:51 +00:00
Wyatt Hepler
1a96094ce6
Fix copyright notices
...
- Add missing copright header in conf.py.
- Fix inconsistent copyright notice line breaking.
Change-Id: Ib78f7768643069c49ff986a48a176df9fd06e891
2019-11-27 22:34:02 +00:00
Wyatt Hepler
fe85de25cf
pw_string: start docs; StringBuilder size report
...
Change-Id: Id1dbc070b14a85aeb782606e85d566ed0347fcd4
2019-11-26 21:27:22 +00:00
Wyatt Hepler
8a823ceebb
Size report for pw::string::Format
...
Add size report comparing pw::string::Format to std::snprintf.
Report with arm-none-eabi-gcc at -Os:
Using pw::string::Format instead of snprintf
────────────────────────────────────────────
┌────────────────────────────┬───────────┬────────┬───────┬────────┐
│ Label │ Segment │ Before │ Delta │ After │
├════════════════════════════┼═══════════┼════════┼═══════┼════════┤
│ One string, return size │ SEG FLASH │ 2,840 │ +80 │ 2,920 │
├────────────────────────────┼───────────┼────────┼───────┼────────┤
│ Ten strings, handle errors │ (all) │ (same) │ 0 │ (same) │
├────────────────────────────┼───────────┼────────┼───────┼────────┤
│ Fifty calls, same buffer │ SEG FLASH │ 3,816 │ -72 │ 3,744 │
└────────────────────────────┴───────────┴────────┴───────┴────────┘
Change-Id: Id484530320b0334cddf676a49ad79444fbbbde9b
2019-11-19 12:58:31 -08:00