Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-43583

StringData should get most or all string_view member functions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Internal Code
    • Labels:
      None

      Description

      I've seen code switch to std::string_view because it has better find and slicing members than StringData. That shouldn't be necessary. We can add all those functions to StringData. I'm talking about members like: at, remove_prefix, remove_suffix, find_first_of, find_last_not_of, etc. and all the overloads of each to support pos and count, and throwing the same std:: exceptions.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: