[libc++] NFC: Refactor the new format substitutions into its own method
authorLouis Dionne <ldionne@apple.com>
Fri, 24 Apr 2020 15:30:10 +0000 (11:30 -0400)
committerLouis Dionne <ldionne@apple.com>
Fri, 24 Apr 2020 19:35:57 +0000 (15:35 -0400)
commit4de60d955a8a23b0bd7f0ee815fbae935e0cedbe
treef28cbe44cccb0af79828eecae2e009b87ae657da
parent60f1d2636626a0b92b6ad2cb86eea78cb1cd7b33
[libc++] NFC: Refactor the new format substitutions into its own method

This way, we can reuse the substitution logic in the new DSL.
libcxx/utils/libcxx/test/newformat.py