[all-commits] [llvm/llvm-project] 1b9764: [ADT] Introduce StringRef::{starts, ends}_width{, _i...
    kazutakahirata via All-commits 
    all-commits at lists.llvm.org
       
    Sat Oct 15 15:06:54 PDT 2022
    
    
  
  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1b97645e56bf321b06d1353024339958b64fd242
      https://github.com/llvm/llvm-project/commit/1b97645e56bf321b06d1353024339958b64fd242
  Author: Kazu Hirata <kazu at google.com>
  Date:   2022-10-15 (Sat, 15 Oct 2022)
  Changed paths:
    M llvm/include/llvm/ADT/StringRef.h
    M llvm/lib/Support/StringRef.cpp
    M llvm/unittests/ADT/StringRefTest.cpp
  Log Message:
  -----------
  [ADT] Introduce StringRef::{starts,ends}_width{,_insensitive}
This patch introduces:
  StringRef::starts_with
  StringRef::starts_with_insensitive
  StringRef::ends_with
  StringRef::ends_with_insensitive
to be more compatible with std::string and std::string_view.
I'm planning to deprecate the existing functions in favor of the new
ones.
Differential Revision: https://reviews.llvm.org/D136030
    
    
More information about the All-commits
mailing list