ceres/stringprintf -> absl::strings

Replace ceres::String* with their more modern and performant
absl strings library equivalent and delete our string
manipulation library.

Change-Id: Iecbdba9864e0abf329778f81fdc0708f78f7594f
This commit is contained in:
Sameer Agarwal
2024-07-24 10:50:29 -07:00
parent 0ecdb82616
commit 03caeed1c6
40 changed files with 480 additions and 681 deletions
+2 -2
View File
@@ -30,7 +30,7 @@
#include "ceres/function_sample.h"
#include "ceres/stringprintf.h"
#include "absl/strings/str_format.h"
namespace ceres::internal {
@@ -64,7 +64,7 @@ FunctionSample::FunctionSample(const double x,
gradient_is_valid(true) {}
std::string FunctionSample::ToDebugString() const {
return StringPrintf(
return absl::StrFormat(
"[x: %.8e, value: %.8e, gradient: %.8e, "
"value_is_valid: %d, gradient_is_valid: %d]",
x,