aboutsummaryrefslogtreecommitdiff
path: root/third_party/chromium/base/strings/string_number_conversions.h
diff options
context:
space:
mode:
authorLuis Hector Chavez <lhchavez@google.com>2016-07-22 11:23:39 -0700
committerLuis Hector Chavez <lhchavez@google.com>2016-07-22 11:23:39 -0700
commit7aaba044607c7c4f6a649d2001d6ac213683e8b8 (patch)
tree8d10ef44dd15c9ec6ccb3785599895e6835e8f0c /third_party/chromium/base/strings/string_number_conversions.h
parent83db8f75afbb37010450a6a5607764dedf20db6b (diff)
parent17f710e0eccdb78996c6e3ee65b03d43c18e1d8b (diff)
downloadlibweave-upstream-master.tar.gz
Merge remote-tracking branch 'weave/master' into 'weave/aosp-master'upstream-master
17f710e libweave: Update libchrome APIs to r405848
Diffstat (limited to 'third_party/chromium/base/strings/string_number_conversions.h')
-rw-r--r--third_party/chromium/base/strings/string_number_conversions.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/third_party/chromium/base/strings/string_number_conversions.h b/third_party/chromium/base/strings/string_number_conversions.h
index af0faa6..49bb08b 100644
--- a/third_party/chromium/base/strings/string_number_conversions.h
+++ b/third_party/chromium/base/strings/string_number_conversions.h
@@ -24,6 +24,14 @@
// Please do not add "convenience" functions for converting strings to integers
// that return the value and ignore success/failure. That encourages people to
// write code that doesn't properly handle the error conditions.
+//
+// DO NOT use these functions in any UI unless it's NOT localized on purpose.
+// Instead, use base::MessageFormatter for a complex message with numbers
+// (integer, float, double) embedded or base::Format{Number,Double,Percent} to
+// just format a single number/percent. Note that some languages use native
+// digits instead of ASCII digits while others use a group separator or decimal
+// point different from ',' and '.'. Using these functions in the UI would lead
+// numbers to be formatted in a non-native way.
// ----------------------------------------------------------------------------
namespace base {