Interface INumeralParsingSystem<TLanguageUnits>
Not actual romanization. This is a system exclusively for parsing other numeral systems (Greek numerals, for instance).
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 SourceProcess(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 |
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 |