Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/zh/table/list"

Index

Type aliases

Functions

Type aliases

IOptions

IOptions: { lang?: "cn" | "jp" | "auto" | string; optionsZhTable?: IOptionsZhTable; skip?: any }

Type declaration

  • Optional lang?: "cn" | "jp" | "auto" | string
  • Optional optionsZhTable?: IOptionsZhTable
  • Optional skip?: any

Functions

arrCjk

  • arrCjk(arr: string[], options?: IOptionsCjkConv): string[]
  • example

    arrCjk(['司马', '上官', '欧阳', '夏侯']) // => [ '司马', '上官', '欧阳', '夏侯', '司馬', '歐陽', '欧陽' ]

    Parameters

    • arr: string[]
    • Default value options: IOptionsCjkConv = {}

    Returns string[]

charTableList

  • charTableList(text: string, options?: IOptions): string[][]
  • example
    charTableList('司马')
    // => [ [ '司' ], [ '馬', '马' ] ]

    Parameters

    • text: string
    • Default value options: IOptions = {}

    Returns string[][]

slugify

  • slugify(input: string, options?: IOptions, unsafe2?: boolean): string
  • slugify(input: string, unsafe2?: boolean): string
  • 用來標準化字串 作為排序用

    Parameters

    • input: string
    • Optional options: IOptions
    • Optional unsafe2: boolean

    Returns string

  • 用來標準化字串 作為排序用

    Parameters

    • input: string
    • Optional unsafe2: boolean

    Returns string

textList

  • textList(text: string, options?: IOptions): string[]
  • example

    textList('司马') // => [ '司馬', '司马' ]

    Parameters

    • text: string
    • Default value options: IOptions = {}

    Returns string[]

Generated using TypeDoc