convnum
    Preparing search index...

    Function isZhTOrS

    • Check if the text is Simplified or Traditional Chinese (only for characters in convnum)

      检查文本为繁体或简体(仅限convnum中出现的汉字)

      Parameters

      • text: string

        The text to check

      Returns undefined | 1 | 0 | 2 | -1

      • undefined: the text is not (common) Chinese (not all characters are in zhPattern)
        • 0: the text is Simplified Chinese for sure (at least one is in sPattern, no one is in tPattern)
        • 1: the text is Traditional Chinese for sure (at least one is in tPattern, no one is in sPattern)
        • -1: the text is mixed of Simplified and Traditional (at least one is in sPattern, and at least one is in tPattern)
        • 2: not sure if it is Simplified or Traditional (no one is in sPattern, and no one is in tPattern)