Deleted Added
full compact
63a64,83
> template<unsigned N>
> StringSwitch& EndsWith(const char (&S)[N], const T &Value) {
> if (!Result && Str.size() >= N-1 &&
> std::memcmp(S, Str.data() + Str.size() + 1 - N, N-1) == 0) {
> Result = &Value;
> }
>
> return *this;
> }
>
> template<unsigned N>
> StringSwitch& StartsWith(const char (&S)[N], const T &Value) {
> if (!Result && Str.size() >= N-1 &&
> std::memcmp(S, Str.data(), N-1) == 0) {
> Result = &Value;
> }
>
> return *this;
> }
>