BloombergLP::ball::CategoryManager_RadixTree::findLongestCommonPrefix

Return the longest matching key prefix with an associated value.

Synopses

Declared in <ball_categorymanager_radixtree.h>

Return the longest matching key prefix with an associated value.

std::string_view
findLongestCommonPrefix(
    OptValueCRef* value,
    std::string_view const& key) const;
» more...

Return the longest matching key prefix with an associated value.

std::string_view
findLongestCommonPrefix(
    OptValueRef* value,
    std::string_view const& key);
» more...

Return Value

longest matching prefix, or an empty string view if none

Parameters

NameDescription
valueoptional out-parameter for the matched value
keykey whose longest matching prefix is sought