hasBlankCharInRange function
Returns true
if s
has a blank character in range offset
+length
.
Implementation
bool hasBlankCharInRange(String s, int offset, int length) {
if (length <= 0) return false;
var end = Math.min(s.length, offset + length);
for (var i = offset; i < end; i++) {
var c = s.codeUnitAt(i);
if (isBlankCodeUnit(c)) return true;
}
return false;
}