)]}'
{
  "commit": "9d71dbf85dc7c8721de9ac9e3c6cabef1fea539f",
  "tree": "a226bf6bba4e4aa6fe26f9d31cac3eee603cec8f",
  "parents": [
    "be93ce230ef75c5e57366c500e71cac4f4f4241a"
  ],
  "author": {
    "name": "VietCT04",
    "email": "69303535+VietCT04@users.noreply.github.com",
    "time": "Wed Sep 16 07:08:33 2026 -0700"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Sat Nov 14 08:24:09 2026 -0800"
  },
  "message": "PR #2165: Use floating-point to_chars in RoundTripDoubleToBuffer when available\n\nImported from GitHub PR https://github.com/abseil/abseil-cpp/pull/2165\n\n`RoundTripDoubleToBuffer` previously used `snprintf` and a `strtod` parse-back\ncheck for finite doubles. On standard libraries that provide floating-point\n`std::to_chars`, use `std::chars_format::general` with the existing 15/17-digit\nprecision policy and `absl::from_chars` for the retry check.\n\nThe fast path is gated by standard-library and deployment-target support rather\nthan compiler version (`__cpp_lib_to_chars \u003e\u003d 201611L`, or `libc++` 14+ when\nfloating-point `std::to_chars` is available on the target platform). The\nexisting `snprintf` implementation remains as a fallback for unsupported\nstandard libraries and older Apple deployment targets.\n\nNon-finite values (`NaN`, `inf`, `-inf`), signed zero, locale-independent\noutput, the `DBL_MAX` guard, buffer sizing, and round-trip retry semantics are\npreserved.\n\nThis work originated from protobuf/protobuf#29763, where a Protobuf maintainer\nsuggested moving the optimization into Abseil so downstream users can share the\nsame formatting primitive.\n\nMerge c26dc3f2d1c810f2e0df5197777e3b904fd4ffad into 68e60c4c212c0e856621e34df30ecd55ae69af25\n\nMerging this change closes #2165\n\nPiperOrigin-RevId: 982494515\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "c574dee3f48a952cfd849174cfe4edadf32a9016",
      "old_mode": 33188,
      "old_path": "absl/strings/numbers.cc",
      "new_id": "8a17f1de3aa95ae53370ce06cc274764824fb9ea",
      "new_mode": 33188,
      "new_path": "absl/strings/numbers.cc"
    },
    {
      "type": "modify",
      "old_id": "9511024ba40132cc45e907250a655b7134304b65",
      "old_mode": 33188,
      "old_path": "absl/strings/numbers_benchmark.cc",
      "new_id": "367586c343124cd5929151b1b2ecd78ece6fd40f",
      "new_mode": 33188,
      "new_path": "absl/strings/numbers_benchmark.cc"
    },
    {
      "type": "modify",
      "old_id": "6f0cde84649e3a6acee83c934d10e187782ee719",
      "old_mode": 33188,
      "old_path": "absl/strings/numbers_test.cc",
      "new_id": "5a87cb579f1098f24746a7c2a2668553ce2bbe0b",
      "new_mode": 33188,
      "new_path": "absl/strings/numbers_test.cc"
    }
  ]
}
