ALIGN_LIMITSconstant
What segmentWord will work on: a word of up to 64 characters and a reading of up to 256. A longer word or reading
is refused (null) rather than searched.
Import it
import { ALIGN_LIMITS } from "@johnmorrisdotca/hikidashi/align";
Also exported from: @johnmorrisdotca/hikidashi
Definition
const ALIGN_LIMITS: { readonly word: 64; readonly reading: 256; } = { word: 64, reading: 256 } as const
Members
| Name | Type | Description |
|---|---|---|
word | 64 | |
reading | 256 |
Examples
import { ALIGN_LIMITS, segmentWord } from "@johnmorrisdotca/hikidashi/align";
console.log(ALIGN_LIMITS, segmentWord("字".repeat(ALIGN_LIMITS.word + 1), "じ"));{ word: 64, reading: 256 } nullWhat it prints (run when this page was built)