Home
last modified time | relevance | path

Searched refs:needle (Results 1 – 25 of 16333) sorted by last modified time

12345678910>>...654

/dports/x11-wm/afterstep-stable/afterstep-devel-2.2.12/src/WinCommand/
H A DWinCommand.c100 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 Dc2.h221 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 Dconfig.c189 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 Ddesktop-files-backend.c1236 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 Dapp.c1143 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 Dsettings.c183 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 Dxwm.c1984 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 Dxwm.h161 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 DlibEGL.cpp1600 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 Dgtest.cc1744 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 Dpersonal_data_manager.cc114 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 Dhttpd.c744 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 Dtest_utils.py61 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 Dutils.py11 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 Dmod.rs1499 needle: *const ::c_void, in memmem()
/dports/www/typo3-9/typo3_src-9.5.31/typo3/sysext/core/Classes/ExpressionLanguage/FunctionsProvider/
H A DDefaultFunctionsProvider.php84 }, 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 DAbstractConditionMatcher.php672 * @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 DDataHandler.php9499 * @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 DArrayUtility.php99 * @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 DStringUtility.php31 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 DAbstractFinisher.php270 * @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 DInstallationStateCssClassViewHelper.php53 $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 DTypoScriptFrontendController.php3164 * @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 DPageGenerator.php899 * @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 DFormInlineAjaxController.php688 * @param mixed $needle The element to be removed.
693 protected function removeFromArray($needle, $haystack, $strict = false) argument
695 $pos = array_search($needle, $haystack, $strict);

12345678910>>...654