Library
core
modules
Core Src Law Num

Lawtext core references / core/src/law/num

Module: core/src/law/num

Table of contents

Enumerations

Variables

Functions

Variables

aiuChars

Const aiuChars: "アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲン"

Defined in

core/src/law/num.ts:59 (opens in a new tab)


circledDigitChars

Const circledDigitChars: "⓪①②③④⑤⑥⑦⑧⑨⑩⑪⑫⑬⑭⑮⑯⑰⑱⑲⑳㉑㉒㉓㉔㉕㉖㉗㉘㉙㉚㉛㉜㉝㉞㉟㊱㊲㊳㊴㊵㊶㊷㊸㊹㊺㊻㊼㊽㊾㊿"

Defined in

core/src/law/num.ts:57 (opens in a new tab)


irohaChars

Const irohaChars: "イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセスン"

Defined in

core/src/law/num.ts:58 (opens in a new tab)

Functions

digitsToKanjiNum

digitsToKanjiNum(digits, type): string

Parameters

NameType
digitsstring | number
type"positional" | "non-positional"

Returns

string

Defined in

core/src/law/num.ts:38 (opens in a new tab)


parseKanjiNum

parseKanjiNum(text): null | number

Parameters

NameType
textstring

Returns

null | number

Defined in

core/src/law/num.ts:5 (opens in a new tab)


parseNamedNum

parseNamedNum(text, kanaMode?): string

Parameters

NameTypeDefault value
textstringundefined
kanaModeKanaModeKanaMode.Iroha

Returns

string

Defined in

core/src/law/num.ts:116 (opens in a new tab)