Class Formatter
Formatting utilities (for reports).
Inheritance
System.Object
Formatter
Namespace: Lucene.Net.Benchmarks.ByTask.Utils
Assembly: Lucene.Net.Benchmark.dll
Syntax
public class Formatter : object
Methods
| Improve this Doc View SourceFormat(Int32, Double, String)
Declaration
public static string Format(int numFracDigits, double f, string col)
Parameters
Type | Name | Description |
---|---|---|
System. |
numFracDigits | |
System. |
f | |
System. |
col |
Returns
Type | Description |
---|---|
System. |
Format(Int32, Single, String)
Padd a number from left.
Declaration
public static string Format(int numFracDigits, float f, string col)
Parameters
Type | Name | Description |
---|---|---|
System. |
numFracDigits | Number of digits in fraction part - must be 0 or 1 or 2. |
System. |
f | Number to be formatted. |
System. |
col | Column name (used for deciding on length). |
Returns
Type | Description |
---|---|
System. |
Formatted string. |
Format(Int32, String)
Pad a number from left.
Declaration
public static string Format(int n, string col)
Parameters
Type | Name | Description |
---|---|---|
System. |
n | Number to be formatted. |
System. |
col | Column name (used for deciding on length). |
Returns
Type | Description |
---|---|
System. |
Formatted string. |
Format(String, String)
Pad a string from right.
Declaration
public static string Format(string s, string col)
Parameters
Type | Name | Description |
---|---|---|
System. |
s | String to be formatted. |
System. |
col | Column name (used for deciding on length). |
Returns
Type | Description |
---|---|
System. |
Formatted string. |
FormatPaddLeft(String, String)
Pad a string from left.
Declaration
public static string FormatPaddLeft(string s, string col)
Parameters
Type | Name | Description |
---|---|---|
System. |
s | String to be formatted. |
System. |
col | Column name (used for deciding on length). |
Returns
Type | Description |
---|---|
System. |
Formatted string. |
FormatPaddRight(Int32, Double, String)
Declaration
public static string FormatPaddRight(int numFracDigits, double f, string col)
Parameters
Type | Name | Description |
---|---|---|
System. |
numFracDigits | |
System. |
f | |
System. |
col |
Returns
Type | Description |
---|---|
System. |
FormatPaddRight(Int32, Single, String)
Pad a number from right.
Declaration
public static string FormatPaddRight(int numFracDigits, float f, string col)
Parameters
Type | Name | Description |
---|---|---|
System. |
numFracDigits | Number of digits in fraction part - must be 0 or 1 or 2. |
System. |
f | Number to be formatted. |
System. |
col | Column name (used for deciding on length). |
Returns
Type | Description |
---|---|
System. |
Formatted string. |