Add matchAsPrefix implementations.