src/hbcore/utils/hbtextutils_p.cpp
changeset 34 ed14f46c0e55
parent 0 16d8024aca5e
--- a/src/hbcore/utils/hbtextutils_p.cpp	Mon Oct 04 17:49:30 2010 +0300
+++ b/src/hbcore/utils/hbtextutils_p.cpp	Mon Oct 18 18:23:13 2010 +0300
@@ -45,7 +45,7 @@
 \param length Length of the text.
 \param found If non-null, returns true if the directionality could be
 determined from \a text. 
-\return	\c true if the directionality is right to left. If the directionality
+\return \c true if the directionality is right to left. If the directionality
 cannot be determined solely from this text, \c false is returned. This is the 
 implicit directionality of text that is composed entirely of neutrals.
 */
@@ -55,34 +55,34 @@
     if (found) {
         *found = true;
     }
-	
-	qint32 lastUtf16 = 0;
-	const ushort* end = text + length;
+    
+    qint32 lastUtf16 = 0;
+    const ushort* end = text + length;
 
-	while (text != end && *text)
-		{
-		qint32 code = *text++;
-		if ((code & 0xFFFFFC00) == 0xD800 && 
+    while (text != end && *text)
+        {
+        qint32 code = *text++;
+        if ((code & 0xFFFFFC00) == 0xD800 && 
             (lastUtf16 & 0xFFFFFC00) == 0xDC00)
-			{
-			code = (code << 10) + (lastUtf16 & 0x3FF)
-				+ (0x10000 - 0xD800*0x400);
-			}
-		lastUtf16 = code;
-		QChar c(code);
-		switch(c.direction())
-			{
-		case QChar::DirL:
-			return false;
-		case QChar::DirR:
-		case QChar::DirAL:
-			return true;
-		default:
-			break;
-			}
-		}
-	if (found) {
-		*found = false;
+            {
+            code = (code << 10) + (lastUtf16 & 0x3FF)
+                + (0x10000 - 0xD800*0x400);
+            }
+        lastUtf16 = code;
+        QChar c(code);
+        switch(c.direction())
+            {
+        case QChar::DirL:
+            return false;
+        case QChar::DirR:
+        case QChar::DirAL:
+            return true;
+        default:
+            break;
+            }
+        }
+    if (found) {
+        *found = false;
     }
-	return false;
+    return false;
 }