#include "tensorstore/kvstore/key_range.h"
static KeyRange
tensorstore::KeyRange::RemovePrefix(std::string_view prefix,
                                    
KeyRange range);

Returns the range corresponding to the set of keys k for which prefix + k is a member of range.

For example:

RemovePrefix("a/", KeyRange("a/b", "a/d")) == KeyRange("b", "d")
RemovePrefix("a/b", KeyRange("a/b", "a/d")) == KeyRange()
RemovePrefix("a/d", KeyRange("a/b", "a/d")) == EmptyRange()
RemovePrefix("a/bc", KeyRange("a/b", "a/bb")) == KeyRange("", "b")