├── .gitattributes
├── .github
└── workflows
│ └── ci.yml
├── .gitignore
├── FormatWith.sln
├── FormatWith
├── FormatWith-Release.snk
├── FormatWith.csproj
├── Internal
│ ├── FormatHelpers.cs
│ ├── FormatToken.cs
│ ├── FormatWithMethods.cs
│ └── StringBuilderExtensions.cs
├── MissingKeyBehaviour.cs
├── ReplacementResult.cs
└── StringExtensions.cs
├── FormatWithTests
├── FormatProvider
│ └── UpperCaseFormatProvider.cs
├── FormatWithTests.cs
├── FormatWithTests.csproj
├── FormattableWithTests.cs
├── MiscTests.cs
└── TestStrings.cs
├── License.txt
├── README.md
└── icon.png
/.gitattributes:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Set default behavior to automatically normalize line endings.
3 | ###############################################################################
4 | * text=auto
5 |
6 | ###############################################################################
7 | # Set default behavior for command prompt diff.
8 | #
9 | # This is need for earlier builds of msysgit that does not have it on by
10 | # default for csharp files.
11 | # Note: This is only used by command line
12 | ###############################################################################
13 | #*.cs diff=csharp
14 |
15 | ###############################################################################
16 | # Set the merge driver for project and solution files
17 | #
18 | # Merging from the command prompt will add diff markers to the files if there
19 | # are conflicts (Merging from VS is not affected by the settings below, in VS
20 | # the diff markers are never inserted). Diff markers may cause the following
21 | # file extensions to fail to load in VS. An alternative would be to treat
22 | # these files as binary and thus will always conflict and require user
23 | # intervention with every merge. To do so, just uncomment the entries below
24 | ###############################################################################
25 | #*.sln merge=binary
26 | #*.csproj merge=binary
27 | #*.vbproj merge=binary
28 | #*.vcxproj merge=binary
29 | #*.vcproj merge=binary
30 | #*.dbproj merge=binary
31 | #*.fsproj merge=binary
32 | #*.lsproj merge=binary
33 | #*.wixproj merge=binary
34 | #*.modelproj merge=binary
35 | #*.sqlproj merge=binary
36 | #*.wwaproj merge=binary
37 |
38 | ###############################################################################
39 | # behavior for image files
40 | #
41 | # image files are treated as binary by default.
42 | ###############################################################################
43 | #*.jpg binary
44 | #*.png binary
45 | #*.gif binary
46 |
47 | ###############################################################################
48 | # diff behavior for common document formats
49 | #
50 | # Convert binary document formats to text before diffing them. This feature
51 | # is only available from the command line. Turn it on by uncommenting the
52 | # entries below.
53 | ###############################################################################
54 | #*.doc diff=astextplain
55 | #*.DOC diff=astextplain
56 | #*.docx diff=astextplain
57 | #*.DOCX diff=astextplain
58 | #*.dot diff=astextplain
59 | #*.DOT diff=astextplain
60 | #*.pdf diff=astextplain
61 | #*.PDF diff=astextplain
62 | #*.rtf diff=astextplain
63 | #*.RTF diff=astextplain
64 |
--------------------------------------------------------------------------------
/.github/workflows/ci.yml:
--------------------------------------------------------------------------------
1 | name: CI
2 |
3 | on:
4 | push:
5 | branches:
6 | - master
7 | pull_request:
8 | branches:
9 | - master
10 |
11 | jobs:
12 | build:
13 | strategy:
14 | matrix:
15 | os: ['windows-2019', 'ubuntu-20.04']
16 | runs-on: ${{ matrix.os }}
17 |
18 | steps:
19 | - name: Checkout
20 | uses: actions/checkout@v2
21 | with:
22 | fetch-depth: 0
23 |
24 | - name: Build and Test
25 | run: dotnet test -c release
26 | shell: pwsh
27 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 |
4 | # User-specific files
5 | *.suo
6 | *.user
7 | *.userosscache
8 | *.sln.docstates
9 |
10 | # User-specific files (MonoDevelop/Xamarin Studio)
11 | *.userprefs
12 |
13 | # Build results
14 | [Dd]ebug/
15 | [Dd]ebugPublic/
16 | [Rr]elease/
17 | [Rr]eleases/
18 | x64/
19 | x86/
20 | build/
21 | bld/
22 | [Bb]in/
23 | [Oo]bj/
24 |
25 | # Visual Studio 2015 cache/options directory
26 | .vs/
27 |
28 | # MSTest test Results
29 | [Tt]est[Rr]esult*/
30 | [Bb]uild[Ll]og.*
31 |
32 | # NUNIT
33 | *.VisualState.xml
34 | TestResult.xml
35 |
36 | # Build Results of an ATL Project
37 | [Dd]ebugPS/
38 | [Rr]eleasePS/
39 | dlldata.c
40 |
41 | # DNX
42 | project.lock.json
43 | artifacts/
44 |
45 | *_i.c
46 | *_p.c
47 | *_i.h
48 | *.ilk
49 | *.meta
50 | *.obj
51 | *.pch
52 | *.pdb
53 | *.pgc
54 | *.pgd
55 | *.rsp
56 | *.sbr
57 | *.tlb
58 | *.tli
59 | *.tlh
60 | *.tmp
61 | *.tmp_proj
62 | *.log
63 | *.vspscc
64 | *.vssscc
65 | .builds
66 | *.pidb
67 | *.svclog
68 | *.scc
69 |
70 | # Chutzpah Test files
71 | _Chutzpah*
72 |
73 | # Visual C++ cache files
74 | ipch/
75 | *.aps
76 | *.ncb
77 | *.opensdf
78 | *.sdf
79 | *.cachefile
80 |
81 | # Visual Studio profiler
82 | *.psess
83 | *.vsp
84 | *.vspx
85 |
86 | # TFS 2012 Local Workspace
87 | $tf/
88 |
89 | # Guidance Automation Toolkit
90 | *.gpState
91 |
92 | # ReSharper is a .NET coding add-in
93 | _ReSharper*/
94 | *.[Rr]e[Ss]harper
95 | *.DotSettings.user
96 |
97 | # JustCode is a .NET coding add-in
98 | .JustCode
99 |
100 | # TeamCity is a build add-in
101 | _TeamCity*
102 |
103 | # DotCover is a Code Coverage Tool
104 | *.dotCover
105 |
106 | # NCrunch
107 | _NCrunch_*
108 | .*crunch*.local.xml
109 |
110 | # MightyMoose
111 | *.mm.*
112 | AutoTest.Net/
113 |
114 | # Web workbench (sass)
115 | .sass-cache/
116 |
117 | # Installshield output folder
118 | [Ee]xpress/
119 |
120 | # DocProject is a documentation generator add-in
121 | DocProject/buildhelp/
122 | DocProject/Help/*.HxT
123 | DocProject/Help/*.HxC
124 | DocProject/Help/*.hhc
125 | DocProject/Help/*.hhk
126 | DocProject/Help/*.hhp
127 | DocProject/Help/Html2
128 | DocProject/Help/html
129 |
130 | # Click-Once directory
131 | publish/
132 |
133 | # Publish Web Output
134 | *.[Pp]ublish.xml
135 | *.azurePubxml
136 | ## TODO: Comment the next line if you want to checkin your
137 | ## web deploy settings but do note that will include unencrypted
138 | ## passwords
139 | #*.pubxml
140 |
141 | *.publishproj
142 |
143 | # NuGet Packages
144 | *.nupkg
145 | # The packages folder can be ignored because of Package Restore
146 | **/packages/*
147 | # except build/, which is used as an MSBuild target.
148 | !**/packages/build/
149 | # Uncomment if necessary however generally it will be regenerated when needed
150 | #!**/packages/repositories.config
151 |
152 | # Windows Azure Build Output
153 | csx/
154 | *.build.csdef
155 |
156 | # Windows Store app package directory
157 | AppPackages/
158 |
159 | # Visual Studio cache files
160 | # files ending in .cache can be ignored
161 | *.[Cc]ache
162 | # but keep track of directories ending in .cache
163 | !*.[Cc]ache/
164 |
165 | # Others
166 | ClientBin/
167 | [Ss]tyle[Cc]op.*
168 | ~$*
169 | *~
170 | *.dbmdl
171 | *.dbproj.schemaview
172 | *.pfx
173 | *.publishsettings
174 | node_modules/
175 | orleans.codegen.cs
176 |
177 | # RIA/Silverlight projects
178 | Generated_Code/
179 |
180 | # Backup & report files from converting an old project file
181 | # to a newer Visual Studio version. Backup files are not needed,
182 | # because we have git ;-)
183 | _UpgradeReport_Files/
184 | Backup*/
185 | UpgradeLog*.XML
186 | UpgradeLog*.htm
187 |
188 | # SQL Server files
189 | *.mdf
190 | *.ldf
191 |
192 | # Business Intelligence projects
193 | *.rdl.data
194 | *.bim.layout
195 | *.bim_*.settings
196 |
197 | # Microsoft Fakes
198 | FakesAssemblies/
199 |
200 | # Node.js Tools for Visual Studio
201 | .ntvs_analysis.dat
202 |
203 | # Visual Studio 6 build log
204 | *.plg
205 |
206 | # Visual Studio 6 workspace options file
207 | *.opt
208 |
209 | # LightSwitch generated files
210 | GeneratedArtifacts/
211 | _Pvt_Extensions/
212 | ModelManifest.xml
213 |
--------------------------------------------------------------------------------
/FormatWith.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.26730.12
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{B4638D33-4E45-4FB4-A119-91F90F876E8D}"
7 | EndProject
8 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{A15B581D-78A5-4783-870C-FB89A1A09FD5}"
9 | EndProject
10 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FormatWith", "FormatWith\FormatWith.csproj", "{921D7EE8-732B-4237-9020-C97C8ECFF78B}"
11 | EndProject
12 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FormatWithTests", "FormatWithTests\FormatWithTests.csproj", "{3F2936F4-0E9D-43B5-A7CE-1A22DF9F9A8A}"
13 | EndProject
14 | Global
15 | GlobalSection(Performance) = preSolution
16 | HasPerformanceSessions = true
17 | EndGlobalSection
18 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
19 | Debug|Any CPU = Debug|Any CPU
20 | Debug|ARM = Debug|ARM
21 | Debug|x64 = Debug|x64
22 | Debug|x86 = Debug|x86
23 | Release|Any CPU = Release|Any CPU
24 | Release|ARM = Release|ARM
25 | Release|x64 = Release|x64
26 | Release|x86 = Release|x86
27 | EndGlobalSection
28 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
29 | {921D7EE8-732B-4237-9020-C97C8ECFF78B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30 | {921D7EE8-732B-4237-9020-C97C8ECFF78B}.Debug|Any CPU.Build.0 = Debug|Any CPU
31 | {921D7EE8-732B-4237-9020-C97C8ECFF78B}.Debug|ARM.ActiveCfg = Debug|Any CPU
32 | {921D7EE8-732B-4237-9020-C97C8ECFF78B}.Debug|ARM.Build.0 = Debug|Any CPU
33 | {921D7EE8-732B-4237-9020-C97C8ECFF78B}.Debug|x64.ActiveCfg = Debug|Any CPU
34 | {921D7EE8-732B-4237-9020-C97C8ECFF78B}.Debug|x64.Build.0 = Debug|Any CPU
35 | {921D7EE8-732B-4237-9020-C97C8ECFF78B}.Debug|x86.ActiveCfg = Debug|Any CPU
36 | {921D7EE8-732B-4237-9020-C97C8ECFF78B}.Debug|x86.Build.0 = Debug|Any CPU
37 | {921D7EE8-732B-4237-9020-C97C8ECFF78B}.Release|Any CPU.ActiveCfg = Release|Any CPU
38 | {921D7EE8-732B-4237-9020-C97C8ECFF78B}.Release|Any CPU.Build.0 = Release|Any CPU
39 | {921D7EE8-732B-4237-9020-C97C8ECFF78B}.Release|ARM.ActiveCfg = Release|Any CPU
40 | {921D7EE8-732B-4237-9020-C97C8ECFF78B}.Release|ARM.Build.0 = Release|Any CPU
41 | {921D7EE8-732B-4237-9020-C97C8ECFF78B}.Release|x64.ActiveCfg = Release|Any CPU
42 | {921D7EE8-732B-4237-9020-C97C8ECFF78B}.Release|x64.Build.0 = Release|Any CPU
43 | {921D7EE8-732B-4237-9020-C97C8ECFF78B}.Release|x86.ActiveCfg = Release|Any CPU
44 | {921D7EE8-732B-4237-9020-C97C8ECFF78B}.Release|x86.Build.0 = Release|Any CPU
45 | {3F2936F4-0E9D-43B5-A7CE-1A22DF9F9A8A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
46 | {3F2936F4-0E9D-43B5-A7CE-1A22DF9F9A8A}.Debug|Any CPU.Build.0 = Debug|Any CPU
47 | {3F2936F4-0E9D-43B5-A7CE-1A22DF9F9A8A}.Debug|ARM.ActiveCfg = Debug|Any CPU
48 | {3F2936F4-0E9D-43B5-A7CE-1A22DF9F9A8A}.Debug|ARM.Build.0 = Debug|Any CPU
49 | {3F2936F4-0E9D-43B5-A7CE-1A22DF9F9A8A}.Debug|x64.ActiveCfg = Debug|Any CPU
50 | {3F2936F4-0E9D-43B5-A7CE-1A22DF9F9A8A}.Debug|x64.Build.0 = Debug|Any CPU
51 | {3F2936F4-0E9D-43B5-A7CE-1A22DF9F9A8A}.Debug|x86.ActiveCfg = Debug|Any CPU
52 | {3F2936F4-0E9D-43B5-A7CE-1A22DF9F9A8A}.Debug|x86.Build.0 = Debug|Any CPU
53 | {3F2936F4-0E9D-43B5-A7CE-1A22DF9F9A8A}.Release|Any CPU.ActiveCfg = Release|Any CPU
54 | {3F2936F4-0E9D-43B5-A7CE-1A22DF9F9A8A}.Release|Any CPU.Build.0 = Release|Any CPU
55 | {3F2936F4-0E9D-43B5-A7CE-1A22DF9F9A8A}.Release|ARM.ActiveCfg = Release|Any CPU
56 | {3F2936F4-0E9D-43B5-A7CE-1A22DF9F9A8A}.Release|ARM.Build.0 = Release|Any CPU
57 | {3F2936F4-0E9D-43B5-A7CE-1A22DF9F9A8A}.Release|x64.ActiveCfg = Release|Any CPU
58 | {3F2936F4-0E9D-43B5-A7CE-1A22DF9F9A8A}.Release|x64.Build.0 = Release|Any CPU
59 | {3F2936F4-0E9D-43B5-A7CE-1A22DF9F9A8A}.Release|x86.ActiveCfg = Release|Any CPU
60 | {3F2936F4-0E9D-43B5-A7CE-1A22DF9F9A8A}.Release|x86.Build.0 = Release|Any CPU
61 | {06B0DD6E-D6C3-4F67-BFCA-C7E6660C2D04}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
62 | {06B0DD6E-D6C3-4F67-BFCA-C7E6660C2D04}.Debug|Any CPU.Build.0 = Debug|Any CPU
63 | {06B0DD6E-D6C3-4F67-BFCA-C7E6660C2D04}.Debug|ARM.ActiveCfg = Debug|Any CPU
64 | {06B0DD6E-D6C3-4F67-BFCA-C7E6660C2D04}.Debug|ARM.Build.0 = Debug|Any CPU
65 | {06B0DD6E-D6C3-4F67-BFCA-C7E6660C2D04}.Debug|x64.ActiveCfg = Debug|Any CPU
66 | {06B0DD6E-D6C3-4F67-BFCA-C7E6660C2D04}.Debug|x64.Build.0 = Debug|Any CPU
67 | {06B0DD6E-D6C3-4F67-BFCA-C7E6660C2D04}.Debug|x86.ActiveCfg = Debug|Any CPU
68 | {06B0DD6E-D6C3-4F67-BFCA-C7E6660C2D04}.Debug|x86.Build.0 = Debug|Any CPU
69 | {06B0DD6E-D6C3-4F67-BFCA-C7E6660C2D04}.Release|Any CPU.ActiveCfg = Release|Any CPU
70 | {06B0DD6E-D6C3-4F67-BFCA-C7E6660C2D04}.Release|Any CPU.Build.0 = Release|Any CPU
71 | {06B0DD6E-D6C3-4F67-BFCA-C7E6660C2D04}.Release|ARM.ActiveCfg = Release|Any CPU
72 | {06B0DD6E-D6C3-4F67-BFCA-C7E6660C2D04}.Release|ARM.Build.0 = Release|Any CPU
73 | {06B0DD6E-D6C3-4F67-BFCA-C7E6660C2D04}.Release|x64.ActiveCfg = Release|Any CPU
74 | {06B0DD6E-D6C3-4F67-BFCA-C7E6660C2D04}.Release|x64.Build.0 = Release|Any CPU
75 | {06B0DD6E-D6C3-4F67-BFCA-C7E6660C2D04}.Release|x86.ActiveCfg = Release|Any CPU
76 | {06B0DD6E-D6C3-4F67-BFCA-C7E6660C2D04}.Release|x86.Build.0 = Release|Any CPU
77 | EndGlobalSection
78 | GlobalSection(SolutionProperties) = preSolution
79 | HideSolutionNode = FALSE
80 | EndGlobalSection
81 | GlobalSection(NestedProjects) = preSolution
82 | {921D7EE8-732B-4237-9020-C97C8ECFF78B} = {B4638D33-4E45-4FB4-A119-91F90F876E8D}
83 | {3F2936F4-0E9D-43B5-A7CE-1A22DF9F9A8A} = {B4638D33-4E45-4FB4-A119-91F90F876E8D}
84 | EndGlobalSection
85 | GlobalSection(ExtensibilityGlobals) = postSolution
86 | SolutionGuid = {CAB2E4E0-1D18-4C27-9022-229AAB03C637}
87 | EndGlobalSection
88 | GlobalSection(Performance) = preSolution
89 | HasPerformanceSessions = true
90 | EndGlobalSection
91 | EndGlobal
92 |
--------------------------------------------------------------------------------
/FormatWith/FormatWith-Release.snk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crozone/FormatWith/35671b04415185341517915345b0783bbf162073/FormatWith/FormatWith-Release.snk
--------------------------------------------------------------------------------
/FormatWith/FormatWith.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netstandard2.0
5 | FormatWith
6 | FormatWith
7 | String extension methods for performing {named} {{parameterized}} string formatting, written for NetStandard 2.0
8 | FormatWith
9 | FormatWith
10 | FormatWith
11 | 3.0.1
12 | Ryan Crosby
13 | Copyright © Ryan Crosby 2017 - 2020
14 | named string formatter extension NetStandard 2.0
15 | https://github.com/crozone/FormatWith
16 | MIT
17 | true
18 | false
19 | false
20 | false
21 | false
22 | false
23 | false
24 | true
25 | https://github.com/crozone/FormatWith
26 | git
27 |
28 | Key:format syntax now supported for FormatWith and FormattableWith.
29 | Add strong signing.
30 |
31 | true
32 | FormatWith-Release.snk
33 | false
34 |
35 |
36 |
37 | bin\Debug\netstandard2.0\FormatWith.xml
38 |
39 |
40 |
41 | bin\Release\netstandard2.0\FormatWith.xml
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/FormatWith/Internal/FormatHelpers.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Runtime.CompilerServices;
5 | using System.Text;
6 |
7 | namespace FormatWith.Internal
8 | {
9 | ///
10 | /// Contains all string processing and tokenizing methods for FormatWith
11 | ///
12 | internal static class FormatHelpers
13 | {
14 | ///
15 | /// Processes a list of format tokens into a string
16 | ///
17 | /// List of tokens to turn into a string
18 | /// The function used to perform the replacements on the format tokens
19 | /// The behaviour to use when the format string contains a parameter that is not present in the lookup dictionary
20 | /// When the is specified, this string is used as a fallback replacement value when the parameter is present in the lookup dictionary.
21 | /// Provides a hint to the underlying string builder to help reduce buffer reallocations.
22 | /// The processed result of joining the tokens with the replacement dictionary.
23 | public static string ProcessTokens(
24 | IEnumerable tokens,
25 | Func handler,
26 | MissingKeyBehaviour missingKeyBehaviour,
27 | object fallbackReplacementValue,
28 | int outputLengthHint)
29 | {
30 | // create a StringBuilder to hold the resultant output string
31 | // use the input hint as the initial size
32 | StringBuilder resultBuilder = new StringBuilder(outputLengthHint);
33 |
34 | foreach (FormatToken thisToken in tokens)
35 | {
36 | if (thisToken.TokenType == TokenType.Text)
37 | {
38 | // token is a text token
39 | // add the token to the result string builder
40 | resultBuilder.Append(thisToken.SourceString, thisToken.StartIndex, thisToken.Length);
41 | }
42 | else if (thisToken.TokenType == TokenType.Parameter)
43 | {
44 | // token is a parameter token
45 | // perform parameter logic now.
46 | var tokenKey = thisToken.Value;
47 | string format = null;
48 | var separatorIdx = tokenKey.IndexOf(":", StringComparison.Ordinal);
49 | if (separatorIdx > -1)
50 | {
51 | tokenKey = thisToken.Value.Substring(0, separatorIdx);
52 | format = thisToken.Value.Substring(separatorIdx + 1);
53 | }
54 |
55 | // append the replacement for this parameter
56 | ReplacementResult replacementResult = handler(tokenKey, format);
57 |
58 | if (replacementResult.Success)
59 | {
60 | // the key exists, add the replacement value
61 | // this does nothing if replacement value is null
62 | if (string.IsNullOrWhiteSpace(format))
63 | {
64 | resultBuilder.Append(replacementResult.Value);
65 | }
66 | else
67 | {
68 | resultBuilder.AppendFormat("{0:" + format + "}", replacementResult.Value);
69 | }
70 | }
71 | else
72 | {
73 | // the key does not exist, handle this using the missing key behaviour specified.
74 | switch (missingKeyBehaviour)
75 | {
76 | case MissingKeyBehaviour.ThrowException:
77 | // the key was not found as a possible replacement, throw exception
78 | throw new KeyNotFoundException($"The parameter \"{thisToken.Value}\" was not present in the lookup dictionary");
79 | case MissingKeyBehaviour.ReplaceWithFallback:
80 | resultBuilder.Append(fallbackReplacementValue);
81 | break;
82 | case MissingKeyBehaviour.Ignore:
83 | // the replacement value is the input key as a parameter.
84 | // use source string and start/length directly with append rather than
85 | // parameter.ParameterKey to avoid allocating an extra string
86 | resultBuilder.Append(thisToken.SourceString, thisToken.StartIndex, thisToken.Length);
87 | break;
88 | }
89 | }
90 | }
91 | }
92 |
93 | // return the resultant string
94 | return resultBuilder.ToString();
95 | }
96 |
97 | ///
98 | /// Processes a list of format tokens into a string
99 | ///
100 | /// List of tokens to turn into a string
101 | /// The function used to perform the replacements on the format tokens
102 | /// The behaviour to use when the format string contains a parameter that is not present in the lookup dictionary
103 | /// When the is specified, this string is used as a fallback replacement value when the parameter is present in the lookup dictionary.
104 | ///
105 | /// The processed result of joining the tokens with the replacement dictionary.
106 | public static FormattableString ProcessTokensIntoFormattableString(
107 | IEnumerable tokens,
108 | Func handler,
109 | MissingKeyBehaviour missingKeyBehaviour,
110 | object fallbackReplacementValue,
111 | int outputLengthHint)
112 | {
113 | List