convnum
    Preparing search index...

    Function isZh

    • Check if the text is Chinese (Simplified or Traditional or punctuation)

      检查文本是否为中文(简体或繁体或标点)

      Parameters

      • text: string

        The text to check

      • mode: 1 | 2 | 3

        The mode

        • 1: first character is in the range
        • 2: at least one character is in the range
        • 3: all characters are in the range

      Returns boolean

      boolean