Library
core
src
law
num
Readme

Lawtext core referencesDocs


Lawtext core references / core/src/law/num

core/src/law/num

Enumerations

KanaMode

Enumeration Members

Aiu

Aiu: "Aiu"

Defined in

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


Iroha

Iroha: "Iroha"

Defined in

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

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

digits: string | 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

text: string

Returns

null | number

Defined in

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


parseNamedNum()

parseNamedNum(text, kanaMode): string

Parameters

text: string

kanaMode: KanaMode = KanaMode.Iroha

Returns

string

Defined in

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