Search Results for

    Show / Hide Table of Contents

    Interface INumeralParsingSystem<TLanguageUnits>

    Not actual romanization. This is a system exclusively for parsing other numeral systems (Greek numerals, for instance).

    Inherited Members
    INumeralParsingSystem.ProcessNumeralsInText(String, Func<NumeralValue, String>)
    Namespace: Romanization
    Assembly: Romanization.NET.dll
    Syntax
    public interface INumeralParsingSystem<TLanguageUnits> : INumeralParsingSystem where TLanguageUnits : struct
    Type Parameters
    Name Description
    TLanguageUnits

    Methods

    | Improve this Doc View Source

    Process(String)

    The system-specific function that determines the numeric value of a numeral using the system.

    Declaration
    NumeralValue<TLanguageUnits> Process(string text)
    Parameters
    Type Name Description
    System.String text

    The numeral text to parse.

    Returns
    Type Description
    NumeralValue<TLanguageUnits>

    A numeric value representing the value of text, with a unit if one could be found.

    | Improve this Doc View Source

    ProcessNumeralsInText(String, Func<NumeralValue<TLanguageUnits>, String>)

    Processes the given text, parsing any numerals with Process(String) then replacing them with the result of numeralProcessor run on their values.

    Declaration
    string ProcessNumeralsInText(string text, Func<NumeralValue<TLanguageUnits>, string> numeralProcessor)
    Parameters
    Type Name Description
    System.String text

    The text to process.

    Func<NumeralValue<TLanguageUnits>, System.String> numeralProcessor

    The function that converts parsed numeric value (potentially with units) into a string.

    Returns
    Type Description
    System.String

    A new copy of text with all numerals found within replaced.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Romanization.NET