/dports/x11-wm/afterstep-stable/afterstep-devel-2.2.12/src/WinCommand/ |
H A D | WinCommand.c | 100 action_t *get_action_by_name(const char *needle) in get_action_by_name() argument 103 LOCAL_DEBUG_OUT("needle: %s", needle); in get_action_by_name() 106 if(mystrcasecmp(Actions[i].name, needle) == 0) in get_action_by_name()
|
/dports/x11-wm/compton/compton-b7f43ee/src/ |
H A D | c2.h | 221 strcmp_wd(const char *needle, const char *src) { in strcmp_wd() argument 222 int ret = mstrncmp(needle, src); in strcmp_wd() 226 char c = src[strlen(needle)]; in strcmp_wd()
|
/dports/x11-wm/skippy-xd/skippy-xd-397216c/src/ |
H A D | config.c | 189 ConfigEntry needle; in config_get() local 192 needle.section = (char *)section; in config_get() 193 needle.key = (char *)key; in config_get() 195 iter = dlist_find(dlist_first(config), (dlist_match_func)entry_find_func, &needle); in config_get()
|
/dports/x11-wm/lxsession/lxsession-0.5.4/lxsession-db/ |
H A D | desktop-files-backend.c | 1236 static gboolean string_contains (const gchar* self, const gchar* needle) { in string_contains() argument 1241 g_return_val_if_fail (needle != NULL, FALSE); in string_contains() 1242 _tmp0_ = needle; in string_contains()
|
/dports/x11-wm/lxsession/lxsession-0.5.4/lxsession/ |
H A D | app.c | 1143 static gboolean _vala_string_array_contains (gchar** stack, int stack_length, gchar* needle); 7409 static gboolean _vala_string_array_contains (gchar** stack, int stack_length, gchar* needle) { in _vala_string_array_contains() argument 7412 if (g_strcmp0 (stack[i], needle) == 0) { in _vala_string_array_contains()
|
H A D | settings.c | 183 static gboolean _vala_string_array_contains (gchar** stack, int stack_length, gchar* needle); 877 static gboolean _vala_string_array_contains (gchar** stack, int stack_length, gchar* needle) { in _vala_string_array_contains() argument 880 if (g_strcmp0 (stack[i], needle) == 0) { in _vala_string_array_contains()
|
/dports/x11-toolkits/wlroots/wlroots-0.12.0/xwayland/ |
H A D | xwm.c | 1984 size_t num_atoms, enum atom_name needle) { in xwm_atoms_contains() argument 1985 xcb_atom_t atom = xwm->atoms[needle]; in xwm_atoms_contains()
|
/dports/x11-toolkits/wlroots/wlroots-0.12.0/include/xwayland/ |
H A D | xwm.h | 161 size_t num_atoms, enum atom_name needle);
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/swiftshader/src/OpenGL/libEGL/ |
H A D | libEGL.cpp | 1600 Function needle; in GetProcAddress() local 1601 needle.name = procname; in GetProcAddress() 1605 …const Function *result = std::lower_bound(eglFunctions, eglFunctionsEnd, needle, CompareFunctor()); in GetProcAddress()
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/googletest/src/googletest/src/ |
H A D | gtest.cc | 1744 if (needle == nullptr || haystack == nullptr) return needle == haystack; in IsSubstringPred() 1746 return strstr(haystack, needle) != nullptr; in IsSubstringPred() 1750 if (needle == nullptr || haystack == nullptr) return needle == haystack; in IsSubstringPred() 1752 return wcsstr(haystack, needle) != nullptr; in IsSubstringPred() 1757 bool IsSubstringPred(const StringType& needle, in IsSubstringPred() argument 1759 return haystack.find(needle) != StringType::npos; in IsSubstringPred() 1774 const bool is_wide_string = sizeof(needle[0]) > 1; in IsSubstringImpl() 1792 const char* needle, const char* haystack) { in IsSubstring() argument 1798 const wchar_t* needle, const wchar_t* haystack) { in IsSubstring() argument 1804 const char* needle, const char* haystack) { in IsNotSubstring() argument [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/components/autofill/core/browser/ |
H A D | personal_data_manager.cc | 114 bool FindByContents(const C& container, const T& needle) { in FindByContents() argument 115 return base::ranges::any_of(container, [&needle](const auto& element) { in FindByContents() 116 return element->Compare(needle) == 0; in FindByContents()
|
/dports/www/fnord/fnord-1.11/ |
H A D | httpd.c | 744 static int matchcommalist(const char* needle,const char* haystack) { in matchcommalist() argument 748 int len=str_len(needle); in matchcommalist() 749 if (!byte_equal(needle,len,haystack)) return 0; in matchcommalist() 756 static int findincommalist(const char* needle,const char* haystack) { in findincommalist() argument
|
/dports/www/py-django-crispy-forms/django-crispy-forms-1.13.0/crispy_forms/tests/ |
H A D | test_utils.py | 61 needle = "<span></span>" 63 c.assertTrue(contains_partial(html % needle, needle)) 65 needle = "<span></span><b></b>" 66 c.assertRaises(NotImplementedError, contains_partial, html % needle, needle) 68 needle = "<span>a</span>" 69 c.assertRaises(NotImplementedError, contains_partial, html % needle, needle) 71 needle = '<span id="e"></span>' 73 c.assertTrue(contains_partial(html % needle, needle)) 76 c.assertFalse(contains_partial(html % missing, needle)) 78 needle = '<span id="e"></span>' [all …]
|
H A D | utils.py | 11 def contains_partial(haystack, needle, ignore_needle_children=False): argument 17 if not isinstance(needle, Element): 18 needle = parse_html(needle) 20 if len(needle.children) > 0 and not ignore_needle_children: 21 … NotImplementedError("contains_partial does not check needle's children:%s" % str(needle.children)) 23 if needle.name == haystack.name and set(needle.attributes).issubset(haystack.attributes): 26 contains_partial(child, needle, ignore_needle_children=ignore_needle_children)
|
/dports/www/newsboat/newsboat-2.22.1/cargo-crates/libc-0.2.81/src/unix/bsd/freebsdlike/freebsd/ |
H A D | mod.rs | 1499 needle: *const ::c_void, in memmem()
|
/dports/www/typo3-9/typo3_src-9.5.31/typo3/sysext/core/Classes/ExpressionLanguage/FunctionsProvider/ |
H A D | DefaultFunctionsProvider.php | 84 }, function ($arguments, $haystack, $needle) { 85 $result = StringUtility::searchStringWildcard((string)$haystack, (string)$needle);
|
/dports/www/typo3-9/typo3_src-9.5.31/typo3/sysext/core/Classes/Configuration/TypoScript/ConditionMatching/ |
H A D | AbstractConditionMatcher.php | 672 * @param string $needle The string to find in $haystack 676 protected function searchStringWildcard($haystack, $needle) argument 678 return StringUtility::searchStringWildcard($haystack, $needle);
|
/dports/www/typo3-9/typo3_src-9.5.31/typo3/sysext/core/Classes/DataHandling/ |
H A D | DataHandler.php | 9499 * @param string $needle The command to be matched 9502 protected function getCommandMapElements($needle) argument 9508 if ($value && $command == $needle) {
|
/dports/www/typo3-9/typo3_src-9.5.31/typo3/sysext/core/Classes/Utility/ |
H A D | ArrayUtility.php | 99 * @param mixed $needle The value to search for 103 public static function filterByValueRecursive($needle = '', array $haystack = []) argument 109 $callback = function (&$value, $key) use ($needle, &$resultArray) { 110 if ($value === $needle) { 113 $subArrayMatches = static::filterByValueRecursive($needle, $value);
|
H A D | StringUtility.php | 31 public static function beginsWith($haystack, $needle) argument 40 …if (is_array($needle) || is_object($needle) || (string)$needle != $needle || strlen($needle) < 1) { 47 $needle = (string)$needle; 48 return $needle !== '' && strpos($haystack, $needle) === 0; 60 public static function endsWith($haystack, $needle) argument 69 …if (is_array($needle) || is_object($needle) || (string)$needle != $needle || strlen($needle) < 1) { 76 $needleLength = strlen($needle); 136 if ($haystack === $needle) { 138 } elseif ($needle) { 141 $regex = $needle; [all …]
|
/dports/www/typo3-9/typo3_src-9.5.31/typo3/sysext/form/Classes/Domain/Finishers/ |
H A D | AbstractFinisher.php | 270 * @param string|array $needle 274 protected function substituteRuntimeReferences($needle, FormRuntime $formRuntime) argument 277 if (!is_array($needle) && !is_string($needle)) { 278 return $needle; 282 if (is_array($needle)) { 287 $needle 293 if (preg_match('/^{([^}]+)}$/', $needle, $matches)) { 328 $needle
|
/dports/www/typo3-9/typo3_src-9.5.31/typo3/sysext/extensionmanager/Classes/ViewHelpers/ |
H A D | InstallationStateCssClassViewHelper.php | 53 $needle = $arguments['needle']; 55 if (array_key_exists($needle, $haystack)) { 56 … if (isset($haystack[$needle]['installed']) && $haystack[$needle]['installed'] === true) {
|
/dports/www/typo3-9/typo3_src-9.5.31/typo3/sysext/frontend/Classes/Controller/ |
H A D | TypoScriptFrontendController.php | 3164 * @param string $needle The string to find in $haystack 3167 protected function isAllowedLinkVarValue(string $haystack, string $needle): bool argument 3171 if ($needle === 'int' || $needle === 'integer') { 3175 } elseif (preg_match('/^\\/.+\\/[imsxeADSUXu]*$/', $needle)) { 3177 if (@preg_match($needle, $haystack)) { 3180 } elseif (strstr($needle, '-')) { 3183 $range = explode('-', $needle); 3188 } elseif (strstr($needle, '|')) { 3192 if (strstr('|' . $needle . '|', '|' . $haystack . '|')) { 3195 } elseif ((string)$needle === (string)$haystack) {
|
/dports/www/typo3-9/typo3_src-9.5.31/typo3/sysext/frontend/Classes/Page/ |
H A D | PageGenerator.php | 899 * @param string $needle The string to find in $haystack 904 public static function isAllowedLinkVarValue($haystack, $needle) argument 909 if ($needle === 'int' || $needle === 'integer') { 913 } elseif (preg_match('/^\\/.+\\/[imsxeADSUXu]*$/', $needle)) { 915 if (@preg_match($needle, $haystack)) { 918 } elseif (strstr($needle, '-')) { 921 $range = explode('-', $needle); 926 } elseif (strstr($needle, '|')) { 930 if (strstr('|' . $needle . '|', '|' . $haystack . '|')) { 933 } elseif ((string)$needle === (string)$haystack) {
|
/dports/www/typo3-9/typo3_src-9.5.31/typo3/sysext/backend/Classes/Controller/ |
H A D | FormInlineAjaxController.php | 688 * @param mixed $needle The element to be removed. 693 protected function removeFromArray($needle, $haystack, $strict = false) argument 695 $pos = array_search($needle, $haystack, $strict);
|