Searched refs:compare (Results 101 - 125 of 754) sorted by relevance

1234567891011>>

/macosx-10.10.1/llvmCore-3425.0.34/unittests/ADT/
H A DSmallStringTest.cpp163 EXPECT_EQ(-1, SmallString<10>("aab").compare("aad"));
164 EXPECT_EQ( 0, SmallString<10>("aab").compare("aab"));
165 EXPECT_EQ( 1, SmallString<10>("aab").compare("aaa"));
166 EXPECT_EQ(-1, SmallString<10>("aab").compare("aabb"));
167 EXPECT_EQ( 1, SmallString<10>("aab").compare("aa"));
168 EXPECT_EQ( 1, SmallString<10>("\xFF").compare("\1"));
/macosx-10.10.1/BerkeleyDB-21/db/mod_db4/
H A Dskiplist.c47 sl->compare = (SkiplistComparator)NULL;
60 return (void *)(((Skiplist *)a)->compare)>(void *)(((Skiplist *)b)->compare);
64 return a>(void *)(((Skiplist *)b)->compare);
77 if(sl->compare && sl->comparek) {
80 sl->compare = comp;
126 if(!sl->compare) return 0;
128 ret = skiplist_find_compare(sl, data, iter, sl->compare);
130 ret = skiplist_find_compare(sl, data, &aiter, sl->compare);
139 if(comp==sli->compare || !sl
[all...]
/macosx-10.10.1/tcl-105/tcl_ext/tklib/tklib/modules/tablelist/scripts/
H A DtablelistSort.tcl31 if {[string compare [winfo class $win] "Tablelist"] != 0} {
49 [string compare [lindex [::$win sortorderlist] $idx] "increasing"]
81 if {[string compare [winfo class $win] "Tablelist"] != 0} {
101 if {[string compare [lindex $sortOrderList $idx] "increasing"] == 0} {
141 set sortAllItems [expr {[string compare $parentKey "root"] == 0}]
185 if {[string compare $data(-sortcommand) ""] == 0} {
255 if {[string compare $data($col-sortmode) "command"] == 0} {
263 } elseif {[string compare $data($col-sortmode) "asciinocase"]
589 if {[string compare $key2 ""] != 0} {
609 } elseif {[string compare [focu
[all...]
H A DtablelistUtil.tcl95 if {($hasName && [string compare $idx $data($key-name)] == 0) ||
96 (!$hasName && [string compare $idx ""] == 0)} {
163 if {($hasName && [string compare $idx $data($col-name)] == 0) ||
164 (!$hasName && [string compare $idx ""] == 0)} {
208 } elseif {[string compare [string index $idx 0] "@"] == 0 &&
347 while {[string compare $key "root"] != 0} {
365 while {[string compare $parentKey "root"] != 0} {
382 if {[string compare $key "root"] == 0} {
432 if {[string compare $key "root"] == 0} {
514 if {[string compare
[all...]
H A DtablelistEdit.tcl353 if {[string compare $arg "-seconds"] == 0} {
364 if {[string compare $arg0 "-seconds"] != 0} {
576 if {[string compare $lfields(0) $lfields(1)] == 0 ||
577 [string compare $lfields(0) $lfields(2)] == 0 ||
578 [string compare $lfields(1) $lfields(2)] == 0} {
595 if {[string compare $arg "-gmt"] == 0} {
606 if {[string compare $arg0 "-gmt"] != 0} {
671 if {[string compare $arg "-gmt"] == 0} {
682 if {[string compare $arg0 "-gmt"] != 0} {
744 if {[string compare
[all...]
/macosx-10.10.1/tcl-105/tcl_ext/tkcon/tkcon/extra/
H A Dstripped.tcl205 ## tkConStateCompare - compare two states and output difference
577 if [$w compare sel.first >= limit] {$w delete sel.first sel.last}
590 if [$w compare insert < limit] {$w mark set insert end}
619 if [%W compare {insert linestart} != {limit linestart}] {
635 if [%W compare {insert linestart} != {end-1c linestart}] {
650 if [%W compare insert > limit] {tkConExpand %W proc}
653 if [%W compare insert > limit] {tkConExpand %W var}
656 if [%W compare insert >= limit] {
666 && [%W compare sel.first >= limit]} {
668 } elseif [%W compare inser
[all...]
/macosx-10.10.1/tcl-105/tk/tk/library/
H A Dconsole.tcl346 if {[$w compare sel.first >= output]} {
438 if {[%W compare insert > promptEnd]} {
443 if {[%W compare insert > promptEnd]} {
448 if {[%W compare insert > promptEnd]} {
453 if {[%W compare insert > promptEnd]} {
465 && [%W compare sel.first >= promptEnd]} {
467 } elseif {[%W compare insert >= promptEnd]} {
474 && [%W compare sel.first >= promptEnd]} {
476 } elseif {[%W compare insert != 1.0] && \
477 [%W compare inser
[all...]
/macosx-10.10.1/ICU-531.30/icuSources/test/intltest/
H A Dapicoll.cpp27 // 02/10/98 damiba Added test for compare(UnicodeString&, UnicodeString&, int32_t)
60 // ctor, dtor, createInstance, compare, getStrength/setStrength
106 doAssert((col->compare("ab", "abc") == Collator::LESS), "ab < abc comparison failed");
107 doAssert((col->compare("ab", "AB") == Collator::LESS), "ab < AB comparison failed");
108 doAssert((col->compare("blackbird", "black-bird") == Collator::GREATER), "black-bird > blackbird comparison failed");
109 doAssert((col->compare("black bird", "black-bird") == Collator::LESS), "black bird > black-bird comparison failed");
110 doAssert((col->compare("Hello", "hello") == Collator::GREATER), "Hello > hello comparison failed");
111 doAssert((col->compare("","",success) == UCOL_EQUAL), "Comparison between empty strings failed");
121 doAssert((col->compare(abauIter, abssIter, success) == UCOL_LESS), "ab a-umlaut < ab sharp-s UCharIterator comparison failed");
126 doAssert((col->compare("a
2048 UCollationResult TestCollator::compare(const UnicodeString& source, function in class:TestCollator
2059 UCollationResult TestCollator::compare(const UnicodeString& source, function in class:TestCollator
2071 UCollationResult TestCollator::compare(const UChar* source, function in class:TestCollator
[all...]
/macosx-10.10.1/tcl-105/tk84/tk/library/
H A Dconsole.tcl365 if {[%W compare insert > promptEnd]} {::tk::console::Expand %W}
368 if {[%W compare insert > promptEnd]} {::tk::console::Expand %W path}
371 if {[%W compare insert > promptEnd]} {::tk::console::Expand %W proc}
374 if {[%W compare insert > promptEnd]} {::tk::console::Expand %W var}
383 if {[%W tag nextrange sel 1.0 end] ne "" && [%W compare sel.first >= promptEnd]} {
385 } elseif {[%W compare insert >= promptEnd]} {
391 if {[%W tag nextrange sel 1.0 end] ne "" && [%W compare sel.first >= promptEnd]} {
393 } elseif {[%W compare insert != 1.0] && \
394 [%W compare insert > promptEnd]} {
402 if {[%W compare inser
[all...]
/macosx-10.10.1/ICU-531.30/icuSources/i18n/
H A Ddecimalformatpattern.cpp223 if (pattern.compare(pos, digitLen, fDigit) == 0) {
257 } else if (pattern.compare(pos, groupSepLen, fGroupingSeparator) == 0) {
268 } else if (pattern.compare(pos, decimalSepLen, fDecimalSeparator) == 0) {
282 if (pattern.compare(pos, fExponent.length(), fExponent) == 0) {
300 && pattern.compare(pos, fPlus.length(), fPlus) == 0) {
343 if (!pattern.compare(pos, digitLen, fDigit) ||
344 !pattern.compare(pos, groupSepLen, fGroupingSeparator) ||
345 !pattern.compare(pos, decimalSepLen, fDecimalSeparator) ||
390 } else if (pattern.compare(pos, fSeparator.length(), fSeparator) == 0) {
404 } else if (pattern.compare(po
[all...]
/macosx-10.10.1/cups-408/cups/cups/
H A Darray.c57 cups_array_func_t compare; /* Element comparison function */ member in struct:_cups_array_s
58 void *data; /* User data passed to compare */
380 da->compare = a->compare;
502 if (!a->unique && a->compare)
508 while (current > 0 && !(*(a->compare))(e, a->elements[current - 1],
755 a->compare = f;
1077 * compare function or elements, just add it to the beginning or end...
1080 if (!a->num_elements || !a->compare)
1122 while (current > 0 && !(*(a->compare))(
[all...]
/macosx-10.10.1/BerkeleyDB-21/db/test/
H A Drecd006.tcl45 if { [string compare $omethod "-recno"] == 0 } {
175 if { [string compare $Dret $kvals($p10)] == 0 ||
176 [string compare $Dret [string toupper $kvals($p10)]] == 0 } {
215 if { [string compare $child1 "commit"] == 0 } {
231 if { [string compare $child2 "commit"] == 0 } {
245 if { [string compare $child1 "commit"] == 0 } {
252 if { [string compare $child2 "commit"] == 0 } {
H A Dtest029.tcl18 if { [string compare $omethod "-hash"] == 0 } {
80 if { [string compare $omethod "-btree"] == 0 } {
145 if { [string compare $omethod "-btree"] == 0 } {
186 if { [string compare $omethod "-btree"] == 0 } {
225 if { [string compare $omethod "-btree"] == 0 } {
/macosx-10.10.1/ICU-531.30/icuSources/i18n/unicode/
H A Dcoll.h37 * 02/10/98 damiba Added compare() with length as parameter.
101 * The following example shows how to compare two strings using the
109 * if (myCollator->compare("abc", "ABC") < 0)
133 * if (usCollator->compare("abc", "ABC") == 0)
139 * For comparing strings exactly once, the <code>compare</code> method
141 * is generally necessary to compare each string multiple times. In this case,
212 * string in the compare() method.
214 * string in the compare() method.
216 * target string in the compare() method.
217 * @see Collator#compare
[all...]
/macosx-10.10.1/WTF-7600.1.24/wtf/
H A DMediaTime.cpp258 return compare(rhs) == LessThan;
263 return compare(rhs) == GreaterThan;
268 return compare(rhs) != EqualTo;
273 return compare(rhs) == EqualTo;
278 return compare(rhs) >= EqualTo;
283 return compare(rhs) <= EqualTo;
286 MediaTime::ComparisonFlags MediaTime::compare(const MediaTime& rhs) const function in class:WTF::MediaTime
/macosx-10.10.1/pyobjc-45/pyobjc/pyobjc-framework-Cocoa-2.5.1/PyObjCTest/
H A Dtest_cfarray.py69 def compare(l, r, context): function in function:TestCFArray.testBSearchValues
72 r = CFArrayBSearchValues(array, (0, 20), 10, compare, None)
75 r = CFArrayBSearchValues(array, (0, 20), 9.5, compare, None)
78 r = CFArrayBSearchValues(array, (0, 20), 99, compare, None)
81 r = CFArrayBSearchValues(array, (0, 20), -1, compare, None)
90 def compare(l, r, context): function in function:TestCFArray.testSortValues
92 CFArraySortValues(array, (0, 6), compare, None)
/macosx-10.10.1/ICU-531.30/icuSources/common/
H A Duvector.h61 * UVector needs a way to compare objects for equality. To do so, it
219 * as defined by 'compare'. The current elements are assumed to
222 void sortedInsert(void* obj, UElementComparator *compare, UErrorCode& ec);
226 * as defined by 'compare'. The current elements are assumed to
229 void sortedInsert(int32_t obj, UElementComparator *compare, UErrorCode& ec);
243 void sort(UElementComparator *compare, UErrorCode &ec);
251 void sortWithUComparator(UComparator *compare, const void *context, UErrorCode &ec);
268 void sortedInsert(UElement e, UElementComparator *compare, UErrorCode& ec);
/macosx-10.10.1/ksh-23/ksh/src/lib/libcmd/
H A Duniq.c62 "[w:check-chars]#[chars?\achars\a is the number of characters to compare "
85 static int uniq(Sfio_t *fdin, Sfio_t *fdout, int fields, int chars, int width, int mode, int* all, Compare_f compare) argument
149 if(reclen==oreclen && (!reclen || !(*compare)(cp,orecp,reclen)))
254 Compare_f compare = (Compare_f)memcmp; local
284 compare = (Compare_f)strncasecmp;
335 error_info.errors = uniq(fpin,fpout,fields,chars,width,mode,all,compare);
/macosx-10.10.1/tcl-105/tcl_ext/tklib/tklib/examples/tablelist/
H A Dconfig_tile.tcl170 if {[string compare $default $current] != 0} {
196 set changed1 [expr {[string compare $default1 $current1] != 0}]
197 set changed2 [expr {[string compare $default2 $current2] != 0}]
199 return [string compare $opt1 $opt2]
237 if {[string compare $default $text] == 0} {
H A DbrowseTree.tcl151 if {[string compare $nodeIdx "root"] == 0} {
157 if {[string compare $choice "ok"] == 0} {
173 if {[string compare $nodeIdx "root"] == 0} {
216 if {[string compare $nodeIdx "root"] == 0} {
223 if {[string compare $p ""] == 0} {
282 if {[string compare [$tbl attrib afterId] ""] == 0} {
H A DbrowseTree_tile.tcl157 if {[string compare $nodeIdx "root"] == 0} {
163 if {[string compare $choice "ok"] == 0} {
179 if {[string compare $nodeIdx "root"] == 0} {
222 if {[string compare $nodeIdx "root"] == 0} {
229 if {[string compare $p ""] == 0} {
288 if {[string compare [$tbl attrib afterId] ""] == 0} {
/macosx-10.10.1/text_cmds-88/look/
H A Dlook.c86 int compare(wchar_t *, unsigned char *, unsigned char *);
260 if (compare(string, p, back) == GREATER)
285 switch (compare(string, front, back)) {
304 for (; front < back && compare(string, front, back) == EQUAL; ++front) {
327 compare(wchar_t *s1, unsigned char *s2, unsigned char *back) function
/macosx-10.10.1/libstdcxx-104.1/include/c++/4.2.1/bits/
H A Dbasic_string.h1927 * @param str String to compare against.
1933 * compare as the smallest of size() and str.size(). The function
1934 * then compares the two strings by calling traits::compare(data(),
1939 compare(const basic_string& __str) const function in class:basic_string
1945 int __r = traits_type::compare(_M_data(), __str.data(), __len);
1955 * @param str String to compare against.
1962 * rlen of the strings to compare as the smallest of the length of the
1964 * strings by calling traits::compare(substring.data(),str.data(),rlen).
1969 compare(size_type __pos, size_type __n, const basic_string& __str) const;
1975 * @param str String to compare agains
[all...]
/macosx-10.10.1/libstdcxx-104.1/include/c++/4.2.1/ext/
H A Dvstring.h1655 * @param str String to compare against.
1661 * compare as the smallest of size() and str.size(). The function
1662 * then compares the two strings by calling traits::compare(data(),
1667 compare(const __versa_string& __str) const function in class:__versa_string
1676 int __r = traits_type::compare(this->_M_data(), __str.data(), __len);
1686 * @param str String to compare against.
1693 * rlen of the strings to compare as the smallest of the length of the
1695 * strings by calling traits::compare(substring.data(),str.data(),rlen).
1700 compare(size_type __pos, size_type __n,
1707 * @param str String to compare agains
[all...]
/macosx-10.10.1/Heimdal-398.1.2/lib/krb5/
H A Dkrb5_ccapi.h156 cc_int32 (*compare)(cc_credentials_t, cc_credentials_t, cc_uint32*); member in struct:cc_credentials_functions
199 cc_int32 (*compare)(cc_ccache_t, cc_ccache_t, cc_uint32*); member in struct:cc_ccache_functions
224 cc_int32 (*compare)(cc_context_t, cc_context_t, cc_uint32*); member in struct:cc_context_functions

Completed in 328 milliseconds

1234567891011>>