Searched refs:best_match (Results 1 – 12 of 12) sorted by relevance
182 bm = best_match218 bm = best_match
407 best_match = (0, None)410 best_match = max(best_match, (matcher.ratio(), candidates[i][1]))411 if i + 1 < len(candidates) and best_match[0] >= candidates[i+1][0]:413 return best_match[1]
143 def best_match(self, offers, default_match=None): member in Accept226 def best_match(self, offers, default_match=None): member in NilAccept
122 def best_match(supported, header): function
145 def best_match(supported, header): function
705 if not mimeparse.best_match([media_mime_type], ','.join(accept)):
190 const struct fat_arch *best_match193 if (!best_match) return false;196 selected_object_file_ = best_match;
334 ``request.accept.best_match(..)`` instead (applies to all Accept-*434 * Fix exception when calling ``.accept.best_match(..)`` on a header containing525 Use ``.best_match(..)`` instead.835 * Arguments to :meth:`Accept.best_match` must be specific types,837 offer and use ``best_match`` to select a specific one.839 * With ``req.accept.best_match([types])`` prefer the first type in the844 ``req.accept.best_match([..])`` returns the most specific match.
350 >>> req.accept.best_match(['text/html', 'application/xhtml+xml'])368 >>> req.accept_language.best_match(['en-GB', 'en-US'], default_match='en-US')370 >>> req.accept_language.best_match(['es', 'en-US'], default_match='en-US')380 >>> req.accept_language.best_match(['en-GB'], default_match='en-US')382 >>> req.accept_language.best_match(['en-GB', 'en-US'], default_match='en-US')
31 ``req.accept_language.best_match(supported_languages)``36 ``req.accept.best_match(mimetypes)``
1668 best_index, best_match = index, s1671 self.match = best_match
META-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...