[all-commits] [llvm/llvm-project] 897b80: Add support for three more string_view functions

Jeff Bailey via All-commits all-commits at lists.llvm.org
Thu Jul 14 07:20:33 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 897b80147d7e7f7c7ed1d80942641ae36c4dde81
      https://github.com/llvm/llvm-project/commit/897b80147d7e7f7c7ed1d80942641ae36c4dde81
  Author: Jeff Bailey <jeffbailey at google.com>
  Date:   2022-07-14 (Thu, 14 Jul 2022)

  Changed paths:
    M libc/src/__support/CPP/StringView.h
    M libc/test/src/__support/CPP/stringview_test.cpp

  Log Message:
  -----------
  Add support for three more string_view functions

Add support for three more string_view functions

1) starts_with(char)
2) ends_with(char)
3) find_first_of(char, size_t)

Reimplemented trim in terms of the new starts_with and ends_with.

Tested:
New unit tests.

Reviewed By: gchatelet

Differential Revision: https://reviews.llvm.org/D129618




More information about the All-commits mailing list