enum CCVALTYPE {
CCV_SB,
- CCV_CODE_POINT,
+ CCV_MB,
CCV_CLASS
};
if (*state == CCS_VALUE && *type != CCV_CLASS) {
if (*type == CCV_SB)
BITSET_SET_BIT(cc->bs, (int )(*vs));
- else if (*type == CCV_CODE_POINT) {
+ else if (*type == CCV_MB) {
r = add_code_range(&(cc->mbuf), env, *vs, *vs);
if (r < 0) return r;
}
BITSET_SET_BIT(cc->bs, (int )(*from));
}
- else if (*type == CCV_CODE_POINT) {
+ else if (*type == CCV_MB) {
r = add_code_range(&(cc->mbuf), env, *from, *from);
if (r < 0) return r;
}
any_char_in:
len = ONIGENC_CODE_TO_MBCLEN(env->enc, tok->u.code);
if (len > 1) {
- in_type = CCV_CODE_POINT;
+ in_type = CCV_MB;
}
else if (len < 0) {
r = len;
}
else {
v = ONIGENC_MBC_TO_CODE(env->enc, buf, bufe);
- in_type = CCV_CODE_POINT;
+ in_type = CCV_MB;
}
}
else {
goto err;
}
}
- in_type = (len == 1 ? CCV_SB : CCV_CODE_POINT);
+ in_type = (len == 1 ? CCV_SB : CCV_MB);
val_entry2:
r = next_state_val(cc, &vs, v, &val_israw, in_israw, in_type, &val_type,
&state, env);