Lawtext core references / core/src/law/num
core/src/law/num
Enumerations
KanaMode
Defined in: core/src/law/num.ts:109 (opens in a new tab)
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
constaiuChars:"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲン"="アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲン"
Defined in: core/src/law/num.ts:59 (opens in a new tab)
circledDigitChars
constcircledDigitChars:"⓪①②③④⑤⑥⑦⑧⑨⑩⑪⑫⑬⑭⑮⑯⑰⑱⑲⑳㉑㉒㉓㉔㉕㉖㉗㉘㉙㉚㉛㉜㉝㉞㉟㊱㊲㊳㊴㊵㊶㊷㊸㊹㊺㊻㊼㊽㊾㊿"="⓪①②③④⑤⑥⑦⑧⑨⑩⑪⑫⑬⑭⑮⑯⑰⑱⑲⑳㉑㉒㉓㉔㉕㉖㉗㉘㉙㉚㉛㉜㉝㉞㉟㊱㊲㊳㊴㊵㊶㊷㊸㊹㊺㊻㊼㊽㊾㊿"
Defined in: core/src/law/num.ts:57 (opens in a new tab)
irohaChars
constirohaChars:"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセスン"="イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセスン"
Defined in: core/src/law/num.ts:58 (opens in a new tab)
Functions
digitsToKanjiNum()
digitsToKanjiNum(
digits,type):string
Defined in: core/src/law/num.ts:38 (opens in a new tab)
Parameters
digits
string | number
type
"positional" | "non-positional"
Returns
string
parseKanjiNum()
parseKanjiNum(
text):null|number
Defined in: core/src/law/num.ts:5 (opens in a new tab)
Parameters
text
string
Returns
null | number
parseNamedNum()
parseNamedNum(
text,kanaMode):string
Defined in: core/src/law/num.ts:116 (opens in a new tab)
Parameters
text
string
kanaMode
KanaMode = KanaMode.Iroha
Returns
string