Utils: Add offset to search results
Offset are better to compute the length of a text range. The only problem
is that we get them for utf8 because that is the text representation of
source file. QTextDocument is Utf16 based, so it can not binary represent
the source file. Actually I do not see a simple performing workaround for
it.
Change-Id: Id615e1ee6a6e85c6ecc4f8044e275142409d9b46
Reviewed-by:
Tim Jenssen <tim.jenssen@qt.io>
Showing
- src/plugins/clangrefactoring/qtcreatorsearchhandle.cpp 1 addition, 1 deletionsrc/plugins/clangrefactoring/qtcreatorsearchhandle.cpp
- src/plugins/clangrefactoring/qtcreatorsearchhandle.h 1 addition, 1 deletionsrc/plugins/clangrefactoring/qtcreatorsearchhandle.h
- src/plugins/clangrefactoring/refactoringclient.cpp 4 additions, 2 deletionssrc/plugins/clangrefactoring/refactoringclient.cpp
- src/plugins/coreplugin/find/searchresultitem.h 13 additions, 1 deletionsrc/plugins/coreplugin/find/searchresultitem.h
- tests/unit/unittest/compare-operators.h 48 additions, 0 deletionstests/unit/unittest/compare-operators.h
- tests/unit/unittest/googletest.h 3 additions, 0 deletionstests/unit/unittest/googletest.h
- tests/unit/unittest/gtest-creator-printing.cpp 56 additions, 0 deletionstests/unit/unittest/gtest-creator-printing.cpp
- tests/unit/unittest/gtest-creator-printing.h 42 additions, 0 deletionstests/unit/unittest/gtest-creator-printing.h
- tests/unit/unittest/refactoringclient-test.cpp 12 additions, 0 deletionstests/unit/unittest/refactoringclient-test.cpp
- tests/unit/unittest/unittest.pro 4 additions, 1 deletiontests/unit/unittest/unittest.pro
tests/unit/unittest/compare-operators.h
0 → 100644
tests/unit/unittest/gtest-creator-printing.h
0 → 100644
Please register or sign in to comment