ALIGN_LIMITS定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
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 { ALIGN_LIMITS } from "@johnmorrisdotca/hikidashi/align";
ほかのエクスポート元: @johnmorrisdotca/hikidashi
定義
const ALIGN_LIMITS: { readonly word: 64; readonly reading: 256; } = { word: 64, reading: 256 } as const
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
word | 64 | |
reading | 256 |
例
import { ALIGN_LIMITS, segmentWord } from "@johnmorrisdotca/hikidashi/align";
console.log(ALIGN_LIMITS, segmentWord("字".repeat(ALIGN_LIMITS.word + 1), "じ"));{ word: 64, reading: 256 } null出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。