@@ -51,13 +51,13 @@ private string RemoveDuplicates(string text)
51
51
52
52
private string TrimEnd ( string text )
53
53
{
54
- var checks = new ( string from , string to ) ? [ ]
54
+ var checks = new ( string From , string To ) ? [ ]
55
55
{
56
56
( "S" , string . Empty ) ,
57
57
( "AY" , "Y" ) ,
58
58
( "A" , string . Empty ) ,
59
59
} ;
60
- var replacement = checks . FirstOrDefault ( t => text . EndsWith ( t ! . Value . from ) ) ;
60
+ var replacement = checks . FirstOrDefault ( t => text . EndsWith ( t ! . Value . From ) ) ;
61
61
if ( replacement is { } )
62
62
{
63
63
var ( from , to ) = replacement ! . Value ;
@@ -69,7 +69,7 @@ private string TrimEnd(string text)
69
69
70
70
private string ReplaceStep ( string text , int i )
71
71
{
72
- ( string from , string to ) [ ] replacements =
72
+ ( string From , string To ) [ ] replacements =
73
73
{
74
74
( "EV" , "AF" ) ,
75
75
( "E" , "A" ) ,
@@ -134,7 +134,7 @@ private bool TryReplace(string text, int index, (string, string)[] opts, out str
134
134
135
135
private string StartReplace ( string start )
136
136
{
137
- var checks = new ( string from , string to ) ? [ ]
137
+ var checks = new ( string From , string To ) ? [ ]
138
138
{
139
139
( "MAC" , "MCC" ) ,
140
140
( "KN" , "NN" ) ,
@@ -143,7 +143,7 @@ private string StartReplace(string start)
143
143
( "PF" , "FF" ) ,
144
144
( "SCH" , "SSS" ) ,
145
145
} ;
146
- var replacement = checks . FirstOrDefault ( t => start . StartsWith ( t ! . Value . from ) ) ;
146
+ var replacement = checks . FirstOrDefault ( t => start . StartsWith ( t ! . Value . From ) ) ;
147
147
if ( replacement is { } )
148
148
{
149
149
var ( from , to ) = replacement ! . Value ;
@@ -155,7 +155,7 @@ private string StartReplace(string start)
155
155
156
156
private string EndReplace ( string end )
157
157
{
158
- var checks = new ( string from , string to ) ? [ ]
158
+ var checks = new ( string From , string To ) ? [ ]
159
159
{
160
160
( "EE" , "Y" ) ,
161
161
( "IE" , "Y" ) ,
@@ -164,7 +164,7 @@ private string EndReplace(string end)
164
164
( "NT" , "D" ) ,
165
165
( "ND" , "D" ) ,
166
166
} ;
167
- var replacement = checks . FirstOrDefault ( t => end . EndsWith ( t ! . Value . from ) ) ;
167
+ var replacement = checks . FirstOrDefault ( t => end . EndsWith ( t ! . Value . From ) ) ;
168
168
if ( replacement is { } )
169
169
{
170
170
var ( from , to ) = replacement ! . Value ;
@@ -175,5 +175,5 @@ private string EndReplace(string end)
175
175
}
176
176
177
177
private string Replace ( string text , int index , int length , string substitute ) =>
178
- text [ ..index ] + substitute + text [ ( index + length ) ..] ;
178
+ text [ ..index ] + substitute + text [ ( index + length ) ..] ;
179
179
}
0 commit comments