1091
return false;
1092
}
1094
>
if (validationType === StringOffsetValidationType.SurrogatePairs) {
1095
>
const charCodeBeforeStart = (startColumn > 1 ? this._buffer.getLineCharCode(startLineNumber, startColumn - 2) : 0);
1096
>
const charCodeBeforeEnd = (endColumn > 1 && endColumn <= this._buffer.getLineLength(endLineNumber) ? this._buffer.getLineCharCode(endLineNumber, endColumn - 2) : 0);
1097
>
1098
>
const startInsideSurrogatePair = strings.isHighSurrogate(charCodeBeforeStart);
1099
>
const endInsideSurrogatePair = strings.isHighSurrogate(charCodeBeforeEnd);
1100
>
1101
>
if (!startInsideSurrogatePair && !endInsideSurrogatePair) {
1102
>
return true;
1103
>
}
1104
return false;
1105
}