Skip to content

Commit 0faaf06

Browse files
authored
Merge pull request #44 from meokullu/parameters_consistency_0001
v2.3.0 #41 Parameters naming.
2 parents efda803 + 3cbcd48 commit 0faaf06

File tree

3 files changed

+22
-17
lines changed

3 files changed

+22
-17
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
#### Removed
1212
-->
1313

14+
### [2.3.0]
15+
#### Changed
16+
* Parameter names on `PreFillCustom(string text, int maxLength, string stringValue = " ")` changed into `PreFillCustom(string context, int maxLength, string text = " ")` [#41](https://github.com/meokullu/PreFill/issues/40)
17+
* Parameter names on `PreFillCustom(string text, int maxLength, char charValue = ' ')` changed into `PreFillCustom(string context, int maxLength, char text = ' ')` [#41](https://github.com/meokullu/PreFill/issues/40)
18+
1419
### [2.2.2]
1520
#### Changed
1621
* Removed unused usings.

PreFill/Prefill.csproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<ProduceReferenceAssembly>True</ProduceReferenceAssembly>
66
<GenerateDocumentationFile>True</GenerateDocumentationFile>
77
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
8-
<Version>2.2.3</Version>
9-
<AssemblyVersion>2.2.3</AssemblyVersion>
10-
<FileVersion>2.2.3</FileVersion>
8+
<Version>2.3.0</Version>
9+
<AssemblyVersion>2.3.0</AssemblyVersion>
10+
<FileVersion>2.3.0</FileVersion>
1111
<Copyright>Enes Okullu</Copyright>
1212
<Description>PreFill is a project to align horizontally listed output values to right side in order to increase their legibility.</Description>
1313
<Title>PreFill</Title>
@@ -16,10 +16,10 @@
1616
<RepositoryType>git</RepositoryType>
1717
<PackageTags>data-science; data; data-engineering; alignment; data-analysis; egibility</PackageTags>
1818
<PackageReleaseNotes>
19-
v.2.2.3
20-
*
21-
See changelog (https://github.com/meokullu/PreFill/blob/master/CHANGELOG.md)
22-
</PackageReleaseNotes>
19+
v2.3.0
20+
* Parameter names changed on `PreFillCustom(string text, int maxLength, string stringValue = " ")` and `PreFillCustom(string text, int maxLength, char charValue = ' ')`. First parameter named as context and third value names and text. [#41](https://github.com/meokullu/PreFill/issues/40)
21+
See changelog (https://github.com/meokullu/PreFill/blob/master/CHANGELOG.md)
22+
</PackageReleaseNotes>
2323
<SignAssembly>False</SignAssembly>
2424
<PackageReadmeFile>README.md</PackageReadmeFile>
2525
<PackageLicenseFile>LICENSE</PackageLicenseFile>

PreFill/src/PreFill.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -136,33 +136,33 @@ public static string PreFillCustom(long number, int maxDigit, char text = ' ')
136136
/// <summary>
137137
/// Calculates length of given text then creates string with prefilling value of specified character before given numtextber on limit of maximum length.
138138
/// </summary>
139-
/// <param name="text">A text whose prefill value to be found.</param>
139+
/// <param name="context">A text whose prefill value to be found.</param>
140140
/// <param name="maxLength">Maximum length of context including specified number and prefilling.</param>
141-
/// <param name="stringValue">Specified text whose will be used for prefilling.</param>
141+
/// <param name="text">Specified text whose will be used for prefilling.</param>
142142
/// <returns>Returns prefill value for specified text.</returns>
143-
public static string PreFillCustom(string text, int maxLength, string stringValue = " ")
143+
public static string PreFillCustom(string context, int maxLength, string text = " ")
144144
{
145145
// Getting length of given text.
146-
int textLength = maxLength - GetLengthOfString(text);
146+
int textLength = maxLength - GetLengthOfString(context);
147147

148148
// Calling FillString method to get prefilling value.
149-
return FillString(textLength, stringValue);
149+
return FillString(textLength, text);
150150
}
151151

152152
/// <summary>
153153
/// Calculates length of given text then creates string with prefilling value of specified character before given numtextber on limit of maximum length.
154154
/// </summary>
155-
/// <param name="text">A text whose prefill value to be found.</param>
155+
/// <param name="context">A text whose prefill value to be found.</param>
156156
/// <param name="maxLength">Maximum length of context including specified number and prefilling.</param>
157-
/// <param name="charValue">Specified character whose will be used for prefilling.</param>
157+
/// <param name="text">Specified character whose will be used for prefilling.</param>
158158
/// <returns>Returns prefill value for specified text.</returns>
159-
public static string PreFillCustom(string text, int maxLength, char charValue = ' ')
159+
public static string PreFillCustom(string context, int maxLength, char text = ' ')
160160
{
161161
// Getting length of given text.
162-
int textLength = maxLength - GetLengthOfString(text);
162+
int textLength = maxLength - GetLengthOfString(context);
163163

164164
// Calling FillChar method to get prefilling value.
165-
return FillChar(textLength, charValue);
165+
return FillChar(textLength, text);
166166
}
167167

168168
/// <summary>

0 commit comments

Comments
 (0)