#pragma once #include #include #include // Negative but far from INT_MIN so that intermediate results are hard to // overflow constexpr int kMinScore = INT_MIN / 2; // Evaluate the score matching |pattern| against |str|, the larger the better. // |score| and |dp| must be at least as long as |str|. int FuzzyEvaluate(std::string_view pattern, std::string_view str, std::vector& score, std::vector& dp);