Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/VLC/src/config/   (VLC Media Plyer ©)  Datei vom 23.9.2026 mit Größe 1 kB image not shown  

Quelle  vlc_jaro_winkler.h   Sprache: C

 

/*****************************************************************************
 * jaro_winkler.c: jaro winkler string similarity algorithm implementation
 *****************************************************************************
 * Copyright 2015 Danny Guo
 * Copyright 2018, 2019 Lyndon Brown
 *
 * Authors: Danny Guo <dguo@users.noreply.github.com>
 *          Lyndon Brown <jnqnfe@gmail.com>
 *
 * Licensed under the MIT license. You may not copy, modify, or distribute this
 * file except in compliance with said license. You can find a copy of this
 * license either in the LICENSE file, or alternatively at
 * <http://opensource.org/licenses/MIT>.
 *****************************************************************************
 * This file is based upon the Jaro Winkler implementation of the `strsim`
 * Rust crate, authored by Danny Guo, available at
 * <https://github.com/dguo/strsim-rs>; more specifically the (as yet un-merged)
 * optimised copy authored by myself (Lyndon Brown), available at
 * <https://github.com/dguo/strsim-rs/pull/31>. The code is available under the
 * MIT license.
 *****************************************************************************/


#ifndef VLC_JARO_WINKLER_H
#define VLC_JARO_WINKLER_H 1

/**
 * Calculate a “Jaro Winkler” metric.
 *
 * Algorithm: <http://en.wikipedia.org/wiki/Jaro%E2%80%93Winkler_distance>
 *
 * Like “Jaro” but gives a boost to strings that have a common prefix.
 *
 * \note: This implementation does not place a limit the common prefix length
 * adjusted for.
 *
 * \param a string A
 * \param b string B
 * \param res [OUT] a pointer to a float to receive the result
 * \return -1 on memory allocation failure, otherwise 0
 */

int vlc_jaro_winkler(const char *a, const char *b, float *res);

#endif

Messung
CHZG
869810094

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-11-04) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover


Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.