public static String decodeComponent(TemporaryThreadLocals tempThreadLocals,
                                         String s, int from, int toExcluded) {
        if (from == toExcluded) {
            return "";
        }

        for (int i = from; i < toExcluded; i++) {
            final char c = s.charAt(i);
            if ((c & 0xFFF1) != 0x21) {
                // We can skip with a single comparison because both
                // '%' (0b00100101) and '+' (0b00101011) has the same five bits (0b0010xxx1).
                continue;
            }

            // At this point, `c` is one of the following characters: # % ' ) + - /
            if (c == '%' || c == '+') {
                return decodeUtf8Component(tempThreadLocals.charArray(toExcluded - from), s, from, toExcluded);
            }
        }

        return s.substring(from, toExcluded);
    }
Decodes the specified string from the index of {@code from} to the index of {@code toExcluded} if it's
<a href="https://datatracker.ietf.org/doc/html/rfc3986#section-2.1">Percent-Encoded</a>.
core/src/main/java/com/linecorp/armeria/internal/common/PercentDecoder.java