Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace GB_T_17710

Index

Functions

checkLength

  • checkLength(s: string, n: number): boolean
  • Parameters

    • s: string
    • n: number

    Returns boolean

computeCC

  • computeCC(s: string, M: number, W: number[], alphabet: string, chars?: string): string
  • 计算校验码

    Parameters

    • s: string

      待计算的字符串

    • M: number

      取余的除数

    • W: number[]

      加权因子数组

    • alphabet: string

      代码字符集

    • Optional chars: string

      校验位字符集(默认为代码字符集)

    Returns string

    校验码

Generated using TypeDoc