]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
lib/unicode: the bug fixing continues
authorVMware, Inc <>
Mon, 20 Dec 2010 21:46:10 +0000 (13:46 -0800)
committerMarcelo Vanzin <mvanzin@vmware.com>
Mon, 20 Dec 2010 21:46:10 +0000 (13:46 -0800)
Unicode_CompareRange does not need to pin it's indices; that's
done within Unicode_Substr.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/lib/unicode/unicodeSimpleOperations.c

index 4bcbb00502d6f73e3ef6a638e13b82157fe46b48..4350cae27188f2493fb1edbb3525f95cc11431a6 100644 (file)
  */
 
 int
-Unicode_CompareRange(ConstUnicode str1,       // IN
-                     UnicodeIndex str1Start,  // IN
-                     UnicodeIndex str1Length, // IN
-                     ConstUnicode str2,       // IN
-                     UnicodeIndex str2Start,  // IN
-                     UnicodeIndex str2Length, // IN
-                     Bool ignoreCase)         // IN
+Unicode_CompareRange(ConstUnicode str1,        // IN:
+                     UnicodeIndex str1Start,   // IN:
+                     UnicodeIndex str1Length,  // IN:
+                     ConstUnicode str2,        // IN:
+                     UnicodeIndex str2Start,   // IN:
+                     UnicodeIndex str2Length,  // IN:
+                     Bool ignoreCase)          // IN:
 {
    int result = -1;
    Unicode substr1 = NULL;
@@ -90,9 +90,6 @@ Unicode_CompareRange(ConstUnicode str1,       // IN
    uint32 codePoint1;
    uint32 codePoint2;
 
-   UnicodePinIndices(str1, &str1Start, &str1Length);
-   UnicodePinIndices(str2, &str2Start, &str2Length);
-
    /*
     * TODO: Allocating substrings is a performance hit.  We should do this
     * search in-place.  (However, searching UTF-8 requires tender loving