Class ReadingsString<TType>
A string of characters with all possible readings (pronunciations) for each character.
Inheritance
Namespace: Romanization
Assembly: Romanization.NET.dll
Syntax
public class ReadingsString<TType> : object where TType : Enum
Type Parameters
Name | Description |
---|---|
TType | The reading type enum to use, which contains all supported readings for a given language or system. |
Fields
| Improve this Doc View SourceCharacters
The characters of the string.
Each one stores both the character itself (not necessarily equivalent to a char, as some Hànzì characters are double-wide), and all known readings (pronunciations).
Declaration
public readonly ReadingCharacter<TType>[] Characters
Field Value
Type | Description |
---|---|
ReadingCharacter<TType>[] |
Methods
| Improve this Doc View SourceToString()
Returns a string that displays all readings of each character.
For characters with 0 readings, they are displayed simply as themselves.
For characters with 1 reading, they are displayed as their only reading.
For characters with more than 1 reading, they are displayed as a space-delimited list of all readings in order, within square brackets.
Example: "xiàndài [hàn tān][yǔ yù] [pín bīn][shuài lǜ lüe l̈ù] cí[diǎn tiǎn]."
Note that this does not display the source of each reading.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string with all known readings of each character. |