Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-54018

Replace the legacy number parsing functions parseIntX with std::from_chars

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • backlog
    • master
    • couchbase-bucket
    • 1

    Description

      The parseIntX functions expect a null-terminated string as input. This means we cannot use std::string_view as an argument to them as that is not required to be null-terminated.

      It would be better to replace these functions with std::from_chars, which has a better interface and supports std::string_view.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vesko.karaganev Vesko Karaganev
            vesko.karaganev Vesko Karaganev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty