code: public boolean isCodeInCC(Encoding enc, int code) {
          int len;
          if (enc.minLength() > 1) {
              len = 2;
          } else {
              len = enc.codeToMbcLength(code);
          }
          return isCodeInCCLength(len, code);
      }
docs: onig_is_code_in_cc