forked from qt-creator/qt-creator
		
	C++: Fix hexadecimals in quick fix
Task-number: QTCREATORBUG-6240 Change-Id: Id3dc48d47f88017b3bc9e026c8e5552d2e9f4d48 Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com>
This commit is contained in:
		
				
					committed by
					
						
						Leandro T. C. Melo
					
				
			
			
				
	
			
			
			
						parent
						
							c436e63ba7
						
					
				
				
					commit
					87943ca61c
				
			@@ -35,6 +35,8 @@
 | 
			
		||||
#include <QtGui/QTextDocument>
 | 
			
		||||
#include <QtGui/QTextCursor>
 | 
			
		||||
 | 
			
		||||
#include <cctype>
 | 
			
		||||
 | 
			
		||||
namespace CppTools {
 | 
			
		||||
 | 
			
		||||
void moveCursorToEndOfIdentifier(QTextCursor *tc) {
 | 
			
		||||
@@ -49,4 +51,11 @@ void moveCursorToEndOfIdentifier(QTextCursor *tc) {
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool isHexadecimal(char c)
 | 
			
		||||
{
 | 
			
		||||
    return std::isdigit(c)
 | 
			
		||||
            || (c >= 'a' && c <= 'f')
 | 
			
		||||
            || (c >= 'A' && c <= 'F');
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
} // CppTools
 | 
			
		||||
 
 | 
			
		||||
@@ -8,6 +8,7 @@ QT_FORWARD_DECLARE_CLASS(QTextCursor)
 | 
			
		||||
namespace CppTools {
 | 
			
		||||
 | 
			
		||||
void CPPTOOLS_EXPORT moveCursorToEndOfIdentifier(QTextCursor *tc);
 | 
			
		||||
bool CPPTOOLS_EXPORT isHexadecimal(char c);
 | 
			
		||||
 | 
			
		||||
} // CppTools
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user