32 bool intersection( T begin1, T end1, T begin2, T end2,
bool exclusive=
false, T* resultBegin=0, T* resultEnd=0 )
35 if( end1 <= begin2 )
return false;
36 if( end2 <= begin1 )
return false;
38 if( end1 < begin2 )
return false;
39 if( end2 < begin1 )
return false;
43 if( resultBegin ) { *resultBegin = qMax(begin1,begin2); }
44 if( resultEnd ) { *resultEnd = qMin(end1,end2); }
32 bool intersection( T begin1, T end1, T begin2, T end2,
bool exclusive=
false, T* resultBegin=0, T* resultEnd=0 ) {
…}
A global utiltity class. The purpose of this class is to put 'global' function that don't quite fit o...
Definition util.h:18
QList< int > tabColumnOffsets(const QString &str, int tabSize)
This method returns all tab-column offsets of the given string.
Definition util.cpp:46
bool intersection(T begin1, T end1, T begin2, T end2, bool exclusive=false, T *resultBegin=0, T *resultEnd=0)
This method calculates 2 intersections between 2 ranges.
Definition util.h:32
QString convertTabsToSpaces(const QString &str, int tabSize)
Converst all tabs to sapces of the given string, using the current tab/indent settings It converts "\...
Definition util.cpp:19
#define EDBEE_EXPORT
Definition exports.h:15
QT Acessibility has an issue with reporting blank lines between elements lines. defining 'WINDOWS_EMP...
Definition commentcommand.cpp:20