Searched refs:compare (Results 1 - 25 of 58) sorted by relevance

123

/haiku/src/kits/package/
H A DPackageResolvableExpression.cpp161 int compare = version.Compare(fVersion); local
165 matches = compare < 0;
168 matches = compare <= 0;
171 matches = compare == 0;
174 matches = compare != 0;
177 matches = compare >= 0;
180 matches = compare > 0;
191 return compare == 0;
195 return compare <= 0 || compatibleVersion.Compare(fVersion) <= 0;
/haiku/src/bin/unzip/
H A Dapihelp.c103 while (doc->compare && STRNICMP(doc->compare,slide,strlen(fname)))
105 if (!doc->compare)
/haiku/headers/posix/
H A Dsearch.h44 int (*compare)(const void *, const void *));
46 int (*compare)(const void *, const void *));
48 int (*compare)(const void *, const void *));
/haiku/src/tools/cppunit/cppunit/
H A DTypeInfoHelper.cpp22 name.compare( classPrefix, 0, classPrefix.length() );
24 name.compare( 0, classPrefix.length(), classPrefix );
/haiku/src/tests/kits/interface/
H A DGraphicsDefsTest.cpp35 template<class T> void compare(T &a, T &b);
40 compare<const pattern>(const pattern &a, const pattern &b) function
49 compare<const rgb_color>(const rgb_color &a, const rgb_color &b) function
60 compare(T &a, T &b) function
91 #define TEST(type, constant) compare(_##constant, constant)
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dcache.h104 cache_compare compare);
107 cache_compare compare);
110 cache_compare compare, int flags);
H A Dcache.c47 * A compare function must be provided for finding a wanted entry
148 const struct CACHED_GENERIC *wanted, cache_compare compare)
164 while (link && compare(link->entry, wanted))
176 && compare(current, wanted)) {
214 cache_compare compare)
230 while (link && compare(link->entry, item))
245 && compare(current, item)) {
367 * compare function may be provided to select entries to invalidate
375 const struct CACHED_GENERIC *item, cache_compare compare,
395 if (compare(lin
147 ntfs_fetch_cache(struct CACHE_HEADER *cache, const struct CACHED_GENERIC *wanted, cache_compare compare) argument
212 ntfs_enter_cache(struct CACHE_HEADER *cache, const struct CACHED_GENERIC *item, cache_compare compare) argument
374 ntfs_invalidate_cache(struct CACHE_HEADER *cache, const struct CACHED_GENERIC *item, cache_compare compare, int flags) argument
[all...]
/haiku/src/tests/kits/support/
H A Dstring_utf8_tests.cpp76 const char *compare = "����+��" B_UTF8_ELLIPSIS "different"; local
77 if (string.CompareChars(compare, 5) != 0) {
83 if (string.CompareChars(compare, 6) == 0) {
/haiku/src/servers/app/drawing/Painter/drawing_modes/
H A DDrawingModeSelect.h29 // compare
31 compare(uint8* p, const rgb_color& high, const rgb_color& low, rgb_color* result) function
63 if (compare(p, high, low, &color)) {
86 && compare(p, high, low, &color))
94 && compare(p, high, low, &color)) {
115 if (*covers && compare(p, high, low, &color)) {
143 if (*covers && compare(p, high, low, &color)) {
172 if (*covers && colors->a > 0 && compare(p, high, low, &color)) {
187 if (colors->a > 0 && compare(p, high, low, &color)) {
196 if (colors->a > 0 && compare(
[all...]
H A DDrawingModeSelectSUBPIX.h37 if (compare(p, high, low, &color)){
/haiku/src/tests/kits/locale/
H A DcollatorTest.cpp75 int compare = gCollator->Compare(strings[i], strings[i - 1]); local
76 if (compare > 0)
78 else if (compare < 0) {
91 if (keyCompare > 0 || (keyCompare == 0 && compare != 0))
/haiku/headers/cpp/std/
H A Dbastring.h415 int compare (const charT* s, size_type pos, size_type n) const;
416 int compare (const basic_string& str, size_type pos = 0, size_type n = npos) const;
420 int compare (size_type pos, size_type n, const basic_string& str) const function in class:basic_string
421 { return compare(str, pos, n); }
422 int compare (size_type pos, size_type n, const charT* s) const function in class:basic_string
423 { return compare(s, pos, n); }
424 int compare (size_type pos, size_type n, const charT* s, size_type n2) const function in class:basic_string
425 { if (n > n2) n = n2; return compare(s, pos, n); }
426 int compare (const charT* s, size_type pos = 0) const function in class:basic_string
427 { return compare (
[all...]
H A Dstraits.h59 static int compare (const char_type* s1, const char_type* s2, size_t n) function in struct:string_char_traits
122 static int compare (const char_type* s1, const char_type* s2, size_t n) function in struct:string_char_traits
150 static int compare (const char_type* s1, const char_type* s2, size_t n)
H A Dbastring.cc250 && traits::compare (data () + xpos, s, n) == 0)
288 && traits::compare (data () + xpos, s, n) == 0)
397 compare (const basic_string& _str, size_type pos, size_type n) const function in class:basic_string
406 int r = traits::compare (data () + pos, _str.data (), rlen);
416 compare (const charT* s, size_type pos, size_type n) const function in class:basic_string
423 int r = traits::compare (data () + pos, s, rlen);
/haiku/src/system/boot/platform/efi/
H A Dvideo.cpp55 int compare = a->width - b->width; local
56 if (compare != 0)
57 return compare;
59 compare = a->height - b->height;
60 if (compare != 0)
61 return compare;
73 int compare = compare_video_modes(videoMode, mode); local
74 if (compare == 0) {
79 if (compare > 0)
/haiku/src/preferences/filetypes/
H A DExtensionWindow.cpp40 int compare = strcasecmp(a, b); local
41 if (compare != 0)
42 return compare;
H A DMimeTypeListView.cpp224 int compare = strcasecmp(typeA->Supertype(), typeB->Supertype()); local
225 if (compare != 0)
226 return compare;
250 int compare = strcasecmp(typeA->Description(), typeB->Description()); local
251 if (compare != 0)
252 return compare;
/haiku/headers/os/support/
H A DObjectList.h192 int (*compare)(const Key*, const T*)) const;
196 int (*compare)(const Key*, const T*, void*),
200 CompareFunction compare) const;
202 CompareFunctionWithState compare,
207 int (*compare)(const Key*, const T*)) const;
732 int (*compare)(const Key*, const T*)) const
735 (GenericCompareFunction)compare);
743 int (*compare)(const Key*, const T*, void*), void* state) const
746 (GenericCompareFunctionWithState)compare, state);
752 BObjectList<T>::BinarySearchIndex(const T& item, CompareFunction compare) cons
761 BinarySearchIndex(const T& item, CompareFunctionWithState compare, void* state) const argument
[all...]
/haiku/src/system/boot/platform/atari_m68k/
H A Dvideo.cpp103 int compare = a->width - b->width; local
104 if (compare != 0)
105 return compare;
107 compare = a->height - b->height;
108 if (compare != 0)
109 return compare;
111 compare = a->bits_per_pixel - b->bits_per_pixel;
112 if (compare != 0)
113 return compare;
115 compare
132 int compare = compare_video_modes(videoMode, mode); local
[all...]
/haiku/src/system/kernel/fs/
H A Dvfs_boot.cpp80 int compare = strcasecmp(a->ContentName(), b->ContentName()); local
81 if (!compare)
93 return compare;
112 int compare = (int)aIsCD - (int)bIsCD; local
113 if (compare != 0)
114 return compare;
/haiku/src/add-ons/kernel/debugger/usb_keyboard/
H A Dusb_keyboard.cpp236 uint8 *compare = sLastTransferData; local
243 if (compare[j] == current[i]) {
/haiku/src/system/libroot/add-ons/icu/
H A DICUCollateData.cpp97 result = fCollator->compare(aIter, bIter, icuStatus);
107 result = fCollator->compare(unicodeA, unicodeB, icuStatus);
176 result = fCollator->compare(unicodeA, unicodeB, icuStatus);
/haiku/src/bin/bfs_tools/lib/
H A DBitmap.cpp87 uint32 compare = 1; local
88 for (int16 j = 0;j < 32;j++,compare <<= 1) {
89 if (compare & fBitmap[i])
/haiku/src/apps/mediaplayer/playlist/
H A DPlaylist.cpp71 // compare complete path
633 FilePlaylistItem* compare = dynamic_cast<FilePlaylistItem*>(playlist->ItemAt(i)); local
634 if (compare == NULL)
636 if (compare->Ref() != ref
637 && _GetExceptExtension(BPath(&compare->Ref()).Path()) == exceptExtension )
648 UrlPlaylistItem* compare local
650 if (compare == NULL)
652 if (compare->Url() == url)
/haiku/src/add-ons/kernel/file_systems/bfs/
H A DQuery.cpp338 // We have to be able to compare them against unshifted values
594 // only compare against the index entry when this is the correct
854 int32 compare;
862 compare = matchString(fValue.String, (char*)value) == MATCH_OK ? 0 : 1;
867 compare = compareKeys(fType, &timeValue, sizeof(int64), &fValue.Int64,
870 compare = compareKeys(fType, value, size, _Value(), fSize);
874 return compare == 0;
876 return compare != 0;
878 return compare < 0;
880 return compare <
[all...]

Completed in 168 milliseconds

123