Small cleanup StrCat related number formatting
authorA. Unique TensorFlower <gardener@tensorflow.org>
Thu, 22 Mar 2018 17:21:59 +0000 (10:21 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Thu, 22 Mar 2018 17:26:30 +0000 (10:26 -0700)
commited0c4037ec47e3a7d1e5d23514951e5256b8a30f
tree8e25a50570c03d40663e64c0b13f2e74349cb177
parent010e3e401cef883aa0fff334d3f5e56a88e3f5e4
Small cleanup StrCat related number formatting

- Resolve inconsistency in return values (pointer to start vs end of buffer)
- Instead, return the number of chars written as this turns out to be most useful to callers
- Removes the need for redundant strlen calls.

PiperOrigin-RevId: 190085812
tensorflow/core/lib/strings/numbers.cc
tensorflow/core/lib/strings/numbers.h
tensorflow/core/lib/strings/strcat.h