Simplify proto2::(anonymous namespace)::FlatAllocatorImpl::GetFieldNameCase and reuse absl's ascii lower/uppercasing.
By just checking for upper-cased characters, rather than digits and lower-cased characters, we have to perform fewer comparisons. This should be safe because absl::AsciiStrToLower only operates on upper-case characters. PiperOrigin-RevId: 688453016pull/18921/head
parent
2ac862f36c
commit
f549fc3ccc
1 changed files with 5 additions and 9 deletions
Loading…
Reference in new issue