AnsiEscapeHandler: Avoid some iterations over the string
AnsiEscapeHandler: Avoid some iterations over the string

Find the first escape sequence by iterating over the string once
and reuse that value during the complete initialization.

Change-Id: I6a4dd3bb4da97923410a99dbb03210ffdc6ae27f
Reviewed-by: Daniel Teske <d8a411aec9a206efedb4d45b75fe8d13f1e2b628@digia.com>

danimo/qt-creator,martyone/sailfish-qtcreator,colede/qtcreator,xianian/qt-creator,AltarBeastiful/qt-creator,AltarBeastiful/qt-creator,farseerri/git_code,omniacreator/qtcreator,Distrotech/qtcreator,colede/qtcreator,omniacreator/qtcreator,xianian/qt-creator,maui-packages/qt-creator,maui-packages/qt-creator,darksylinc/qt-creator,farseerri/git_code,darksylinc/qt-creator,Distrotech/qtcreator,martyone/sailfish-qtcreator,xianian/qt-creator,danimo/qt-creator,martyone/sailfish-qtcreator,maui-packages/qt-creator,amyvmiwei/qt-creator,amyvmiwei/qt-creator,xianian/qt-creator,AltarBeastiful/qt-creator,colede/qtcreator,danimo/qt-creator,farseerri/git_code,omniacreator/qtcreator,darksylinc/qt-creator,danimo/qt-creator,danimo/qt-creator,colede/qtcreator,omniacreator/qtcreator,kuba1/qtcreator,omniacreator/qtcreator,amyvmiwei/qt-creator,Distrotech/qtcreator,kuba1/qtcreator,farseerri/git_code,Distrotech/qtcreator,martyone/sailfish-qtcreator,AltarBeastiful/qt-creator,colede/qtcreator,kuba1/qtcreator,AltarBeastiful/qt-creator,maui-packages/qt-creator,danimo/qt-creator,farseerri/git_code,amyvmiwei/qt-creator,martyone/sailfish-qtcreator,danimo/qt-creator,maui-packages/qt-creator,danimo/qt-creator,colede/qtcreator,farseerri/git_code,xianian/qt-creator,omniacreator/qtcreator,amyvmiwei/qt-creator,xianian/qt-creator,darksylinc/qt-creator,darksylinc/qt-creator,farseerri/git_code,martyone/sailfish-qtcreator,xianian/qt-creator,martyone/sailfish-qtcreator,darksylinc/qt-creator,Distrotech/qtcreator,colede/qtcreator,maui-packages/qt-creator,amyvmiwei/qt-creator,kuba1/qtcreator,martyone/sailfish-qtcreator,Distrotech/qtcreator,martyone/sailfish-qtcreator,xianian/qt-creator,kuba1/qtcreator,kuba1/qtcreator,darksylinc/qt-creator,amyvmiwei/qt-creator,darksylinc/qt-creator,kuba1/qtcreator,maui-packages/qt-creator,kuba1/qtcreator,farseerri/git_code,AltarBeastiful/qt-creator,kuba1/qtcreator,omniacreator/qtcreator,amyvmiwei/qt-creator,danimo/qt-creator,AltarBeastiful/qt-creator,xianian/qt-creator,AltarBeastiful/qt-creator,Distrotech/qtcreator