wildstar
    Preparing search index...

    Type Alias CharCompare

    CharCompare: (codePointA: number, codePointB: number) => boolean

    A function type for comparing two Unicode code points.

    Type Declaration

      • (codePointA: number, codePointB: number): boolean
      • Parameters

        • codePointA: number

          The first Unicode code point (number)

        • codePointB: number

          The second Unicode code point (number)

        Returns boolean

        True if the code points are considered equal, false otherwise

    • Used to customize character comparison logic in pattern matching functions.
    const strict: CharCompare = (a, b) => a === b
    const insensitive: CharCompare = (a, b) => String.fromCodePoint(a).toLowerCase() === String.fromCodePoint(b).toLowerCase()