Mercurial > hg > easyhg
comparison src/common.cpp @ 663:f9b805d8cab4 qt5
build with qt5 (in branch currently)
author | Chris Cannam |
---|---|
date | Thu, 14 Mar 2013 16:43:30 +0000 |
parents | ae67ea0af696 |
children | c0b46d0514a7 |
comparison
equal
deleted
inserted
replaced
662:43c61fd6fea4 | 663:f9b805d8cab4 |
---|---|
297 } | 297 } |
298 // unescaped backslash followed by u and at least four more | 298 // unescaped backslash followed by u and at least four more |
299 // chars: replace with Unicode character | 299 // chars: replace with Unicode character |
300 if (i+5 < s.length() && s[i] == '\\' && s[i+1] == 'u') { | 300 if (i+5 < s.length() && s[i] == '\\' && s[i+1] == 'u') { |
301 QString uni = s.mid(i+2, 4); | 301 QString uni = s.mid(i+2, 4); |
302 QByteArray ba = QByteArray::fromHex(uni.toAscii()); | 302 QByteArray ba = QByteArray::fromHex(uni.toLatin1()); |
303 d += QChar(ba[1], ba[0]); | 303 d += QChar(ba[1], ba[0]); |
304 i += 5; | 304 i += 5; |
305 continue; | 305 continue; |
306 } | 306 } |
307 // default case: leave alone | 307 // default case: leave alone |