Changeset 18148 in vbox for trunk/include/VBox/com/string.h
- Timestamp:
- Mar 23, 2009 4:10:48 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 44847
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/com/string.h
r17973 r18148 476 476 return false; 477 477 478 if (length() < that.length()) 478 size_t l1 = length(); 479 size_t l2 = that.length(); 480 if (l1 < l2) 479 481 return false; 480 482 481 size_t l = l ength() - that.length();483 size_t l = l1 - l2; 482 484 if (cs == CaseSensitive) 483 485 return ::RTStrCmp(&str[l], that.str) == 0; … … 491 493 return false; 492 494 493 if (length() < that.length()) 495 size_t l1 = length(); 496 size_t l2 = that.length(); 497 if (l1 < l2) 494 498 return false; 495 499 496 500 if (cs == CaseSensitive) 497 return ::RTStrNCmp(str, that.str, that.length()) == 0;501 return ::RTStrNCmp(str, that.str, l2) == 0; 498 502 else 499 return ::RTStrNICmp(str, that.str, that.length()) == 0;503 return ::RTStrNICmp(str, that.str, l2) == 0; 500 504 } 501 505
Note:
See TracChangeset
for help on using the changeset viewer.