35 return fStartOffset != -1;
47 return fStartOffset + fLength;
52 if (fStartOffset == -1 ||
end.fStartOffset == -1) {
56 "Invalid range: (%d-%d) - (%d-%d)\n", this->startOffset(), this->endOffset(),
57 end.startOffset(),
end.endOffset());
68 return fStartOffset == other.fStartOffset && fLength == other.fLength;
72 return !(*
this == other);
76 return fStartOffset > other.fStartOffset;
80 return fStartOffset >= other.fStartOffset;
84 return fStartOffset < other.fStartOffset;
88 return fStartOffset <= other.fStartOffset;
94 int32_t fStartOffset : 24;
#define SkASSERTF(cond, fmt,...)
bool operator<(const Position &other) const
int line(std::string_view source) const
bool operator==(const Position &other) const
bool operator!=(const Position &other) const
bool operator<=(const Position &other) const
bool operator>=(const Position &other) const
bool operator>(const Position &other) const
static constexpr int kMaxOffset
static Position Range(int startOffset, int endOffset)
Position rangeThrough(Position end) const
Position conditionPosition