void copy(OptMapInfo other) { mmd.copy(other.mmd); anchor.copy(other.anchor); value = other.value; System.arraycopy(other.map, 0, map, 0, other.map.length); }
void copy(OptMapInfo other) { mmd.copy(other.mmd); anchor.copy(other.anchor); value = other.value; System.arraycopy(other.map, 0, map, 0, other.map.length); }
void copy(OptExactInfo other) { mmd.copy(other.mmd); anchor.copy(other.anchor); reachEnd = other.reachEnd; ignoreCase = other.ignoreCase; length = other.length; System.arraycopy(other.bytes, 0, bytes, 0, OPT_EXACT_MAXLEN); }
void copy(OptExactInfo other) { mmd.copy(other.mmd); anchor.copy(other.anchor); reachEnd = other.reachEnd; ignoreCase = other.ignoreCase; length = other.length; System.arraycopy(other.bytes, 0, bytes, 0, OPT_EXACT_MAXLEN); }
void concat(OptExactInfo other, Encoding enc) { if (ignoreCase < 0) { ignoreCase = other.ignoreCase; } else if (ignoreCase != other.ignoreCase) { return; } int p = 0; // add->s; int end = p + other.length; int i; for (i = length; p < end;) { int len = enc.length(other.bytes, p, end); if (i + len > OPT_EXACT_MAXLEN) break; for (int j = 0; j < len && p < end; j++) { bytes[i++] = other.bytes[p++]; // arraycopy or even don't copy anything ?? } } length = i; reachEnd = (p == end ? other.reachEnd : false); OptAnchorInfo tmp = new OptAnchorInfo(); tmp.concat(anchor, other.anchor, 1, 1); if (!reachEnd) tmp.rightAnchor = 0; anchor.copy(tmp); }
void concat(OptExactInfo other, Encoding enc) { if (ignoreCase < 0) { ignoreCase = other.ignoreCase; } else if (ignoreCase != other.ignoreCase) { return; } int p = 0; // add->s; int end = p + other.length; int i; for (i = length; p < end;) { int len = enc.length(other.bytes, p, end); if (i + len > OPT_EXACT_MAXLEN) break; for (int j = 0; j < len && p < end; j++) { bytes[i++] = other.bytes[p++]; // arraycopy or even don't copy anything ?? } } length = i; reachEnd = (p == end ? other.reachEnd : false); OptAnchorInfo tmp = new OptAnchorInfo(); tmp.concat(anchor, other.anchor, 1, 1); if (!reachEnd) tmp.rightAnchor = 0; anchor.copy(tmp); }
public void copy(NodeOptInfo other) { length.copy(other.length); anchor.copy(other.anchor); exb.copy(other.exb); exm.copy(other.exm); expr.copy(other.expr); map.copy(other.map); }
public void copy(NodeOptInfo other) { length.copy(other.length); anchor.copy(other.anchor); exb.copy(other.exb); exm.copy(other.exm); expr.copy(other.expr); map.copy(other.map); }