mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Allow comparison of text::indent_t
This commit is contained in:
@@ -25,6 +25,16 @@ namespace text
|
||||
|
||||
std::string create (size_t atColumn = 0, size_t units = 1) const;
|
||||
|
||||
bool operator== (indent_t const& rhs) const
|
||||
{
|
||||
return _tab_size == rhs._tab_size && _indent_size == rhs._indent_size && _soft_tabs == rhs._soft_tabs && _tab_follows_indent == rhs._tab_follows_indent;
|
||||
}
|
||||
|
||||
bool operator!= (indent_t const& rhs) const
|
||||
{
|
||||
return _tab_size != rhs._tab_size || _indent_size != rhs._indent_size || _soft_tabs != rhs._soft_tabs || _tab_follows_indent != rhs._tab_follows_indent;
|
||||
}
|
||||
|
||||
private:
|
||||
size_t _tab_size;
|
||||
size_t _indent_size;
|
||||
|
||||
Reference in New Issue
Block a user