Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class Formatter

    Formatting utilities (for reports).

    Inheritance
    System.Object
    Formatter
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Benchmarks.ByTask.Utils
    Assembly: Lucene.Net.Benchmark.dll
    Syntax
    public static class Formatter

    Methods

    | Improve this Doc View Source

    Format(Int32, Double, String)

    Declaration
    public static string Format(int numFracDigits, double f, string col)
    Parameters
    Type Name Description
    System.Int32 numFracDigits
    System.Double f
    System.String col
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    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.Int32 numFracDigits

    Number of digits in fraction part - must be 0 or 1 or 2.

    System.Single f

    Number to be formatted.

    System.String col

    Column name (used for deciding on length).

    Returns
    Type Description
    System.String

    Formatted string.

    | Improve this Doc View Source

    Format(Int32, String)

    Pad a number from left.

    Declaration
    public static string Format(int n, string col)
    Parameters
    Type Name Description
    System.Int32 n

    Number to be formatted.

    System.String col

    Column name (used for deciding on length).

    Returns
    Type Description
    System.String

    Formatted string.

    | Improve this Doc View Source

    Format(String, String)

    Pad a string from right.

    Declaration
    public static string Format(string s, string col)
    Parameters
    Type Name Description
    System.String s

    String to be formatted.

    System.String col

    Column name (used for deciding on length).

    Returns
    Type Description
    System.String

    Formatted string.

    | Improve this Doc View Source

    FormatPaddLeft(String, String)

    Pad a string from left.

    Declaration
    public static string FormatPaddLeft(string s, string col)
    Parameters
    Type Name Description
    System.String s

    String to be formatted.

    System.String col

    Column name (used for deciding on length).

    Returns
    Type Description
    System.String

    Formatted string.

    | Improve this Doc View Source

    FormatPaddRight(Int32, Double, String)

    Declaration
    public static string FormatPaddRight(int numFracDigits, double f, string col)
    Parameters
    Type Name Description
    System.Int32 numFracDigits
    System.Double f
    System.String col
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    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.Int32 numFracDigits

    Number of digits in fraction part - must be 0 or 1 or 2.

    System.Single f

    Number to be formatted.

    System.String col

    Column name (used for deciding on length).

    Returns
    Type Description
    System.String

    Formatted string.

    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.