LanguageUtils class
A class for general language utility functions. A majority of these functions are direct adaptations of Yomichan's Japanese utility functions from JavaScript to Dart.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
distributeFurigana(
{required DictionaryHeading heading}) → List< RubyTextData> - Generate Furigana for a DictionaryHeading.
-
getFuriganaKanaSegments(
{required String text, required String reading}) → List< RubyTextData> -
Generate a list of
RubyTextData
for kana given a text and its reading. -
isCodePointInRange(
int codePoint, List< int> ranges) → bool -
Get whether or not a code point is within the ranges. Assumes
ranges
is a two element list of integers. -
isCodePointInRanges(
int codePoint, List< List< multipleRanges) → boolint> > -
Multiple ranges version of isCodePointInRange. Assumes
multipleRanges
only contains lists that are two element list of integers. -
isCodePointKana(
int codePoint) → bool - Checks if a given code point is hiragana or katakana.
-
segmentizeFurigana(
{required String reading, required String readingNormalized, required List< FuriganaDistributionGroup> groups, required int groupsStart}) → List<RubyTextData> ? - Given the groups generated from distributeFurigana, segment the furigana.